diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 519fa99..780bff7 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout to latest commit - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2.5.1 + uses: actions/setup-node@v3 with: node-version: "15.x" @@ -21,7 +21,7 @@ jobs: npm run autoprefixer - name: Create Pull Request - uses: peter-evans/create-pull-request@v3.12.0 + uses: peter-evans/create-pull-request@v4 with: branch: autoprefixer branch-suffix: timestamp diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..47ff298 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Run Build + +# Run action on pull request event +on: [pull_request] + + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + # checkout to the commit that has been pushed + - uses: actions/checkout@v2.4.0 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + # install Hugo + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2.5.0 + with: + hugo-version: 'latest' + extended: true + + # build website + - name: Create Config + run: touch config.toml + - name: Build + run: hugo --minify diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 89971fe..e74a695 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index e39c254..de05a40 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -10,6 +10,6 @@ jobs: runs-on: ubuntu-latest steps: # Create/Update release draft - - uses: release-drafter/release-drafter@v5.16.1 + - uses: release-drafter/release-drafter@v5.19.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/md-link-checker.yml b/.github/workflows/md-link-checker.yml index e8104c0..88c2002 100644 --- a/.github/workflows/md-link-checker.yml +++ b/.github/workflows/md-link-checker.yml @@ -8,6 +8,6 @@ jobs: runs-on: ubuntu-latest steps: # checkout to latest commit - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v3 # run markdown linter - - uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 + - uses: gaurav-nelson/github-action-markdown-link-check@1.0.14 diff --git a/README.md b/README.md index 38c63ba..2971be9 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,15 @@ A [Hugo](https://gohugo.io/) theme for a personal portfolio with minimalist desi - Achievement Gallery - Sidebar to Categorize the Posts - Short Codes -- Google Analytics Support -- Disqus Comment Support +- Analytics Support + - GoatCounter + - counter.dev + - Google Analytics +- Comment Support + - [Disqus](https://disqus.com/) + - [Valine](https://valine.js.org/) + - [Uttarances](https://utteranc.es/) + - [Giscus](https://giscus.app/) For more details about the features please visit [here](https://toha-guides.netlify.app/posts/features/). @@ -49,6 +56,7 @@ For more details about the features please visit [here](https://toha-guides.netl - 日本語 - 한국어 - русский +- suomi - Tiếng Việt To know more about how to translate your site, please visit [here](https://toha-guides.netlify.app/posts/translation/). Follow, the data and post format from this [example site](https://hugo-toha.github.io). @@ -71,7 +79,7 @@ Here are few screenshots from the [example site](https://hugo-toha.github.io). ## Requirements -- Hugo Version 0.68.0 or higher +- Hugo Version 0.87.0 or higher ## Usage @@ -165,10 +173,12 @@ When you run your site for first time, it will start with the default parameters Here, are some handy shortcodes you can use with this theme. -- [Alert](https://toha-guides.netlify.app/posts/short-codes/alert/) -- [Image](https://toha-guides.netlify.app/posts/short-codes/img/) -- [Split](https://toha-guides.netlify.app/posts/short-codes/split/) -- [Vertical Space](https://toha-guides.netlify.app/posts/short-codes/vs/) +- [Alert](https://toha-guides.netlify.app/posts/shortcodes/#alert) +- [Image](https://toha-guides.netlify.app/posts/shortcodes/#image) +- [Split](https://toha-guides.netlify.app/posts/shortcodes/#split) +- [Vertical Space](https://toha-guides.netlify.app/posts/shortcodes/#vertical-space) +- [Video](https://toha-guides.netlify.app/posts/shortcodes/#video) +- [Mermaid](https://hugo-toha.github.io/posts/shortcodes/#mermaid) ## Project Roadmap diff --git a/i18n/bn.toml b/i18n/bn.toml index b66b430..96b0546 100644 --- a/i18n/bn.toml +++ b/i18n/bn.toml @@ -118,3 +118,6 @@ other = "নোট সমূহ" [disclaimer_text] other = "দায় বিজ্ঞপ্তি" + +[search] +other = "অনুসন্ধান করুন" diff --git a/i18n/de.toml b/i18n/de.toml index 979c7c6..191b73b 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -121,3 +121,6 @@ other = "Notizen" [disclaimer_text] other = "Haftungshinweis" + +[search] +other = "Suche" diff --git a/i18n/en.toml b/i18n/en.toml index e388159..c352868 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -121,3 +121,6 @@ other = "Notes" [disclaimer_text] other = "Liability Notice" + +[search] +other = "Search" diff --git a/i18n/es.toml b/i18n/es.toml index a2ab49b..5265bcd 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -121,3 +121,6 @@ other = "Notas" [disclaimer_text] other = "Aviso de responsabilidad" + +[search] +other = "Búsqueda" diff --git a/i18n/fi.toml b/i18n/fi.toml new file mode 100644 index 0000000..f5f3021 --- /dev/null +++ b/i18n/fi.toml @@ -0,0 +1,126 @@ +# More documentation here: https://github.com/nicksnyder/go-i18n +[home] +other = "Koti" + +[posts] +other = "Artikkelit" + +[toc_heading] +other = "Sisällysluettelo" + +[tags] +other = "Tagit" + +[categories] +other = "Kategoriat" + +[at] +other = "at" + +[resume] +other = "Ansioluetteloni" + +[navigation] +other = "Navigointi" + +[contact_me] +other = "Ota yhteyttä minuun:" + +[email] +other = "Sähköposti" + +[phone] +other = "Puhelin" + +[newsletter_text] +other = "Pysy ajan tasalla tilaamalla sähköposti-ilmoitukset" + +[newsletter_input_placeholder] +other = "Syötä sähköpostiosoite" + +[newsletter_warning] +other = "Syöttämällä sähköpostin, hyväksyt että haluat vastaanottaa uutiskirjeen tältä sivustolta." + +[submit] +other = "Lähetä" + +[hugoAttributionText] +other = "Voimanlähteenä" + +[prev] +other = "Edellinen" + +[next] +other = "Seuraava" + +[share_on] +other = "Jaa" + +[improve_this_page] +other = "Paranna tätä sivua" + +[out_of] +other = "out of" + +[publications] +other = "Julkaisut" + +[taken_courses] +other = "Käydyt kurssit" + +[course_name] +other = "Kurssin nimi" + +[total_credit] +other = "Opintopisteet yhteensä" + +[obtained_credit] +other = "Saadut opintopisteet" + +[extracurricular_activities] +other = "Opetusohjelman ulkopuolinen toiminta" + +[show_more] +other = "Näytä lisää" + +[show_less] +other = "Näytä vähemmän" + +[responsibilities] +other = "Työtehtävät:" + +[present] +other = "Tämä päivä" + +[comments_javascript] +other = "Ole hyvä ja enabloi JavaScript katsoaksesi" + +[comments_by] +other = "kommentit mahdollistavat" + +[read] +other = "Lue" + +[project_star] +other = "Tähti" + +[project_details] +other = "Yksityiskohdat" + +[err_404] +other = "Sivua jota etsit ei löydy." + +[more] +other = "Lisää" + +[view_certificate] +other = "Katso todistus" + +[notes] +other = "Muistiinpanot" + +[disclaimer_text] +other = "Vastuuilmoitus" + +[search] +other = "Haku" diff --git a/i18n/fr.toml b/i18n/fr.toml index 4b9135f..ca9484a 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -121,3 +121,6 @@ other = "Remarques" [disclaimer_text] other = "Avis de responsabilité" + +[search] +other = "Chercher" diff --git a/i18n/hi.toml b/i18n/hi.toml index 2b01f97..8348cbd 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -121,3 +121,6 @@ other = "टिप्पणियाँ" [disclaimer_text] other = "दायित्व सूचना" + +[search] +other = "खोज" diff --git a/i18n/id.toml b/i18n/id.toml index 20b8d95..c82b940 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -121,3 +121,6 @@ other = "Catatan" [disclaimer_text] other = "Pemberitahuan Kewajiban" + +[search] +other = "Mencari" diff --git a/i18n/it.toml b/i18n/it.toml index b59a57a..4ed987a 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -121,3 +121,6 @@ other = "Appunti" [disclaimer_text] other = "Avviso di responsabilità" + +[search] +other = "Ricerca" diff --git a/i18n/jp.toml b/i18n/jp.toml index f243656..fab32a5 100644 --- a/i18n/jp.toml +++ b/i18n/jp.toml @@ -118,3 +118,6 @@ other = "ノート" [disclaimer_text] other = "責任通知" + +[search] +other = "検索" diff --git a/i18n/ko.toml b/i18n/ko.toml index e9c9f4b..cefdb30 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -121,3 +121,6 @@ other = "메모" [disclaimer_text] other = "책임 고지" + +[search] +other = "찾다" diff --git a/i18n/nl.toml b/i18n/nl.toml index 070504e..59ad565 100644 --- a/i18n/nl.toml +++ b/i18n/nl.toml @@ -119,4 +119,6 @@ other = "Bekijk certificaat" other = "Opmerkingen" [disclaimer_text] -other = "Haftungshinweis" \ No newline at end of file +other = "Haftungshinweis" +[search] +other = "Zoekopdracht" diff --git a/i18n/ru.toml b/i18n/ru.toml index 76fbe25..1b60205 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -121,3 +121,6 @@ other = "Ноты" [disclaimer_text] other = "Уведомление об ответственности" + +[search] +other = "Поиск" diff --git a/i18n/vn.toml b/i18n/vn.toml index a88524e..4184752 100644 --- a/i18n/vn.toml +++ b/i18n/vn.toml @@ -121,3 +121,6 @@ other = "Ghi chú" [disclaimer_text] other = "Thông báo trách nhiệm" + +[search] +other = "Tìm kiếm" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index a186830..8ad597e 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -121,3 +121,6 @@ other = "笔记" [disclaimer_text] other = "免责声明" + +[search] +other = "搜索" diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml index f1bb3a3..1a2c9aa 100644 --- a/i18n/zh-tw.toml +++ b/i18n/zh-tw.toml @@ -121,3 +121,6 @@ other = "筆記" [disclaimer_text] other = "免責聲明" + +[search] +other = "搜索" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 42726b4..f1f3530 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,16 +9,9 @@ {{ block "header" . }} {{ end }} - - {{ if site.GoogleAnalytics }} - - {{ if hasPrefix site.GoogleAnalytics "UA-"}} - {{ template "_internal/google_analytics_async.html" . }} - {{ else }} - - {{ template "_internal/google_analytics.html" . }} - {{ end }} - {{ end }} + + {{- partial "analytics.html" . -}} + @@ -51,5 +44,9 @@ {{ block "scripts" . }} {{ end }} + + + {{- partial "misc/support.html" . -}} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8367014..15759d3 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -20,7 +20,7 @@