From dd856ac3efdf668adc6a9b30ba9d8eeb5472604a Mon Sep 17 00:00:00 2001 From: Emruz Hossain Date: Thu, 7 Jan 2021 16:19:08 +0600 Subject: [PATCH 01/21] Fix missing space in cn/sections.projects.yaml (#215) --- exampleSite/data/cn/sections/projects.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/data/cn/sections/projects.yaml b/exampleSite/data/cn/sections/projects.yaml index 9ecab09..e72169c 100644 --- a/exampleSite/data/cn/sections/projects.yaml +++ b/exampleSite/data/cn/sections/projects.yaml @@ -3,7 +3,7 @@ section: name: 项目 id: projects enable: true - weight:5 + weight: 5 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true From 182f492df2d67fef7d14d51a113622015b3522ef Mon Sep 17 00:00:00 2001 From: Sarvottam Kumar Date: Fri, 8 Jan 2021 23:00:20 +0530 Subject: [PATCH 02/21] add hindi translation (#216) --- i18n/hi.toml | 75 ++++++++++++++++++++++ layouts/partials/helpers/country-code.html | 2 + 2 files changed, 77 insertions(+) create mode 100644 i18n/hi.toml diff --git a/i18n/hi.toml b/i18n/hi.toml new file mode 100644 index 0000000..6d504bd --- /dev/null +++ b/i18n/hi.toml @@ -0,0 +1,75 @@ +# More documentation here: https://github.com/nicksnyder/go-i18n +[home] +other = "होम" + +[posts] +other = "पोस्ट" + +[toc_heading] +other = "विषयसूची" + +[at] +other = "अन्य" + +[resume] +other = "बायोडाटा" + +[navigation] +other = "पथ प्रदर्शन" + +[contact_me] +other = "मुझसे संपर्क करो:" + +[email] +other = "ईमेल" + +[phone] +other = "फ़ोन" + +[newsletter_text] +other = "ईमेल अधिसूचना से अवगत रहें" + +[newsletter_input_placeholder] +other = "ईमेल दर्ज करें" + +[newsletter_warning] +other = "हम आपके ईमेल को कभी भी किसी और के साथ साझा नहीं करेंगे" + +[submit] +other = "जमा करें" + +[hugoAttributionText] +other = "द्वारा संचालित" + +[prev] +other = "पिछला" + +[next] +other = "आगे" + +[improve_this_page] +other = "इस पृष्ठ को सुधारें" + +[out_of] +other = "में से बाहर" + +[publications] +other = "प्रकाशन" + +[taken_courses] +other = "पाठ्यक्रम लिया" + +[course_name] +other = "कोर्स का नाम" + +[total_credit] +other = "कुल क्रेडिट" + +[obtained_credit] +other = "श्रेय प्राप्त किया" + +[extracurricular_activities] +other = "अतिरिक्त पाठयक्रम गतिविधियों" + +[see_more] +other = "और देखें" diff --git a/layouts/partials/helpers/country-code.html b/layouts/partials/helpers/country-code.html index c00c4e7..f93a633 100644 --- a/layouts/partials/helpers/country-code.html +++ b/layouts/partials/helpers/country-code.html @@ -7,6 +7,8 @@ {{ $countryCode = "gb" }} {{ else if eq $languageCode "bn" }} {{ $countryCode = "bd" }} +{{ else if eq $languageCode "hi" }} + {{ $countryCode = "in" }} {{ end }} {{/* return the country code */}} From 8e7607f0abd3753bb8152f9e70b0b4b0090a93ce Mon Sep 17 00:00:00 2001 From: Emruz Hossain Date: Tue, 12 Jan 2021 18:17:33 +0600 Subject: [PATCH 03/21] Fix main logos default path (#218) --- layouts/partials/navigators/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 18f6e5a..2d67637 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -1,5 +1,5 @@ {{/* default logos */}} -{{ $mainLogo := "/images/site/main-logo.png" }} +{{ $mainLogo := "/images/main-logo.png" }} {{ $invertedLogo := "/images/inverted-logo.png" }} {{/* if custom logo is used, them */}} From 8c5fe199ebaa5cdc2fd4245c7297441c76079146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20GATELLIER?= <26511053+lgatellier@users.noreply.github.com> Date: Tue, 12 Jan 2021 13:18:49 +0100 Subject: [PATCH 04/21] [i18n] We also write navigation without 'u' in french (#217) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- i18n/fr.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/fr.toml b/i18n/fr.toml index 44fa609..f8e543f 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -15,7 +15,7 @@ other = "chez" other = "Mon Curriculum vitæ" [navigation] -other = "Naviguation" +other = "Navigation" [contact_me] other = "Contactez moi :" From 4270ad6bbff239c94d348f9f6f60615878ae473e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20GATELLIER?= <26511053+lgatellier@users.noreply.github.com> Date: Wed, 13 Jan 2021 08:36:09 +0100 Subject: [PATCH 05/21] Markdownify copyright notice (#219) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Léo GATELLIER --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6afe2ba..89cd586 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -97,7 +97,7 @@ Toha -
{{ $copyrightNotice }}
+
{{ $copyrightNotice | markdownify }}
{{ i18n "hugoAttributionText" }} Date: Thu, 21 Jan 2021 02:03:37 -0500 Subject: [PATCH 06/21] parameterize git branch (#222) * parameterize git branch * docs: add param to README.md, prettier lint --- README.md | 17 +++++++++++++---- exampleSite/config.yaml | 1 + layouts/_default/single.html | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) 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/exampleSite/config.yaml b/exampleSite/config.yaml index 1d1fd7f..670c99c 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -69,6 +69,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/layouts/_default/single.html b/layouts/_default/single.html index a83c6b3..1751c09 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -57,7 +57,7 @@ {{ if site.Params.GitRepo }}
- + {{ i18n "improve_this_page" }} From e9736adc0d7db57171c498b57654abcf9d7480a7 Mon Sep 17 00:00:00 2001 From: Juhong Date: Thu, 21 Jan 2021 16:04:46 +0900 Subject: [PATCH 07/21] Add Korean i18n (#220) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- i18n/ko.toml | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 i18n/ko.toml diff --git a/i18n/ko.toml b/i18n/ko.toml new file mode 100644 index 0000000..83e7573 --- /dev/null +++ b/i18n/ko.toml @@ -0,0 +1,75 @@ +# 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 = "더보기" From 946a8bd4d5a007db6354e00cedf790ac904b52e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Jan 2021 06:34:04 +0000 Subject: [PATCH 08/21] Bump peter-evans/create-pull-request from v3.6.0 to v3.7.0 (#225) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.6.0 to v3.7.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.6.0...2455e1596942c2902952003bbb574afbbe2ab2e6) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/autoprefixer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 15878d7..8fdff3c 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -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.7.0 with: branch: autoprefixer branch-suffix: timestamp From 631a3b46dc3d8923045b94dc40f98d88a1e4cf42 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Feb 2021 07:15:56 +0000 Subject: [PATCH 09/21] Bump peter-evans/create-pull-request from v3.7.0 to v3.8.1 (#228) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.7.0 to v3.8.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.7.0...34371f09e5a05dadd212d0bc451d4c1fa456c646) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/autoprefixer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 8fdff3c..1403659 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -21,7 +21,7 @@ jobs: npm run autoprefixer - name: Create Pull Request - uses: peter-evans/create-pull-request@v3.7.0 + uses: peter-evans/create-pull-request@v3.8.1 with: branch: autoprefixer branch-suffix: timestamp From f5aebb3cdd0c0f3c566aae5e35b6120179565e4b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Feb 2021 06:17:33 +0000 Subject: [PATCH 10/21] Bump peter-evans/create-pull-request from v3.8.1 to v3.8.2 (#229) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.8.1 to v3.8.2. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.8.1...052fc72b4198ba9fbc81b818c6e1859f747d49a8) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/autoprefixer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 1403659..65cb048 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -21,7 +21,7 @@ jobs: npm run autoprefixer - name: Create Pull Request - uses: peter-evans/create-pull-request@v3.8.1 + uses: peter-evans/create-pull-request@v3.8.2 with: branch: autoprefixer branch-suffix: timestamp From b1e1b7c5d621b6045e1c61c6b6ead82fa3520d5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Feb 2021 07:19:13 +0000 Subject: [PATCH 11/21] Bump release-drafter/release-drafter from v5.13.0 to v5.14.0 (#230) Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from v5.13.0 to v5.14.0. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5.13.0...e5ccf147077e46b0225a80bbe314d795d77bb7a2) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/draft-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} From a15f7364f897e1df8021ee3f7ba5ea23059f85a5 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Tue, 16 Feb 2021 05:56:21 +0100 Subject: [PATCH 12/21] Add i18n to experiences section (#232) --- i18n/en.toml | 6 ++++++ layouts/partials/sections/experiences/single-position.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 3a7aaf2..f880f81 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -73,3 +73,9 @@ other = "Extracurricular Activities" [see_more] other = "See More" + +[responsibilities] +other = "Responsibilities:" + +[present] +other = "Present" \ No newline at end of file diff --git a/layouts/partials/sections/experiences/single-position.html b/layouts/partials/sections/experiences/single-position.html index dda35ef..2300755 100644 --- a/layouts/partials/sections/experiences/single-position.html +++ b/layouts/partials/sections/experiences/single-position.html @@ -5,14 +5,14 @@
{{ $position.designation }}
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
-

{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}Present{{ end }}, +

{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }}, {{ .company.location }}

{{ .company.overview | markdownify }}

-
Responsibilities:
+
{{ i18n "responsibilities" }}
    {{ range $position.responsibilities }}
  • {{ . | markdownify }}
  • From 0104c49a4a3d0abbe98ecca3c951b7a260091982 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Tue, 16 Feb 2021 11:39:25 +0100 Subject: [PATCH 13/21] Add optional variable to education for courses where scaling doesn't make sense (#231) * Add optional variable to education Scales for courses doesnt always apply * Rename var *not* !important * Rename var Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- layouts/partials/sections/education-alt.html | 7 ++++--- layouts/partials/sections/education.html | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/partials/sections/education-alt.html b/layouts/partials/sections/education-alt.html index 7d9597f..5ba1059 100644 --- a/layouts/partials/sections/education-alt.html +++ b/layouts/partials/sections/education-alt.html @@ -51,18 +51,19 @@ {{ if .takenCourses }}
    {{ i18n "taken_courses" }}
    - {{ if .takenCourses.showGrades }} + {{ if .takenCourses.showGrades }} + {{ $hideScale := .takenCourses.hideScale }} - + {{ if not $hideScale }}{{ end }} {{ range $index,$course := .takenCourses.courses }} - + {{ if not $hideScale }}{{ end }} {{ end }} diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html index b6b5aee..21c195c 100644 --- a/layouts/partials/sections/education.html +++ b/layouts/partials/sections/education.html @@ -51,18 +51,19 @@ {{ if .takenCourses }}
    {{ i18n "taken_courses"}}
    - {{ if .takenCourses.showGrades }} + {{ if .takenCourses.showGrades }} + {{ $hideScale := .takenCourses.hideScale }}
    {{ i18n "course_name" }}{{ i18n "total_credit" }}{{ i18n "total_credit" }}{{ i18n "obtained_credit" }}
    {{ $course.name }}{{ $course.outOf }}{{ $course.outOf }}{{ $course.achieved }}
    - + {{ if not $hideScale }}{{ end }} {{ range $index,$course := .takenCourses.courses }} - + {{ if not $hideScale }}{{ end }} {{ end }} From a2307565acd18c8d08e4f100076c9b9ba6503c5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Feb 2021 06:18:57 +0000 Subject: [PATCH 14/21] Bump actions/setup-node from v2.1.4 to v2.1.5 (#237) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.4 to v2.1.5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/autoprefixer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 65cb048..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" From 6f5766aa1a91729b141bd09c14edc3a4e8e6e450 Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Thu, 11 Mar 2021 10:15:32 -0500 Subject: [PATCH 15/21] Add a `tel:` link to the About Page (#246) just like a `mailto:` link triggers an email, a `tel:` link will allow you to call someone directly from the page. I've added this. --- layouts/partials/sections/about.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index df9702d..30055ea 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -30,6 +30,8 @@
  • {{ if eq .name "Email" }} + {{ else if eq .name "Phone" }} + {{ else }} {{ end }} From 2978071756b468deddeb244d35d3018c951b0a17 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 15:16:57 +0000 Subject: [PATCH 16/21] Update and run autoprefixer (#238) Co-authored-by: kodiakhq[bot] Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 19385a4..9d2d43e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -247,7 +247,6 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.1.2", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", From 4bea73b88214c85678a5352da1786e4e9123b44d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 15:18:02 +0000 Subject: [PATCH 17/21] Update and run autoprefixer (#247) Co-authored-by: hossainemruz Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> From 88895c50c2b7c390a454ff376f5f9083f163df8a Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Sat, 13 Mar 2021 08:48:52 -0500 Subject: [PATCH 18/21] Fix to the hero so you can have the image named anything you want (#248) * Fix to the hero so you can have the image named anything you want * Keep backward compatibility Signed-off-by: hossainemruz Co-authored-by: hossainemruz --- layouts/partials/helpers/get-hero.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/helpers/get-hero.html b/layouts/partials/helpers/get-hero.html index 0a10d0a..d253f85 100644 --- a/layouts/partials/helpers/get-hero.html +++ b/layouts/partials/helpers/get-hero.html @@ -1,5 +1,10 @@ {{/* check if there is any hero image in the same folder as the markdown file */}} {{ $heroImage := .Page.Resources.GetMatch "hero.{jpg,png,svg}"}} + +{{/* if hero image is specified in the page front-matter, then use that */}} +{{ if .Params.hero }} + {{ $heroImage = .Page.Resources.GetMatch .Params.hero }} +{{ end }} {{ .Scratch.Set "heroScratch" $heroImage }} {{/* if hero image is not provided, then use the default hero image */}} From 4ef34a8f63d9afa3a4dab180f1b850518ab43ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E7=BA=A2=E8=B1=86?= <55517494+ormissia@users.noreply.github.com> Date: Sat, 13 Mar 2021 23:37:47 +0800 Subject: [PATCH 19/21] Display project card technology tags (#243) * Display project card technology tags * Fix tag CSS Signed-off-by: hossainemruz Co-authored-by: Emruz Hossain --- exampleSite/data/bn/sections/projects.yaml | 2 +- exampleSite/data/cn/sections/projects.yaml | 2 +- exampleSite/data/en/sections/projects.yaml | 2 +- exampleSite/data/id/sections/projects.yaml | 2 +- layouts/partials/cards/project.html | 50 ++++++++++++++-------- static/css/sections/projects.css | 20 +++++++++ 6 files changed, 56 insertions(+), 22 deletions(-) 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/layouts/partials/cards/project.html b/layouts/partials/cards/project.html index 6b4f959..81d3fcd 100644 --- a/layouts/partials/cards/project.html +++ b/layouts/partials/cards/project.html @@ -26,25 +26,39 @@

    {{ .summary | markdownify }}

    - - {{ if .repo }} - Star - {{ else if .url }} - Details + +
    diff --git a/static/css/sections/projects.css b/static/css/sections/projects.css index 48acc48..1855b27 100644 --- a/static/css/sections/projects.css +++ b/static/css/sections/projects.css @@ -29,6 +29,26 @@ padding: 1rem !important; } +.project-card-footer { + display: flex; +} + +.project-tags-holder { + width: 70%; +} + +.project-btn-holder { + width: 30%; + display: flex; + justify-content: flex-end; + flex-direction: column; +} + +.project-btn-holder span { + justify-content: flex-end; + display: flex; +} + /* ============= Device specific fixes ======= */ /* Large screens such as TV */ From 03ea0fae8cffe511c0d916aacffbbb99d3961ffa Mon Sep 17 00:00:00 2001 From: Roxedus Date: Sat, 13 Mar 2021 17:08:03 +0100 Subject: [PATCH 20/21] Add more i18n strings (#234) * Add more i18n strings * Add the translation strings in other files Signed-off-by: hossainemruz Co-authored-by: hossainemruz --- i18n/bn.toml | 24 +++++++++++++++++++ i18n/cn.toml | 24 +++++++++++++++++++ i18n/de.toml | 24 +++++++++++++++++++ i18n/en.toml | 20 +++++++++++++++- i18n/es.toml | 24 +++++++++++++++++++ i18n/fr.toml | 24 +++++++++++++++++++ i18n/hi.toml | 24 +++++++++++++++++++ i18n/id.toml | 24 +++++++++++++++++++ i18n/it.toml | 24 +++++++++++++++++++ i18n/jp.toml | 24 +++++++++++++++++++ i18n/ko.toml | 24 +++++++++++++++++++ i18n/ru.toml | 24 +++++++++++++++++++ i18n/vn.toml | 24 +++++++++++++++++++ layouts/404.html | 2 +- layouts/partials/cards/post.html | 2 +- layouts/partials/cards/project.html | 4 ++-- layouts/partials/cards/recent-post.html | 2 +- layouts/partials/disqus.html | 6 ++--- .../experiences/multiple-positions.html | 4 ++-- 19 files changed, 317 insertions(+), 11 deletions(-) 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 f880f81..4b600ee 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -78,4 +78,22 @@ other = "See More" other = "Responsibilities:" [present] -other = "Present" \ No newline at end of file +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 f8e543f..3a9c2e5 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 index 83e7573..d4e3271 100644 --- a/i18n/ko.toml +++ b/i18n/ko.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/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/partials/cards/post.html b/layouts/partials/cards/post.html index 766f9dc..7bfe722 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -13,7 +13,7 @@ Read{{ i18n "read" }} diff --git a/layouts/partials/cards/project.html b/layouts/partials/cards/project.html index 81d3fcd..45e63bd 100644 --- a/layouts/partials/cards/project.html +++ b/layouts/partials/cards/project.html @@ -45,7 +45,7 @@ data-icon="octicon-standard" data-show-count="true" aria-label="Star {{ .name }}" - >Star{{ i18n "project_star" }} {{ else if .url }} @@ -53,7 +53,7 @@ class="btn btn-outline-info btn-sm" href="{{ .url }}" target="#" - >Details{{ i18n "project_details" }} {{ end }} diff --git a/layouts/partials/cards/recent-post.html b/layouts/partials/cards/recent-post.html index 5288b9f..c5db57f 100644 --- a/layouts/partials/cards/recent-post.html +++ b/layouts/partials/cards/recent-post.html @@ -12,7 +12,7 @@ diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html index 57eb960..71fef21 100644 --- a/layouts/partials/disqus.html +++ b/layouts/partials/disqus.html @@ -17,11 +17,11 @@ })(); comments powered by Disqus{{ i18n "comments_by" }} Disqus diff --git a/layouts/partials/sections/experiences/multiple-positions.html b/layouts/partials/sections/experiences/multiple-positions.html index aae5f3d..1156fe6 100644 --- a/layouts/partials/sections/experiences/multiple-positions.html +++ b/layouts/partials/sections/experiences/multiple-positions.html @@ -7,7 +7,7 @@ {{ $oldestPosition := index (last 1 .positions) 0}} {{ $mostRecentPosition := index (first 1 .positions) 0}}

    - {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}Present{{ end }}, + {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }}, {{ .company.location }}

    @@ -17,7 +17,7 @@
    {{ range $index,$position:= .positions }}
    {{ $position.designation }}
    -

    {{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} Present {{end}}

    +

    {{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}

      {{ range $position.responsibilities }} From 0848be17bac7fbabbc10429e8510fe2816a3c734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chuso=20P=C3=A9rez?= Date: Sat, 13 Mar 2021 18:43:10 +0100 Subject: [PATCH 21/21] #42 Add suppor for client-side search (#227) * Add support for client-side search with Fuse.js. Implements #42. Based on https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae * Move search form code repeated in many places to one single template. * Add search box in home page. * Fix search UI + Some improvements Signed-off-by: hossainemruz * Remove search.md from exampleSite Signed-off-by: hossainemruz Co-authored-by: Emruz Hossain --- content/posts/search.md | 52 ++++++++++++++++ exampleSite/config.yaml | 8 +++ layouts/_default/index.json | 5 ++ layouts/_default/list.html | 4 +- layouts/_default/search.html | 71 ++++++++++++++++++++++ layouts/_default/single.html | 4 +- static/js/search.js | 112 +++++++++++++++++++++++++++++++++++ 7 files changed, 254 insertions(+), 2 deletions(-) create mode 100644 content/posts/search.md create mode 100644 layouts/_default/index.json create mode 100644 layouts/_default/search.html create mode 100644 static/js/search.js 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 670c99c..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 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 @@
  • {{ i18n "course_name"}}{{ i18n "total_credit"}}{{ i18n "total_credit"}}{{ i18n "obtained_credit"}}
    {{ $course.name }}{{ $course.outOf }}{{ $course.outOf }}{{ $course.achieved }}