Merge branch 'master' into Add-back-to-top
This commit is contained in:
commit
d12de5b2c9
43 changed files with 821 additions and 53 deletions
4
.github/workflows/autoprefixer.yml
vendored
4
.github/workflows/autoprefixer.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: "15.x"
|
node-version: "15.x"
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
npm run autoprefixer
|
npm run autoprefixer
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3.6.0
|
uses: peter-evans/create-pull-request@v3.8.2
|
||||||
with:
|
with:
|
||||||
branch: autoprefixer
|
branch: autoprefixer
|
||||||
branch-suffix: timestamp
|
branch-suffix: timestamp
|
||||||
|
|
2
.github/workflows/draft-release.yml
vendored
2
.github/workflows/draft-release.yml
vendored
|
@ -10,6 +10,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Create/Update release draft
|
# Create/Update release draft
|
||||||
- uses: release-drafter/release-drafter@v5.13.0
|
- uses: release-drafter/release-drafter@v5.14.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
17
README.md
17
README.md
|
@ -1,6 +1,6 @@
|
||||||
# Toha
|
# Toha
|
||||||
|
|
||||||
[](https://app.netlify.com/sites/toha/deploys) [](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=master)          [](https://percy.io/b7cb60ab/hugo-toha.github.io)
|
[](https://app.netlify.com/sites/toha/deploys) [](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=master)          [](https://percy.io/b7cb60ab/hugo-toha.github.io)
|
||||||
|
|
||||||
A [Hugo](https://gohugo.io/) theme for a personal portfolio with minimalist design and responsiveness.
|
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
|
$ 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/).
|
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
|
# Site parameters
|
||||||
params:
|
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
|
gitRepo: https://github.com/hugo-toha/hugo-toha.github.io
|
||||||
|
gitBranch: main
|
||||||
|
|
||||||
# specify whether you want to write some blog posts or not
|
# specify whether you want to write some blog posts or not
|
||||||
enableBlogPost: true
|
enableBlogPost: true
|
||||||
|
@ -145,12 +146,14 @@ Here, are the current plan and progress of various components of this theme. The
|
||||||
### Sections
|
### Sections
|
||||||
|
|
||||||
- [x] **Home**
|
- [x] **Home**
|
||||||
|
|
||||||
- [x] Configurable Background
|
- [x] Configurable Background
|
||||||
- [x] Author Image
|
- [x] Author Image
|
||||||
- [x] Greeting
|
- [x] Greeting
|
||||||
- [x] Typing Carousel
|
- [x] Typing Carousel
|
||||||
|
|
||||||
- [x] **About**
|
- [x] **About**
|
||||||
|
|
||||||
- [x] Name and Designation
|
- [x] Name and Designation
|
||||||
- [x] Summary
|
- [x] Summary
|
||||||
- [x] Markdown Support
|
- [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] Soft Skills Indicator
|
||||||
|
|
||||||
- [x] **Skills**
|
- [x] **Skills**
|
||||||
|
|
||||||
- [x] Skill Cards
|
- [x] Skill Cards
|
||||||
- [x] Markdown Support
|
- [x] Markdown Support
|
||||||
|
|
||||||
- [x] **Experiences**
|
- [x] **Experiences**
|
||||||
|
|
||||||
- [x] Designation
|
- [x] Designation
|
||||||
- [x] Timeline
|
- [x] Timeline
|
||||||
- [x] Company Overview
|
- [x] Company Overview
|
||||||
- [x] Responsibilities
|
- [x] Responsibilities
|
||||||
|
|
||||||
- [ ] **Projects**
|
- [ ] **Projects**
|
||||||
|
|
||||||
- [x] Category Filter
|
- [x] Category Filter
|
||||||
- [ ] Project Card
|
- [ ] Project Card
|
||||||
- [x] Overview
|
- [x] Overview
|
||||||
|
@ -181,6 +187,7 @@ Here, are the current plan and progress of various components of this theme. The
|
||||||
- [x] **Recent Posts**
|
- [x] **Recent Posts**
|
||||||
|
|
||||||
- [ ] **Academic Career**
|
- [ ] **Academic Career**
|
||||||
|
|
||||||
- [ ] Degree
|
- [ ] Degree
|
||||||
- [ ] Institution
|
- [ ] Institution
|
||||||
- [ ] Timeline
|
- [ ] Timeline
|
||||||
|
@ -189,6 +196,7 @@ Here, are the current plan and progress of various components of this theme. The
|
||||||
- [ ] Extracurricular Activities
|
- [ ] Extracurricular Activities
|
||||||
|
|
||||||
- [ ] **Publications**
|
- [ ] **Publications**
|
||||||
|
|
||||||
- [ ] Category Filter
|
- [ ] Category Filter
|
||||||
- [ ] Card
|
- [ ] Card
|
||||||
- [ ] Abstract
|
- [ ] Abstract
|
||||||
|
@ -198,6 +206,7 @@ Here, are the current plan and progress of various components of this theme. The
|
||||||
- [ ] Gallery
|
- [ ] Gallery
|
||||||
|
|
||||||
- [ ] **Accomplishment / Courses**
|
- [ ] **Accomplishment / Courses**
|
||||||
|
|
||||||
- [ ] Overview
|
- [ ] Overview
|
||||||
- [ ] Certificate
|
- [ ] 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.
|
- Use as few dependencies as possible.
|
||||||
- Have patience.
|
- 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
|
## Local Development
|
||||||
|
|
||||||
|
|
52
content/posts/search.md
Normal file
52
content/posts/search.md
Normal file
|
@ -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"
|
||||||
|
]
|
||||||
|
\```
|
|
@ -32,6 +32,14 @@ languages:
|
||||||
languageName: 中文
|
languageName: 中文
|
||||||
weight: 8
|
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.
|
# Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
|
||||||
# DefaultContentLanguage: fr
|
# DefaultContentLanguage: fr
|
||||||
|
|
||||||
|
@ -69,6 +77,7 @@ params:
|
||||||
|
|
||||||
# GitHub repo URL of your site
|
# GitHub repo URL of your site
|
||||||
gitRepo: https://github.com/hugo-toha/hugo-toha.github.io
|
gitRepo: https://github.com/hugo-toha/hugo-toha.github.io
|
||||||
|
gitBranch: main
|
||||||
|
|
||||||
# specify whether you want to write some blog posts or not
|
# specify whether you want to write some blog posts or not
|
||||||
enableBlogPost: true
|
enableBlogPost: true
|
||||||
|
|
|
@ -38,7 +38,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -3,7 +3,7 @@ section:
|
||||||
name: 项目
|
name: 项目
|
||||||
id: projects
|
id: projects
|
||||||
enable: true
|
enable: true
|
||||||
weight:5
|
weight: 5
|
||||||
showOnNavbar: true
|
showOnNavbar: true
|
||||||
# Can optionally hide the title in sections
|
# Can optionally hide the title in sections
|
||||||
# hideTitle: true
|
# hideTitle: true
|
||||||
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
|
@ -37,7 +37,7 @@ projects:
|
||||||
repo: https://github.com/tensorflow/tensorflow
|
repo: https://github.com/tensorflow/tensorflow
|
||||||
#url: ""
|
#url: ""
|
||||||
summary: An Open Source Machine Learning Framework for Everyone.
|
summary: An Open Source Machine Learning Framework for Everyone.
|
||||||
tags: ["professional", "machine-learning","academic"]
|
tags: ["professional", "machine-learning"]
|
||||||
|
|
||||||
- name: A sample academic paper
|
- name: A sample academic paper
|
||||||
role: Team Lead
|
role: Team Lead
|
||||||
|
|
24
i18n/bn.toml
24
i18n/bn.toml
|
@ -70,3 +70,27 @@ other = "পাঠক্রম বহির্ভূত কার্যক্র
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "আরো দেখুন"
|
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."
|
||||||
|
|
24
i18n/cn.toml
24
i18n/cn.toml
|
@ -73,3 +73,27 @@ other = "课外活动"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "查看更多"
|
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."
|
||||||
|
|
24
i18n/de.toml
24
i18n/de.toml
|
@ -73,3 +73,27 @@ other = "Buitenschoolse activiteiten"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Bekijk meer"
|
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."
|
||||||
|
|
24
i18n/en.toml
24
i18n/en.toml
|
@ -73,3 +73,27 @@ other = "Extracurricular Activities"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "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."
|
24
i18n/es.toml
24
i18n/es.toml
|
@ -73,3 +73,27 @@ other = "Actividades extracurriculares"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Ver más"
|
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."
|
||||||
|
|
26
i18n/fr.toml
26
i18n/fr.toml
|
@ -15,7 +15,7 @@ other = "chez"
|
||||||
other = "Mon Curriculum vitæ"
|
other = "Mon Curriculum vitæ"
|
||||||
|
|
||||||
[navigation]
|
[navigation]
|
||||||
other = "Naviguation"
|
other = "Navigation"
|
||||||
|
|
||||||
[contact_me]
|
[contact_me]
|
||||||
other = "Contactez moi :"
|
other = "Contactez moi :"
|
||||||
|
@ -73,3 +73,27 @@ other = "Activités extra-scolaires"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "En savoir plus"
|
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."
|
||||||
|
|
99
i18n/hi.toml
Normal file
99
i18n/hi.toml
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
# 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 = "और देखें"
|
||||||
|
|
||||||
|
# [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."
|
24
i18n/id.toml
24
i18n/id.toml
|
@ -73,3 +73,27 @@ other = "Kegiatan ekstrakulikuler"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Lihat Selengkapnya"
|
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."
|
||||||
|
|
24
i18n/it.toml
24
i18n/it.toml
|
@ -73,3 +73,27 @@ other = "Attività extracurriculari"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Vedi altro"
|
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."
|
||||||
|
|
24
i18n/jp.toml
24
i18n/jp.toml
|
@ -70,3 +70,27 @@ other = "課外活動"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "続きを見る"
|
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."
|
||||||
|
|
99
i18n/ko.toml
Normal file
99
i18n/ko.toml
Normal file
|
@ -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."
|
24
i18n/ru.toml
24
i18n/ru.toml
|
@ -73,3 +73,27 @@ other = "Внеклассные занятия"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Узнать больше"
|
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."
|
||||||
|
|
24
i18n/vn.toml
24
i18n/vn.toml
|
@ -73,3 +73,27 @@ other = "Các hoạt động ngoại khóa"
|
||||||
|
|
||||||
[see_more]
|
[see_more]
|
||||||
other = "Xem thêm"
|
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."
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<img src="{{ $notFoundImage }}" alt="">
|
<img src="{{ $notFoundImage }}" alt="">
|
||||||
<div class="message">
|
<div class="message">
|
||||||
<h1>404</h1>
|
<h1>404</h1>
|
||||||
<h4>The page you are looking for is not there yet.</h4>
|
<h4>{{ i18n "err_404" }}</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
5
layouts/_default/index.json
Normal file
5
layouts/_default/index.json
Normal file
|
@ -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 -}}
|
|
@ -16,7 +16,9 @@
|
||||||
<section class="sidebar-section" id="sidebar-section">
|
<section class="sidebar-section" id="sidebar-section">
|
||||||
<div class="sidebar-holder">
|
<div class="sidebar-holder">
|
||||||
<div class="sidebar" id="sidebar">
|
<div class="sidebar" id="sidebar">
|
||||||
<input type="text" value="" placeholder="Search" data-search="" id="search-box" />
|
<form class="mx-auto" method="get" action="{{ "search" | absURL }}">
|
||||||
|
<input type="text" name="keyword" value="" placeholder="Search" data-search="" id="search-box" />
|
||||||
|
</form>
|
||||||
<div class="sidebar-tree">
|
<div class="sidebar-tree">
|
||||||
<ul class="tree" id="tree">
|
<ul class="tree" id="tree">
|
||||||
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
|
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
|
||||||
|
|
71
layouts/_default/search.html
Normal file
71
layouts/_default/search.html
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
{{ define "header" }}
|
||||||
|
<link rel="stylesheet" href="{{ "/css/layouts/list.css" | relURL }}">
|
||||||
|
<link rel="stylesheet" href="{{ "/css/navigators/sidebar.css" | relURL}}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "navbar" }}
|
||||||
|
{{ partial "navigators/navbar-2.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "sidebar" }}
|
||||||
|
{{ $blogHome:="#" }}
|
||||||
|
{{ if site.IsMultiLingual }}
|
||||||
|
{{ $blogHome = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<section class="sidebar-section" id="sidebar-section">
|
||||||
|
<div class="sidebar-holder">
|
||||||
|
<div class="sidebar" id="sidebar">
|
||||||
|
<form class="mx-auto" method="get" action="{{ "search" | absURL }}">
|
||||||
|
<input type="text" name="keyword" value="" placeholder="Search" data-search="" id="search-box" />
|
||||||
|
</form>
|
||||||
|
<div class="sidebar-tree">
|
||||||
|
<ul class="tree" id="tree">
|
||||||
|
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
|
||||||
|
<div class="subtree">
|
||||||
|
{{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }}
|
||||||
|
</div>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "content" }}
|
||||||
|
<section class="content-section" id="content-section">
|
||||||
|
<div class="content container-fluid" id="content">
|
||||||
|
<div class="container-fluid post-card-holder" id="post-card-holder">
|
||||||
|
<div id="search-results">
|
||||||
|
|
||||||
|
<script id="search-result-template" type="text/x-js-template">
|
||||||
|
<div class="post-card">
|
||||||
|
<a href="${link}" class="post-card-link">
|
||||||
|
<div class="card" style="min-height: 352px;"><a href="${link}" class="post-card-link">
|
||||||
|
<div class="card-head">
|
||||||
|
<img class="card-img-top" src="${hero}">
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-title">${title}</h5>
|
||||||
|
<p class="card-text post-summary">${summary}</p>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer">
|
||||||
|
<span class="float-left">${date}</span>
|
||||||
|
<a href="${link}" class="float-right btn btn-outline-info btn-sm">Read</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "scripts" }}
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js"></script>
|
||||||
|
<script src="{{ "/js/search.js" | absURL }}"></script>
|
||||||
|
{{ end }}
|
|
@ -16,7 +16,9 @@
|
||||||
<section class="sidebar-section" id="sidebar-section">
|
<section class="sidebar-section" id="sidebar-section">
|
||||||
<div class="sidebar-holder">
|
<div class="sidebar-holder">
|
||||||
<div class="sidebar" id="sidebar">
|
<div class="sidebar" id="sidebar">
|
||||||
<input type="text" value="" placeholder="Search" data-search="" id="search-box" />
|
<form class="mx-auto" method="get" action="{{ "search" | absURL }}">
|
||||||
|
<input type="text" name="keyword" value="" placeholder="Search" data-search="" id="search-box" />
|
||||||
|
</form>
|
||||||
<div class="sidebar-tree">
|
<div class="sidebar-tree">
|
||||||
<ul class="tree" id="tree">
|
<ul class="tree" id="tree">
|
||||||
<li id="list-heading"><a href="{{ "/posts" | relLangURL }}" data-filter="all">{{ i18n "posts" }}</a></li>
|
<li id="list-heading"><a href="{{ "/posts" | relLangURL }}" data-filter="all">{{ i18n "posts" }}</a></li>
|
||||||
|
@ -59,7 +61,7 @@
|
||||||
<!--- Improve this page button --->
|
<!--- Improve this page button --->
|
||||||
{{ if site.Params.GitRepo }}
|
{{ if site.Params.GitRepo }}
|
||||||
<div class="btn-improve-page">
|
<div class="btn-improve-page">
|
||||||
<a href="{{ site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}">
|
<a href="{{ site.Params.GitRepo }}/edit/{{ site.Params.GitBranch }}/content/{{ .File.Path }}">
|
||||||
<i class="fas fa-code-branch"></i>
|
<i class="fas fa-code-branch"></i>
|
||||||
{{ i18n "improve_this_page" }}
|
{{ i18n "improve_this_page" }}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<a
|
<a
|
||||||
href="{{ .RelPermalink | relLangURL }}"
|
href="{{ .RelPermalink | relLangURL }}"
|
||||||
class="float-right btn btn-outline-info btn-sm"
|
class="float-right btn btn-outline-info btn-sm"
|
||||||
>Read</a
|
>{{ i18n "read" }}</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,25 +26,39 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="card-body text-justify pt-1 pb-1">
|
<div class="card-body text-justify pt-1 pb-1">
|
||||||
<p>{{ .summary | markdownify }}</p>
|
<p>{{ .summary | markdownify }}</p>
|
||||||
<span class="float-right">
|
<!-- Display project card technology tags -->
|
||||||
{{ if .repo }}
|
<div class="project-card-footer">
|
||||||
<a
|
{{ if .tags }}
|
||||||
class="github-button-inactive"
|
<div class="project-tags-holder">
|
||||||
href="{{ .repo }}"
|
{{ range $index,$tag:= .tags }}
|
||||||
data-icon="octicon-standard"
|
<span class="badge btn-info">
|
||||||
data-show-count="true"
|
{{ $tag }}
|
||||||
aria-label="Star {{ .name }}"
|
</span>
|
||||||
>Star</a
|
{{ end }}
|
||||||
>
|
</div>
|
||||||
{{ else if .url }}
|
|
||||||
<a
|
|
||||||
class="btn btn-outline-info btn-sm mb-2"
|
|
||||||
href="{{ .url }}"
|
|
||||||
target="#"
|
|
||||||
>Details</a
|
|
||||||
>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
<div class="project-btn-holder">
|
||||||
|
{{ if .repo }}
|
||||||
|
<a
|
||||||
|
class="github-button-inactive project-btn"
|
||||||
|
href="{{ .repo }}"
|
||||||
|
data-icon="octicon-standard"
|
||||||
|
data-show-count="true"
|
||||||
|
aria-label="Star {{ .name }}"
|
||||||
|
>{{ i18n "project_star" }}</a
|
||||||
|
>
|
||||||
|
{{ else if .url }}
|
||||||
|
<span>
|
||||||
|
<a
|
||||||
|
class="btn btn-outline-info btn-sm"
|
||||||
|
href="{{ .url }}"
|
||||||
|
target="#"
|
||||||
|
>{{ i18n "project_details" }}</a
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
|
<span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
|
||||||
<a href="{{ .RelPermalink }}" class="float-right btn btn-outline-info btn-sm">Read</a>
|
<a href="{{ .RelPermalink }}" class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<noscript
|
<noscript
|
||||||
>Please enable JavaScript to view the
|
>{{ i18n "comments_javascript" }}
|
||||||
<a href="https://disqus.com/?ref_noscript"
|
<a href="https://disqus.com/?ref_noscript"
|
||||||
>comments powered by Disqus.</a
|
>{{ i18n "comments_by" }} Disqus.</a
|
||||||
></noscript
|
></noscript
|
||||||
>
|
>
|
||||||
<a href="https://disqus.com/" class="dsq-brlink"
|
<a href="https://disqus.com/" class="dsq-brlink"
|
||||||
>comments powered by <span class="logo-disqus">Disqus</span></a
|
>{{ i18n "comments_by" }} <span class="logo-disqus">Disqus</span></a
|
||||||
>
|
>
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
Toha
|
Toha
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 text-center">{{ $copyrightNotice }}</div>
|
<div class="col-md-4 text-center">{{ $copyrightNotice | markdownify }}</div>
|
||||||
<div class="col-md-4 text-right">
|
<div class="col-md-4 text-right">
|
||||||
<a id="hugo" href="https://gohugo.io/">{{ i18n "hugoAttributionText" }}
|
<a id="hugo" href="https://gohugo.io/">{{ i18n "hugoAttributionText" }}
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
{{ $countryCode = "gb" }}
|
{{ $countryCode = "gb" }}
|
||||||
{{ else if eq $languageCode "bn" }}
|
{{ else if eq $languageCode "bn" }}
|
||||||
{{ $countryCode = "bd" }}
|
{{ $countryCode = "bd" }}
|
||||||
|
{{ else if eq $languageCode "hi" }}
|
||||||
|
{{ $countryCode = "in" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* return the country code */}}
|
{{/* return the country code */}}
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{{/* check if there is any hero image in the same folder as the markdown file */}}
|
{{/* check if there is any hero image in the same folder as the markdown file */}}
|
||||||
{{ $heroImage := .Page.Resources.GetMatch "hero.{jpg,png,svg}"}}
|
{{ $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 }}
|
{{ .Scratch.Set "heroScratch" $heroImage }}
|
||||||
|
|
||||||
{{/* if hero image is not provided, then use the default hero image */}}
|
{{/* if hero image is not provided, then use the default hero image */}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{/* default logos */}}
|
{{/* default logos */}}
|
||||||
{{ $mainLogo := "/images/site/main-logo.png" }}
|
{{ $mainLogo := "/images/main-logo.png" }}
|
||||||
{{ $invertedLogo := "/images/inverted-logo.png" }}
|
{{ $invertedLogo := "/images/inverted-logo.png" }}
|
||||||
|
|
||||||
{{/* if custom logo is used, them */}}
|
{{/* if custom logo is used, them */}}
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
<li>
|
<li>
|
||||||
{{ if eq .name "Email" }}
|
{{ if eq .name "Email" }}
|
||||||
<a href="mailto:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
|
<a href="mailto:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
|
||||||
|
{{ else if eq .name "Phone" }}
|
||||||
|
<a href="tel:{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
|
<a href="{{ .url }}" target="/"><i class="{{ .icon }}"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -51,18 +51,19 @@
|
||||||
{{ if .takenCourses }}
|
{{ if .takenCourses }}
|
||||||
<div class="taken-courses">
|
<div class="taken-courses">
|
||||||
<h6 class="text-muted">{{ i18n "taken_courses" }}</h6>
|
<h6 class="text-muted">{{ i18n "taken_courses" }}</h6>
|
||||||
{{ if .takenCourses.showGrades }}
|
{{ if .takenCourses.showGrades }}
|
||||||
|
{{ $hideScale := .takenCourses.hideScale }}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th>{{ i18n "course_name" }}</th>
|
<th>{{ i18n "course_name" }}</th>
|
||||||
<th>{{ i18n "total_credit" }}</th>
|
{{ if not $hideScale }}<th>{{ i18n "total_credit" }}</th>{{ end }}
|
||||||
<th>{{ i18n "obtained_credit" }}</th>
|
<th>{{ i18n "obtained_credit" }}</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $index,$course := .takenCourses.courses }}
|
{{ range $index,$course := .takenCourses.courses }}
|
||||||
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
||||||
<td>{{ $course.name }}</td>
|
<td>{{ $course.name }}</td>
|
||||||
<td>{{ $course.outOf }}</td>
|
{{ if not $hideScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
||||||
<td>{{ $course.achieved }}</td>
|
<td>{{ $course.achieved }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -51,18 +51,19 @@
|
||||||
{{ if .takenCourses }}
|
{{ if .takenCourses }}
|
||||||
<div class="taken-courses">
|
<div class="taken-courses">
|
||||||
<h6 class="text-muted">{{ i18n "taken_courses"}}</h6>
|
<h6 class="text-muted">{{ i18n "taken_courses"}}</h6>
|
||||||
{{ if .takenCourses.showGrades }}
|
{{ if .takenCourses.showGrades }}
|
||||||
|
{{ $hideScale := .takenCourses.hideScale }}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th>{{ i18n "course_name"}}</th>
|
<th>{{ i18n "course_name"}}</th>
|
||||||
<th>{{ i18n "total_credit"}}</th>
|
{{ if not $hideScale }}<th>{{ i18n "total_credit"}}</th>{{ end }}
|
||||||
<th>{{ i18n "obtained_credit"}}</th>
|
<th>{{ i18n "obtained_credit"}}</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ range $index,$course := .takenCourses.courses }}
|
{{ range $index,$course := .takenCourses.courses }}
|
||||||
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
<tr class="course {{ if gt $index 1 }}hidden-course{{ end}}">
|
||||||
<td>{{ $course.name }}</td>
|
<td>{{ $course.name }}</td>
|
||||||
<td>{{ $course.outOf }}</td>
|
{{ if not $hideScale }}<td>{{ $course.outOf }}</td>{{ end }}
|
||||||
<td>{{ $course.achieved }}</td>
|
<td>{{ $course.achieved }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{ $oldestPosition := index (last 1 .positions) 0}}
|
{{ $oldestPosition := index (last 1 .positions) 0}}
|
||||||
{{ $mostRecentPosition := index (first 1 .positions) 0}}
|
{{ $mostRecentPosition := index (first 1 .positions) 0}}
|
||||||
<p class="text-muted">
|
<p class="text-muted">
|
||||||
{{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}Present{{ end }},
|
{{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }},
|
||||||
{{ .company.location }}
|
{{ .company.location }}
|
||||||
</p>
|
</p>
|
||||||
<!-- Add company overview -->
|
<!-- Add company overview -->
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<div class="positions">
|
<div class="positions">
|
||||||
{{ range $index,$position:= .positions }}
|
{{ range $index,$position:= .positions }}
|
||||||
<h6 class="designation">{{ $position.designation }}</h6>
|
<h6 class="designation">{{ $position.designation }}</h6>
|
||||||
<p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} Present {{end}}</p>
|
<p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}</p>
|
||||||
<!-- Add the responsibilities handled at this position -->
|
<!-- Add the responsibilities handled at this position -->
|
||||||
<ul class="justify-content-around">
|
<ul class="justify-content-around">
|
||||||
{{ range $position.responsibilities }}
|
{{ range $position.responsibilities }}
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
<h5>{{ $position.designation }}</h5>
|
<h5>{{ $position.designation }}</h5>
|
||||||
<h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
|
<h6>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h6>
|
||||||
<!-- Add experience duration info -->
|
<!-- Add experience duration info -->
|
||||||
<p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}Present{{ end }},
|
<p class="text-muted">{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }},
|
||||||
{{ .company.location }}
|
{{ .company.location }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- Add company overview -->
|
<!-- Add company overview -->
|
||||||
<p>{{ .company.overview | markdownify }}</p>
|
<p>{{ .company.overview | markdownify }}</p>
|
||||||
<!-- Add the responsibilities handled at this position -->
|
<!-- Add the responsibilities handled at this position -->
|
||||||
<h6 class="text-muted">Responsibilities:</h6>
|
<h6 class="text-muted">{{ i18n "responsibilities" }}</h6>
|
||||||
<ul class="justify-content-around">
|
<ul class="justify-content-around">
|
||||||
{{ range $position.responsibilities }}
|
{{ range $position.responsibilities }}
|
||||||
<li>{{ . | markdownify }}</li>
|
<li>{{ . | markdownify }}</li>
|
||||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -247,7 +247,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"anymatch": "~3.1.1",
|
"anymatch": "~3.1.1",
|
||||||
"braces": "~3.0.2",
|
"braces": "~3.0.2",
|
||||||
"fsevents": "~2.1.2",
|
|
||||||
"glob-parent": "~5.1.0",
|
"glob-parent": "~5.1.0",
|
||||||
"is-binary-path": "~2.1.0",
|
"is-binary-path": "~2.1.0",
|
||||||
"is-glob": "~4.0.1",
|
"is-glob": "~4.0.1",
|
||||||
|
|
|
@ -29,6 +29,26 @@
|
||||||
padding: 1rem !important;
|
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 ======= */
|
/* ============= Device specific fixes ======= */
|
||||||
|
|
||||||
/* Large screens such as TV */
|
/* Large screens such as TV */
|
||||||
|
|
112
static/js/search.js
Normal file
112
static/js/search.js
Normal file
|
@ -0,0 +1,112 @@
|
||||||
|
summaryInclude=60;
|
||||||
|
var fuseOptions = {
|
||||||
|
shouldSort: true,
|
||||||
|
includeMatches: true,
|
||||||
|
threshold: 0.0,
|
||||||
|
tokenize:true,
|
||||||
|
location: 0,
|
||||||
|
distance: 100,
|
||||||
|
maxPatternLength: 32,
|
||||||
|
minMatchCharLength: 1,
|
||||||
|
keys: [
|
||||||
|
{name:"title",weight:0.8},
|
||||||
|
{name:"hero",weight:0.7},
|
||||||
|
{name:"summary",weight:0.6},
|
||||||
|
{name:"date",weight:0.5},
|
||||||
|
{name:"contents",weight:0.5},
|
||||||
|
{name:"tags",weight:0.3},
|
||||||
|
{name:"categories",weight:0.3}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var searchQuery = param("keyword");
|
||||||
|
if(searchQuery){
|
||||||
|
$("#search-query").val(searchQuery);
|
||||||
|
executeSearch(searchQuery);
|
||||||
|
}else {
|
||||||
|
$('#search-results').append("<p>Please enter a word or phrase above</p>");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function executeSearch(searchQuery){
|
||||||
|
$.getJSON( "/index.json", function( data ) {
|
||||||
|
var pages = data;
|
||||||
|
var fuse = new Fuse(pages, fuseOptions);
|
||||||
|
var result = fuse.search(searchQuery);
|
||||||
|
// console.log({"matches":result});
|
||||||
|
document.getElementById("search-box").value = searchQuery
|
||||||
|
if(result.length > 0){
|
||||||
|
populateResults(result);
|
||||||
|
}else{
|
||||||
|
$('#search-results').append("<p>No matches found</p>");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function populateResults(result){
|
||||||
|
$.each(result,function(key,value){
|
||||||
|
var contents= value.item.contents;
|
||||||
|
var snippet = "";
|
||||||
|
var snippetHighlights=[];
|
||||||
|
var tags =[];
|
||||||
|
if( fuseOptions.tokenize ){
|
||||||
|
snippetHighlights.push(searchQuery);
|
||||||
|
}else{
|
||||||
|
$.each(value.matches,function(matchKey,mvalue){
|
||||||
|
if(mvalue.key == "tags" || mvalue.key == "categories" ){
|
||||||
|
snippetHighlights.push(mvalue.value);
|
||||||
|
}else if(mvalue.key == "contents"){
|
||||||
|
start = mvalue.indices[0][0]-summaryInclude>0?mvalue.indices[0][0]-summaryInclude:0;
|
||||||
|
end = mvalue.indices[0][1]+summaryInclude<contents.length?mvalue.indices[0][1]+summaryInclude:contents.length;
|
||||||
|
snippet += contents.substring(start,end);
|
||||||
|
snippetHighlights.push(mvalue.value.substring(mvalue.indices[0][0],mvalue.indices[0][1]-mvalue.indices[0][0]+1));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if(snippet.length<1){
|
||||||
|
snippet += contents.substring(0,summaryInclude*2);
|
||||||
|
}
|
||||||
|
//pull template from hugo templarte definition
|
||||||
|
var templateDefinition = $('#search-result-template').html();
|
||||||
|
//replace values
|
||||||
|
var output = render(templateDefinition,{key:key,title:value.item.title,hero:value.item.hero,date:value.item.date,summary:value.item.summary,link:value.item.permalink,tags:value.item.tags,categories:value.item.categories,snippet:snippet});
|
||||||
|
$('#search-results').append(output);
|
||||||
|
|
||||||
|
$.each(snippetHighlights,function(snipkey,snipvalue){
|
||||||
|
$("#summary-"+key).mark(snipvalue);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function param(name) {
|
||||||
|
return decodeURIComponent((location.search.split(name + '=')[1] || '').split('&')[0]).replace(/\+/g, ' ');
|
||||||
|
}
|
||||||
|
|
||||||
|
function render(templateString, data) {
|
||||||
|
var conditionalMatches,conditionalPattern,copy;
|
||||||
|
conditionalPattern = /\$\{\s*isset ([a-zA-Z]*) \s*\}(.*)\$\{\s*end\s*}/g;
|
||||||
|
//since loop below depends on re.lastInxdex, we use a copy to capture any manipulations whilst inside the loop
|
||||||
|
copy = templateString;
|
||||||
|
while ((conditionalMatches = conditionalPattern.exec(templateString)) !== null) {
|
||||||
|
if(data[conditionalMatches[1]]){
|
||||||
|
//valid key, remove conditionals, leave contents.
|
||||||
|
copy = copy.replace(conditionalMatches[0],conditionalMatches[2]);
|
||||||
|
}else{
|
||||||
|
//not valid, remove entire section
|
||||||
|
copy = copy.replace(conditionalMatches[0],'');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
templateString = copy;
|
||||||
|
//now any conditionals removed we can do simple substitution
|
||||||
|
var key, find, re;
|
||||||
|
for (key in data) {
|
||||||
|
find = '\\$\\{\\s*' + key + '\\s*\\}';
|
||||||
|
re = new RegExp(find, 'g');
|
||||||
|
templateString = templateString.replace(re, data[key]);
|
||||||
|
}
|
||||||
|
return templateString;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue