diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 15878d7..512e346 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2.3.4 - name: Setup Node - uses: actions/setup-node@v2.1.4 + uses: actions/setup-node@v2.1.5 with: node-version: "15.x" @@ -21,7 +21,7 @@ jobs: npm run autoprefixer - name: Create Pull Request - uses: peter-evans/create-pull-request@v3.6.0 + uses: peter-evans/create-pull-request@v3.8.2 with: branch: autoprefixer branch-suffix: timestamp diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 06c4a5d..26b97b3 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.13.0 + - uses: release-drafter/release-drafter@v5.14.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 3df4437..85968b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Toha -[![Netlify Status](https://api.netlify.com/api/v1/badges/b1b93b02-f278-440b-ae1b-304e9f4c4ab5/deploy-status)](https://app.netlify.com/sites/toha/deploys) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fhugo-toha%2Ftoha%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=master) ![Repository Size](https://img.shields.io/github/repo-size/hugo-toha/toha) ![Lines of Codes](https://img.shields.io/tokei/lines/github/hugo-toha/toha) ![Contributor](https://img.shields.io/github/contributors/hugo-toha/toha) ![Latest Release](https://img.shields.io/github/v/release/hugo-toha/toha?include_prereleases) ![Last Commit](https://img.shields.io/github/last-commit/hugo-toha/toha) ![Open Issues](https://img.shields.io/github/issues/hugo-toha/toha?color=important) ![Open Pull Requests](https://img.shields.io/github/issues-pr/hugo-toha/toha?color=yellowgreen) ![License](https://img.shields.io/github/license/hugo-toha/toha) ![Security Headers](https://img.shields.io/security-headers?url=https%3A%2F%2Fhugo-toha.github.io%2F) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/b7cb60ab/hugo-toha.github.io) +[![Netlify Status](https://api.netlify.com/api/v1/badges/b1b93b02-f278-440b-ae1b-304e9f4c4ab5/deploy-status)](https://app.netlify.com/sites/toha/deploys) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fhugo-toha%2Ftoha%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=master) ![Repository Size](https://img.shields.io/github/repo-size/hugo-toha/toha) ![Lines of Codes](https://img.shields.io/tokei/lines/github/hugo-toha/toha) ![Contributor](https://img.shields.io/github/contributors/hugo-toha/toha) ![Latest Release](https://img.shields.io/github/v/release/hugo-toha/toha?include_prereleases) ![Last Commit](https://img.shields.io/github/last-commit/hugo-toha/toha) ![Open Issues](https://img.shields.io/github/issues/hugo-toha/toha?color=important) ![Open Pull Requests](https://img.shields.io/github/issues-pr/hugo-toha/toha?color=yellowgreen) ![License](https://img.shields.io/github/license/hugo-toha/toha) ![Security Headers](https://img.shields.io/security-headers?url=https%3A%2F%2Fhugo-toha.github.io%2F) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/b7cb60ab/hugo-toha.github.io) A [Hugo](https://gohugo.io/) theme for a personal portfolio with minimalist design and responsiveness. @@ -68,7 +68,7 @@ At first, add [Toha](https://github.com/hugo-toha/toha) theme as git submodule t $ git submodule add https://github.com/hugo-toha/toha.git themes/toha ``` ->Don't use SSH URL of the theme during adding as git sub-module. Also, don't clone the theme in your `themes` directory using `git clone`. They don't work well with Github Action or Netlify. +> Don't use SSH URL of the theme during adding as git sub-module. Also, don't clone the theme in your `themes` directory using `git clone`. They don't work well with Github Action or Netlify. If you don't already have a hugo site, create one by following the step by step guide from [here](https://toha-guides.netlify.app/posts/getting-started/prepare-site/). @@ -102,8 +102,9 @@ enableEmoji: true # Site parameters params: - # GitHub repo URL of your site + # GitHub repo URL and branch of your site gitRepo: https://github.com/hugo-toha/hugo-toha.github.io + gitBranch: main # specify whether you want to write some blog posts or not enableBlogPost: true @@ -145,12 +146,14 @@ Here, are the current plan and progress of various components of this theme. The ### Sections - [x] **Home** + - [x] Configurable Background - [x] Author Image - [x] Greeting - [x] Typing Carousel - [x] **About** + - [x] Name and Designation - [x] Summary - [x] Markdown Support @@ -160,16 +163,19 @@ Here, are the current plan and progress of various components of this theme. The - [x] Soft Skills Indicator - [x] **Skills** + - [x] Skill Cards - [x] Markdown Support - [x] **Experiences** + - [x] Designation - [x] Timeline - [x] Company Overview - [x] Responsibilities - [ ] **Projects** + - [x] Category Filter - [ ] Project Card - [x] Overview @@ -181,6 +187,7 @@ Here, are the current plan and progress of various components of this theme. The - [x] **Recent Posts** - [ ] **Academic Career** + - [ ] Degree - [ ] Institution - [ ] Timeline @@ -189,6 +196,7 @@ Here, are the current plan and progress of various components of this theme. The - [ ] Extracurricular Activities - [ ] **Publications** + - [ ] Category Filter - [ ] Card - [ ] Abstract @@ -198,6 +206,7 @@ Here, are the current plan and progress of various components of this theme. The - [ ] Gallery - [ ] **Accomplishment / Courses** + - [ ] Overview - [ ] Certificate @@ -246,7 +255,7 @@ Pull requests are most welcome and I will be happy to review. Just follow the fo - Use as few dependencies as possible. - Have patience. ->I am not a web developer. I have created this theme for my personal needs. So, it is reasonable to have some flaws in the codes. Feel free to open issues and PRs acknowledging the problems. +> I am not a web developer. I have created this theme for my personal needs. So, it is reasonable to have some flaws in the codes. Feel free to open issues and PRs acknowledging the problems. ## Local Development diff --git a/content/posts/search.md b/content/posts/search.md new file mode 100644 index 0000000..0f038c1 --- /dev/null +++ b/content/posts/search.md @@ -0,0 +1,52 @@ +--- +title: "Search Results" +sitemap: + priority : 0.1 +layout: "search" +url: search +--- + + +This file exists solely to respond to /search URL with the related `search` layout template. + +No content shown here is rendered, all content is based in the template layouts/page/search.html + +Setting a very low sitemap priority will tell search engines this is not important content. + +This implementation uses Fusejs, jquery and mark.js + + +## Initial setup + +Search depends on additional output content type of JSON in config.toml +\``` +[outputs] + home = ["HTML", "JSON"] +\``` + +## Searching additional fileds + +To search additional fields defined in front matter, you must add it in 2 places. + +### Edit layouts/_default/index.JSON +This exposes the values in /index.json +i.e. add `category` +\``` +... + "contents":{{ .Content | plainify | jsonify }} + {{ if .Params.tags }}, + "tags":{{ .Params.tags | jsonify }}{{end}}, + "categories" : {{ .Params.categories | jsonify }}, +... +\``` + +### Edit fuse.js options to Search +`static/js/search.js` +\``` +keys: [ + "title", + "contents", + "tags", + "categories" +] +\``` diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 1d1fd7f..52c5095 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -32,6 +32,14 @@ languages: languageName: 中文 weight: 8 +# At least HTML and JSON are required for the main HTML content and +# client-side JavaScript search +outputs: + home: + - HTML + - RSS + - JSON + # Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks. # DefaultContentLanguage: fr @@ -69,6 +77,7 @@ params: # GitHub repo URL of your site gitRepo: https://github.com/hugo-toha/hugo-toha.github.io + gitBranch: main # specify whether you want to write some blog posts or not enableBlogPost: true diff --git a/exampleSite/data/bn/sections/projects.yaml b/exampleSite/data/bn/sections/projects.yaml index 7e2b808..bb6d8a4 100644 --- a/exampleSite/data/bn/sections/projects.yaml +++ b/exampleSite/data/bn/sections/projects.yaml @@ -38,7 +38,7 @@ projects: repo: https://github.com/tensorflow/tensorflow #url: "" summary: An Open Source Machine Learning Framework for Everyone. - tags: ["professional", "machine-learning","academic"] + tags: ["professional", "machine-learning"] - name: A sample academic paper role: Team Lead diff --git a/exampleSite/data/cn/sections/projects.yaml b/exampleSite/data/cn/sections/projects.yaml index e72169c..849ffe8 100644 --- a/exampleSite/data/cn/sections/projects.yaml +++ b/exampleSite/data/cn/sections/projects.yaml @@ -37,7 +37,7 @@ projects: repo: https://github.com/tensorflow/tensorflow #url: "" summary: An Open Source Machine Learning Framework for Everyone. - tags: ["professional", "machine-learning","academic"] + tags: ["professional", "machine-learning"] - name: A sample academic paper role: Team Lead diff --git a/exampleSite/data/en/sections/projects.yaml b/exampleSite/data/en/sections/projects.yaml index 544efd8..fc3e4a8 100644 --- a/exampleSite/data/en/sections/projects.yaml +++ b/exampleSite/data/en/sections/projects.yaml @@ -37,7 +37,7 @@ projects: repo: https://github.com/tensorflow/tensorflow #url: "" summary: An Open Source Machine Learning Framework for Everyone. - tags: ["professional", "machine-learning","academic"] + tags: ["professional", "machine-learning"] - name: A sample academic paper role: Team Lead diff --git a/exampleSite/data/id/sections/projects.yaml b/exampleSite/data/id/sections/projects.yaml index 861eced..813f9e4 100644 --- a/exampleSite/data/id/sections/projects.yaml +++ b/exampleSite/data/id/sections/projects.yaml @@ -37,7 +37,7 @@ projects: repo: https://github.com/tensorflow/tensorflow #url: "" summary: An Open Source Machine Learning Framework for Everyone. - tags: ["professional", "machine-learning","academic"] + tags: ["professional", "machine-learning"] - name: A sample academic paper role: Team Lead diff --git a/i18n/bn.toml b/i18n/bn.toml index a39e5f9..15f4daf 100644 --- a/i18n/bn.toml +++ b/i18n/bn.toml @@ -70,3 +70,27 @@ other = "পাঠক্রম বহির্ভূত কার্যক্র [see_more] other = "আরো দেখুন" + +[responsibilities] +other = "দায়িত্বসমুহ:" + +[present] +other = "বর্তমান" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/cn.toml b/i18n/cn.toml index 59f133e..2b8faf1 100644 --- a/i18n/cn.toml +++ b/i18n/cn.toml @@ -73,3 +73,27 @@ other = "课外活动" [see_more] other = "查看更多" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/de.toml b/i18n/de.toml index 85f1a11..90d48b6 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -73,3 +73,27 @@ other = "Buitenschoolse activiteiten" [see_more] other = "Bekijk meer" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/en.toml b/i18n/en.toml index 3a7aaf2..4b600ee 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -73,3 +73,27 @@ other = "Extracurricular Activities" [see_more] other = "See More" + +[responsibilities] +other = "Responsibilities:" + +[present] +other = "Present" + +[comments_javascript] +other = "Please enable JavaScript to view the" + +[comments_by] +other = "comments powered by" + +[read] +other = "Read" + +[project_star] +other = "Star" + +[project_details] +other = "Details" + +[err_404] +other = "The page you are looking for is not there yet." \ No newline at end of file diff --git a/i18n/es.toml b/i18n/es.toml index a660c5d..4648daf 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -73,3 +73,27 @@ other = "Actividades extracurriculares" [see_more] other = "Ver más" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/fr.toml b/i18n/fr.toml index 85d77f3..9428714 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -73,3 +73,27 @@ other = "Activités extra-scolaires" [see_more] other = "En savoir plus" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/hi.toml b/i18n/hi.toml index 6d504bd..ea0cd6c 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -73,3 +73,27 @@ other = "अतिरिक्त पाठयक्रम गतिविधि [see_more] other = "और देखें" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/id.toml b/i18n/id.toml index 244803f..f2fa405 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -73,3 +73,27 @@ other = "Kegiatan ekstrakulikuler" [see_more] other = "Lihat Selengkapnya" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/it.toml b/i18n/it.toml index bbfa747..1d8ad81 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -73,3 +73,27 @@ other = "Attività extracurriculari" [see_more] other = "Vedi altro" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/jp.toml b/i18n/jp.toml index 5676860..06f3f4d 100644 --- a/i18n/jp.toml +++ b/i18n/jp.toml @@ -70,3 +70,27 @@ other = "課外活動" [see_more] other = "続きを見る" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/ko.toml b/i18n/ko.toml new file mode 100644 index 0000000..d4e3271 --- /dev/null +++ b/i18n/ko.toml @@ -0,0 +1,99 @@ +# More documentation here: https://github.com/nicksnyder/go-i18n +[home] +other = "Home" + +[posts] +other = "게시글" + +[toc_heading] +other = "목차" + +[at] +other = "at" + +[resume] +other = "이력서" + +[navigation] +other = "바로가기" + +[contact_me] +other = "Contact me:" + +[email] +other = "Email" + +[phone] +other = "Phone" + +[newsletter_text] +other = "이메일 알림으로 최신 상태를 유지해보세요" + +[newsletter_input_placeholder] +other = "이메일을 입력하세요" + +[newsletter_warning] +other = "이메일을 다른 목적으로 사용하지 않습니다." + +[submit] +other = "제출" + +[hugoAttributionText] +other = "Powered by" + +[prev] +other = "이전" + +[next] +other = "다음" + +[improve_this_page] +other = "이 페이지를 개선" + +[out_of] +other = "out of" + +[publications] +other = "Publications" + +[taken_courses] +other = "이수 과목" + +[course_name] +other = "과목명" + +[total_credit] +other = "총 수익" + +[obtained_credit] +other = "획득한 수익" + +[extracurricular_activities] +other = "기타 활동" + +[see_more] +other = "더보기" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/ru.toml b/i18n/ru.toml index 2a525c9..6c02809 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -73,3 +73,27 @@ other = "Внеклассные занятия" [see_more] other = "Узнать больше" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/i18n/vn.toml b/i18n/vn.toml index 331b699..98b5fec 100644 --- a/i18n/vn.toml +++ b/i18n/vn.toml @@ -73,3 +73,27 @@ other = "Các hoạt động ngoại khóa" [see_more] other = "Xem thêm" + +# [responsibilities] +# other = "Responsibilities:" + +# [present] +# other = "Present" + +# [comments_javascript] +# other = "Please enable JavaScript to view the" + +# [comments_by] +# other = "comments powered by" + +# [read] +# other = "Read" + +# [project_star] +# other = "Star" + +# [project_details] +# other = "Details" + +# [err_404] +# other = "The page you are looking for is not there yet." diff --git a/layouts/404.html b/layouts/404.html index 17944c1..8fd4a16 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -22,7 +22,7 @@

404

-

The page you are looking for is not there yet.

+

{{ i18n "err_404" }}

diff --git a/layouts/_default/index.json b/layouts/_default/index.json new file mode 100644 index 0000000..c29397c --- /dev/null +++ b/layouts/_default/index.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Site.RegularPages -}} + {{- $.Scratch.Add "index" (dict "title" .Title "hero" (partial "helpers/get-hero.html" .) "date" (.Date.Format "January 2, 2006") "summary" .Summary "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f6e79cb..ae014d1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,7 +16,9 @@