Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
posetmagic committed Dec 27, 2024
1 parent 44309cb commit 927b4f1
Show file tree
Hide file tree
Showing 20 changed files with 781 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Jekyll site
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive' # This will recursively clone submodules
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
182 changes: 182 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
.vs

_tmp/
*.epub
output/

_site
.sass-cache
.jekyll-cache
.jekyll-metadata
Gemfile.lock
vendor

*.png
*.jpg

*.zip
*.7z

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "_includes"]
path = _includes
url = ../Jekyll_includes.git
branch = main

[submodule "_layouts"]
path = _layouts
url = ../posetmage_layouts.git
branch = main
71 changes: 71 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
permalink: /404.html
layout: page
---

<style type="text/css" media="screen">
.container {
display: none; /* Initially hide the container */
margin: 10px auto;
max-width: 600px;
text-align: center;
}
.loading {
margin: 10px auto;
max-width: 600px;
text-align: center;
font-size: 2em;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="loading">Loading...</div>

<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

<script>
// Function to extract the shortcode from the current URL
function getShortCode() {
return window.location.pathname.slice(1); // Remove the leading '/'
}

// Function to load the URL mappings and handle the page content
function loadAndRedirect() {
fetch('https://raw.githubusercontent.com/posetmage/url/master/urlMappings.json') // Adjust the path if your JSON file is located elsewhere
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(data => {
const shortCode = getShortCode();
const realUrl = data[shortCode];
if (realUrl) {
// If a matching URL is found, redirect
window.location.href = realUrl;
} else {
// If no match is found, display the original message
document.querySelector('.loading').style.display = 'none'; // Hide the loading message
document.querySelector('.container').style.display = 'block'; // Show the original 404 content
}
})
.catch(error => {
console.error('Failed to load URL mappings:', error);
document.querySelector('.loading').style.display = 'none';
document.querySelector('.container').style.display = 'block';
});
}

// Call the function on page load
loadAndRedirect();
</script>
28 changes: 28 additions & 0 deletions About/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: page
title: About
---

## Brand Story of Poset Mage
Welcome to the expansive universe of "Poset Mage," where the art of magic is redefined through the innovative concept of Partially Ordered Magic (POM). This concept draws inspiration from the mathematical idea of a poset, or partially ordered set. In our universe, this symbolizes a complex yet structured approach to learning and mastering magical skills, akin to navigating a skill tree.

Each skill in this magical framework is like a node in a vast network, where some skills can be learned in various sequences while others must follow a specific order. This partially ordered structure ensures that all mages, whether beginners or advanced, can strategically plan their paths, enhancing their powers through careful selection and sequencing of spells and abilities.

In the world of Poset Mage, magic isn’t simply a collection of spells cast at will but rather a structured network of skills and knowledge that mages must navigate with care and strategic foresight. Each mage’s journey is uniquely shaped by their chosen path through the magic skill tree, where spells and abilities are interconnected in a partially ordered manner. This means that while mages enjoy the freedom to explore diverse magical realms, they must also meet certain prerequisites to unlock more potent and complex spells.

Sub-Brands of Poset Mage:

## LatticeMage:
Focusing on the intricate layers of mastery in various high-skilled areas, LatticeMage serves professionals and enthusiasts in fields such as algorithmic trading, startups, competitive psychology, coding, and productivity workflows. It symbolizes the structured yet interconnected pathways that these fields share with the principles of partially ordered magic.

## ShinraMage:
Dedicated to fans of anime, comics, games, novels (ACGN), and learners of the Japanese language, ShinraMage merges ACGN culture with educational pursuits. It provides a magical framework for exploring both entertainment and learning, emphasizing the joy and depth of immersive cultural experiences.

## AlchemyMage:
Targeted towards the Taiwanese market, AlchemyMage combines business insights, rapid learning techniques, and strategies for overcoming adversity with the allure of AI. Drawing parallels with the mythical philosopher's stone, this sub-brand focuses on transforming and elevating business acumen and personal growth in the face of challenges.

## AI-Mage:
Specializing in the burgeoning field of AI-generated content (AIGC), AI-Mage is crafted for creators, developers, and innovators who are pioneering the integration of artificial intelligence in creative processes. It represents the cutting edge of technological magic within the Poset Mage universe.

## The Mission of Poset Mage
Poset Mage and its sub-brands are committed to transforming how individuals engage with their professions, hobbies, and learning experiences. By blending the structured beauty of poset theory with the boundless possibilities of magic, Poset Mage offers a unique, personalized pathway to mastery and excellence in various fields. Each sub-brand serves as a gateway to specialized knowledge, empowering users to harness their potential and achieve extraordinary results.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
posetmage.com
36 changes: 36 additions & 0 deletions Contact/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: page
title: Contact
permalink: /Contact/
redirect_from:
- /contact/
---

<style>
.contact-form {
max-width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
width: 100%;
}

.contact-form textarea {
height: 200px;
}

</style>

{% include social.html %}

<form action="https://formspree.io/f/xayzglbq" method="POST" class="contact-form">
<label for="name">What's your name/id?:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="email">Your email address?:</label><br>
<input type="email" id="email" name="_replyto" required><br>
<label for="message">Anything want to say?:</label><br>
<textarea id="message" name="message" required></textarea><br>
<input type="submit" value="Submit"> <p align="right"><i>powered by formspree service</i></p><br>
</form>
Loading

0 comments on commit 927b4f1

Please sign in to comment.