From c331411f95b8fa16168c74fbad32c69fb5bf46c9 Mon Sep 17 00:00:00 2001 From: Harry Min Khant <118270468+harrymkt@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:41:49 +0630 Subject: [PATCH] Update --- .gitattributes | 4 ++-- .github/workflows/deploy.yaml | 2 +- content/_index.md | 6 +++--- content/projects.md | 2 +- static/css/style.css | 9 +++++++++ static/scripts/nav.js | 2 +- templates/mcs/content.html | 7 +++++-- templates/projects.html | 4 ++-- themes/zluinav | 2 +- 9 files changed, 25 insertions(+), 13 deletions(-) diff --git a/.gitattributes b/.gitattributes index a5aa964..1c2bd81 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,6 @@ # Auto detect text files and perform LF normalization * text=auto -*.md linguist-detectable *.toml linguist-detectable linguist-vendored=false linguist-generated=false linguist-documentation=false *.yaml linguist-detectable linguist-vendored=false linguist-generated=false linguist-documentation=false -*.yml linguist-detectable linguist-vendored=false linguist-generated=false linguist-documentation=false \ No newline at end of file +*.yml linguist-detectable linguist-vendored=false linguist-generated=false linguist-documentation=false +*.md linguist-detectable \ No newline at end of file diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 34206ad..80d5cf4 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -30,7 +30,7 @@ jobs: run: zola build - name: Deploy to GitHub Pages - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/content/_index.md b/content/_index.md index 185a323..379b9ab 100644 --- a/content/_index.md +++ b/content/_index.md @@ -9,8 +9,8 @@ title="Home" The navigation menu is located at the top. The footer section is located below. In the footer you'll found some links, including to my social profiles and other useful links. ## What can I help you with? -* **Coding** : I could, and interest to coding, especially contributing or helping. -* **Writing** : I love writing, especially Documentations and I would like to help as much as I can. -* **Music design** : I could design music for you, such as mixing, producing. I use Reaper as the ultimit audio software. Note, I'm not professional music producer and in still learning, especially because technology and programming is I interest the most. +* *Coding* : I could, and interest to coding, especially contributing or helping. +* *Writing* : I love writing, especially Documentations and I would like to help as much as I can. +* *Music design* : I could design music for you, such as mixing, producing. I use Reaper as the ultimit audio software. Note, I'm not professional music producer and in still learning, especially because technology and programming is I interest the most. For more information about what can I help you with and If it does not listed above, please contact me. \ No newline at end of file diff --git a/content/projects.md b/content/projects.md index d8c6fa7..25406ec 100644 --- a/content/projects.md +++ b/content/projects.md @@ -4,7 +4,7 @@ template="projects.html" [extra] projects=[ {name="Endless Battle", type="Game", status="under construction process", url="https://harrymkt.github.io/endless-battle", description="A 3D offline shooting game for visually impaired"}, -{name="ZL UI Navigation", type="Theme, Open Source", status="released", url="https://github.com/harrymkt/zluinav", description="This theme is for static site generator called Zola. Read more about Zola in the Useful Articles section."} +{name="ZL UI Navigation", type="Theme, Open Source", status="released", url="https://github.com/harrymkt/zluinav", description="This theme is for static site generator called Zola. Read more about [Zola](@/articles/zola-about.md) in the Useful Articles section."} ] +++ # Projects diff --git a/static/css/style.css b/static/css/style.css index 45e75a0..8032980 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,17 +1,24 @@ +/* +Custom CSS style file for my personal website. +*/ +//Body body { +//I like blue color: Blue; width: auto; height: auto; } #mainc { +//Main content is also blue? Hmm... color: Blue; width: auto; height: auto; } footer { +//Why white? Well, I like it too. It shows honesty, and kindness, as far as I know. background-color: White; width: 250px; height: 250px; @@ -24,9 +31,11 @@ height: auto; } #cometome { +//For special, I made gold color for "come to me" section. color: Gold; } #ownername { +//Remember I like blue? My name should be blue then! color: Blue; } \ No newline at end of file diff --git a/static/scripts/nav.js b/static/scripts/nav.js index ed106cf..a678250 100644 --- a/static/scripts/nav.js +++ b/static/scripts/nav.js @@ -39,7 +39,7 @@ var m = dates.getMonth(); var mn = dates.getMinutes(); var dy = dates.getDate(); var dt = ""; -var currentage=y-birthyear; +var currentage=calculate_age(new Date(2006, 6, 26)); if(m == 6 && dy == 26) dt += "This is 's " + currentage + " year"+(currentage===1?"":"s")+" Birthday. "; if((m == 11 && dy == 31) || (m == 0 && dy == 1)) diff --git a/templates/mcs/content.html b/templates/mcs/content.html index 7583d2f..ab53a85 100644 --- a/templates/mcs/content.html +++ b/templates/mcs/content.html @@ -1,6 +1,9 @@ -{%-macro process(page)-%} -{%-set pcontent=page.content|replace(from="$title$", to=page.title)-%} +{%-macro process(page, option="content")-%} +{%-set optionval=page[option]|default(value=option)-%} +{%-set pcontent=optionval|replace(from="$title$", to=page.title)|replace(from="$description$", to=page["description"]|as_str)-%} +{%-set pcontent=pcontent|replace(from="$link$", to=page["permalink"]|as_str)-%} {%-if page.updated-%}{%-set pcontent=pcontent|replace(from="$updated$", to="")-%}{%-endif-%} {%-if page.date-%}{%-set pcontent=pcontent|replace(from="$date$", to="")-%}{%-endif-%} +{%-set pcontent=pcontent|replace(from="$/*", to="$")|replace(from="*/$", to="$")-%} {{pcontent|safe}} {%-endmacro process-%} \ No newline at end of file diff --git a/templates/projects.html b/templates/projects.html index c38cc53..66a7719 100644 --- a/templates/projects.html +++ b/templates/projects.html @@ -8,10 +8,10 @@ {%-for p in page.extra.projects%}
Type: {{p.type}}.
-{%if p.status%}Status: {{p.status}}
{%endif%} +{%-if p.status%}Status: {{p.status}}
{%-endif%} {%-if p.description%}{{p.description}}
+{{p.description|markdown|safe}} {%- endif-%} {%-endfor-%} {%-else-%} diff --git a/themes/zluinav b/themes/zluinav index b9ce847..e1c3b35 160000 --- a/themes/zluinav +++ b/themes/zluinav @@ -1 +1 @@ -Subproject commit b9ce8473e40fe8526c7e05f727e2833673f36456 +Subproject commit e1c3b35dcd835147ea63c27134c2ddbff4bc3ef4