From eb8f0d0781017c8389b93f0ec7312e8264435506 Mon Sep 17 00:00:00 2001 From: Afrizal Fikri Date: Sun, 14 Jan 2024 21:44:41 +0700 Subject: [PATCH] Update hugo + theme (#21) * update hugo * adjust custom style --- .github/workflows/BuildPage.yml | 6 ++++-- config.toml.source | 11 ++++++++--- config.toml.staging | 12 ++++++++---- content/posts/kickstart-2022.md | 4 ++-- static/img/hamilton.png | Bin 0 -> 3544 bytes themes/paper | 2 +- 6 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 static/img/hamilton.png 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 0000000000000000000000000000000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