diff --git a/.github/workflows/BuildPage.yml b/.github/workflows/BuildPage.yml index 39bde92..a8439fb 100644 --- a/.github/workflows/BuildPage.yml +++ b/.github/workflows/BuildPage.yml @@ -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 @@ -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 diff --git a/config.toml.source b/config.toml.source index 0f6fce2..e2513ac 100644 --- a/config.toml.source +++ b/config.toml.source @@ -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" @@ -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 diff --git a/config.toml.staging b/config.toml.staging index ce66a71..5a9e52e 100644 --- a/config.toml.staging +++ b/config.toml.staging @@ -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" @@ -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 diff --git a/content/posts/kickstart-2022.md b/content/posts/kickstart-2022.md index a1189dd..2d01f44 100644 --- a/content/posts/kickstart-2022.md +++ b/content/posts/kickstart-2022.md @@ -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. diff --git a/static/img/hamilton.png b/static/img/hamilton.png new file mode 100644 index 0000000..5d3e500 Binary files /dev/null and b/static/img/hamilton.png differ diff --git a/themes/paper b/themes/paper index 13431da..10a7042 160000 --- a/themes/paper +++ b/themes/paper @@ -1 +1 @@ -Subproject commit 13431dae529289e05517f7d3580e653554cebbf5 +Subproject commit 10a704268e80e8c3be26a485e99b17896b4c03ba