Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hugo + theme #21

Merged
merged 3 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/BuildPage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.81.0'
hugo-version: '0.121.2'
extended: true

- name: Setup Node
Expand All @@ -42,7 +42,9 @@ jobs:
run: cp config.toml.${{ steps.extract_branch.outputs.branch }} config.toml

- name: Build Page
run: npm run build
run: |
mv static/css/app.css themes/paper/assets/custom.css
npm run build

- name: Deploy to Staging
uses: peaceiris/actions-gh-pages@v3
Expand Down
11 changes: 8 additions & 3 deletions config.toml.source
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL = "https://koneko096.github.io"
title = "Postmortem"
author = "Afrizal Fikri"
copyright = "Copyright © 2022 - Afrizal Fikri"
copyright = "Copyright © 2024 - Afrizal Fikri"
canonifyurls = true
theme = "paper"
languageCode = "en-us"
Expand All @@ -16,9 +16,14 @@ disqusShortname = "postmortem-1"
googleAnalytics = "UA-111769411-1"

[params]
name = "koneko096"
env = "production"

name = "Afrizal Fikri"
bio = "Best outcomes come from trials"
avatar = "https://avatars.githubusercontent.com/u/9217338"

github = "koneko096"
gitlab = "icalF"
linkedin = "afrizalf"
facebook = "icalFikr"
twitter = "koneko096"
rss = true
12 changes: 8 additions & 4 deletions config.toml.staging
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL = "https://koneko096.github.io/staging"
title = "Postmortem"
author = "Afrizal Fikri"
copyright = "Copyright © 2022 - Afrizal Fikri"
copyright = "Copyright © 2024 - Afrizal Fikri"
canonifyurls = true
theme = "paper"
languageCode = "en-us"
Expand All @@ -14,10 +14,14 @@ draft = true
paginate = 4

[params]
name = "koneko096"
env = "staging"

name = "Afrizal Fikri"
bio = "Best outcomes come from trials"
avatar = "https://avatars.githubusercontent.com/u/9217338"

github = "koneko096"
gitlab = "icalF"
linkedin = "afrizalf"
facebook = "icalFikr"
twitter = "koneko096"

rss = true
4 changes: 2 additions & 2 deletions content/posts/kickstart-2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Even though this is the least solved problem in this round, the problem itself a

Kick Start is one of Google annual coding tests beside Code Jam and Hash Code. But this contest is a bit different. The prizes for the top contestants are job opportunity at Google, not money.

Complete description can be viewed [here](https://codingcompetitions.withgoogle.com/kickstart/round/00000000008caa74/0000000000acf318). Given a N x M terrain with obstacles, each cell consists of 2x2 minicells. You start from top left corner (1,1). You have to find a way to visit each minicell *exactly once* and come back to initial corner, if any. You can only move into four true neighbors (no diagonal move).
Complete description can be viewed [here](https://github.com/google/coding-competitions-archive/blob/main/kickstart/2022/round_b/hamiltonian_tour/statement.pdf). Given a N x M terrain with obstacles, each cell consists of 2x2 minicells. You start from top left corner (1,1). You have to find a way to visit each minicell *exactly once* and come back to initial corner, if any. You can only move into four true neighbors (no diagonal move).

{{< figure src="https://codejam.googleapis.com/dashboard/get_file/AQj_6U32_0J5YBAoNnQ3fGCopyxBqak78IdIxW1-INgCDqKp65LFlrrPgjKzBFwegZ6aVOcOwnqLdOM/case2.png" >}}
{{< figure src="/img/hamilton.png" >}}

Google has released the official analysis. But I found it too difficult to understand. So, here I try to simplifying things for you guys with more intuitive way.

Expand Down
Binary file added static/img/hamilton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion themes/paper
Submodule paper updated 57 files
+0 −1 .prettierignore
+3 −1 .prettierrc.js
+2 −0 .stylelintignore
+7 −7 .stylelintrc.js
+1 −1 LICENSE
+97 −25 README.md
+78 −630 assets/app.css
+2,095 −0 assets/main.css
+1 −0 exampleSite/.gitignore
+1 −1 exampleSite/README.md
+19 −0 exampleSite/config.toml
+5 −5 exampleSite/content/about.md
+1 −1 exampleSite/content/archives.md
+10 −0 exampleSite/content/contact.md
+8 −4 exampleSite/content/post/emoji-support.md
+32 −24 exampleSite/content/post/markdown-syntax.md
+9 −10 exampleSite/content/post/math-typesetting.md
+4 −1 exampleSite/content/post/placeholder-text.md
+2 −2 exampleSite/content/post/rich-content.md
+3 −0 go.mod
+5 −0 i18n/be.yaml
+5 −0 i18n/bn.yaml
+13 −0 i18n/fa.yaml
+5 −0 i18n/fr.yaml
+5 −0 i18n/it.yaml
+5 −0 i18n/sw.yaml
+ images/pagespeed.png
+ images/screenshot.png
+ images/screenshot_dark.png
+ images/screenshot_mobile.png
+ images/tn.png
+5 −1 layouts/404.html
+41 −9 layouts/_default/baseof.html
+58 −14 layouts/_default/list.html
+98 −18 layouts/_default/single.html
+17 −6 layouts/partials/footer.html
+61 −28 layouts/partials/head.html
+92 −43 layouts/partials/header.html
+33 −0 layouts/partials/math.html
+20 −0 layouts/partials/mermaid.html
+2 −1 layouts/shortcodes/collapse.html
+15 −13 package.json
+1,504 −0 pnpm-lock.yaml
+0 −1 static/an-old-hope.min.css
+ static/apple-touch-icon.png
+ static/favicon.ico
+1 −1 static/github.svg
+1 −1 static/instagram.svg
+1 −0 static/linkedin.svg
+1 −0 static/mastodon.svg
+1 −0 static/rss.svg
+ static/theme.png
+1 −0 static/theme.svg
+1 −1 static/twitter.svg
+9 −0 tailwind.config.js
+2 −1 theme.toml
+0 −1,866 yarn.lock
Loading