Fix deprecation warnings (#908)
* Example site: bump hugo modules to latest versions * Fix deprecation warnings emitted by hugo v0.124 * Fix typos * Netlify: bump hugo version --------- Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
6f4e23ad40
commit
3edd8e7858
44 changed files with 66 additions and 64 deletions
4
.github/workflows/pull-request.yml
vendored
4
.github/workflows/pull-request.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install node modules
|
- name: Install node modules
|
||||||
run: npm install
|
run: npm install
|
||||||
|
@ -40,7 +40,7 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install node modules
|
- name: Install node modules
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
|
@ -15,7 +15,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// =============== Make TOC Compatible wit Bootstrap Scroll Spy ========
|
// =============== Make TOC Compatible with Bootstrap Scroll Spy ========
|
||||||
// add "navbar" class to the "nav" element
|
// add "navbar" class to the "nav" element
|
||||||
const toc = document.getElementById('TableOfContents')
|
const toc = document.getElementById('TableOfContents')
|
||||||
if (toc) {
|
if (toc) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { getDeviceState } from '../core'
|
import { getDeviceState } from '../core'
|
||||||
|
|
||||||
function fourColumRow (gallery, entries, i) {
|
function fourColumnRow (gallery, entries, i) {
|
||||||
const entry1 = document.createElement('div')
|
const entry1 = document.createElement('div')
|
||||||
entry1.classList.add('col-lg-6', 'm-0', 'p-0')
|
entry1.classList.add('col-lg-6', 'm-0', 'p-0')
|
||||||
entry1.appendChild(entries[i].cloneNode(true))
|
entry1.appendChild(entries[i].cloneNode(true))
|
||||||
|
@ -140,7 +140,7 @@ function showAchievements () {
|
||||||
if (isLaptop) {
|
if (isLaptop) {
|
||||||
if (i + 4 <= len) {
|
if (i + 4 <= len) {
|
||||||
if (rowNumber % 2) {
|
if (rowNumber % 2) {
|
||||||
fourColumRow(gallery, entries, i)
|
fourColumnRow(gallery, entries, i)
|
||||||
} else {
|
} else {
|
||||||
fourColumnReversedRow(gallery, entries, i)
|
fourColumnReversedRow(gallery, entries, i)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* override this file for custom css */
|
/* override this file for custom css */
|
||||||
|
|
||||||
/* you can import boostrap mixins */
|
/* you can import bootstrap mixins */
|
||||||
// @import 'bootstrap/scss/mixins';
|
// @import 'bootstrap/scss/mixins';
|
||||||
// Example usage
|
// Example usage
|
||||||
// .some-class {
|
// .some-class {
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: "Search Results"
|
title: "Suchergebnisse"
|
||||||
date: 2010-06-08T08:06:25+06:00
|
date: 2010-06-08T08:06:25+06:00
|
||||||
weight: 999999
|
weight: 999999
|
||||||
sitemap:
|
sitemap:
|
||||||
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
|
||||||
home = ["HTML", "JSON"]
|
home = ["HTML", "JSON"]
|
||||||
\```
|
\```
|
||||||
|
|
||||||
## Searching additional fileds
|
## Searching additional fields
|
||||||
|
|
||||||
To search additional fields defined in front matter, you must add it in 2 places.
|
To search additional fields defined in front matter, you must add it in 2 places.
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ module github.com/hugo-toha/toha/exampleSite
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20231031082630-2c32a26d2207 // indirect
|
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d // indirect
|
||||||
github.com/hugo-toha/toha/v4 v4.0.0-20231113175302-e5230e8c93d8 // indirect
|
github.com/hugo-toha/toha/v4 v4.4.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/hugo-toha/toha/v4 => ../
|
replace github.com/hugo-toha/toha/v4 => ../
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20231031082630-2c32a26d2207 h1:T71lEaGpHYpdy8yKM5vaVwm+CJGt8wjHvPgVM+GjCJM=
|
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d h1:TWNaAG2e1EZDvtl64fjyriR/qc8m7qaKnN13DgKzkFk=
|
||||||
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20231031082630-2c32a26d2207/go.mod h1:aTn1lQX1rbcbfbwNuWHG/L5DPtD+bEzQro49QyFlbEg=
|
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d/go.mod h1:BRsZS1LeIc+eSM2OWSOeXDNeZUNRcTlJtw1bL874AfQ=
|
||||||
|
github.com/hugo-toha/toha/v4 v4.4.0 h1:RdRpjfsPgE+VXb/m3Rl+1n86pVZTrplsDvtXYK3wNh0=
|
||||||
|
github.com/hugo-toha/toha/v4 v4.4.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{- with .OutputFormats.Get "RSS" -}}
|
{{- with .OutputFormats.Get "RSS" -}}
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Summary | html }}</description>
|
<description>{{ .Summary | html }}</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{/* Uses the top level site's config for a single author across all locales */}}
|
{{/* Uses the top level site's config for a single author across all locales */}}
|
||||||
{{ $authorName:= site.Params.author.name }}
|
{{ $authorName:= site.Params.author.name }}
|
||||||
|
|
||||||
{{/* Overrides with the locale specifc author if provided */}}
|
{{/* Overrides with the locale specific author if provided */}}
|
||||||
{{ if (index site.Data site.Language.Lang).author }}
|
{{ if (index site.Data site.Language.Lang).author }}
|
||||||
{{ $authorName = (index site.Data site.Language.Lang).author.name }}
|
{{ $authorName = (index site.Data site.Language.Lang).author.name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ $pageURL:= .RelPermalink }}
|
{{ $pageURL:= .RelPermalink }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $pageURL = strings.TrimPrefix (path.Join "/" .Language.Lang) $pageURL }}
|
{{ $pageURL = strings.TrimPrefix (path.Join "/" .Language.Lang) $pageURL }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row" id="acomplishment-card-holder">
|
<div class="row" id="accomplishment-card-holder">
|
||||||
{{ range .accomplishments }}
|
{{ range .accomplishments }}
|
||||||
{{ partial "cards/accomplishments" . }}
|
{{ partial "cards/accomplishments" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -118,9 +118,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .custonSections }}
|
{{ if .customSections }}
|
||||||
<div class="custom-section">
|
<div class="custom-section">
|
||||||
{{ range .custonSections }}
|
{{ range .customSections }}
|
||||||
<h6 class="text-heading">{{ .name }}: </h6>
|
<h6 class="text-heading">{{ .name }}: </h6>
|
||||||
<div class="custom-content">{{ .content | markdownify }}</div>
|
<div class="custom-content">{{ .content | markdownify }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -118,9 +118,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .custonSections }}
|
{{ if .customSections }}
|
||||||
<div class="custom-section">
|
<div class="custom-section">
|
||||||
{{ range .custonSections }}
|
{{ range .customSections }}
|
||||||
<h6 class="text-heading">{{ .name }}: </h6>
|
<h6 class="text-heading">{{ .name }}: </h6>
|
||||||
<div class="custom-content">{{ .content | markdownify }}</div>
|
<div class="custom-content">{{ .content | markdownify }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
{{ $homePage:="#" }}
|
{{ $homePage:="#" }}
|
||||||
{{ if site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
24
netlify.toml
24
netlify.toml
|
@ -5,34 +5,34 @@ publish = "exampleSite/public"
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_VERSION = "0.120.1"
|
HUGO_VERSION = "0.124.0"
|
||||||
NODE_VERSION = "v18.12.1"
|
NODE_VERSION = "v20.11.1"
|
||||||
NPM_VERSION = "8.19.2"
|
NPM_VERSION = "10.5.0"
|
||||||
|
|
||||||
[context.split1]
|
[context.split1]
|
||||||
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --enableGitInfo"
|
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --enableGitInfo"
|
||||||
|
|
||||||
[context.split1.environment]
|
[context.split1.environment]
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_VERSION = "0.120.1"
|
HUGO_VERSION = "0.124.0"
|
||||||
NODE_VERSION = "v18.12.1"
|
NODE_VERSION = "v20.11.1"
|
||||||
NPM_VERSION = "8.19.2"
|
NPM_VERSION = "10.5.0"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.120.1"
|
HUGO_VERSION = "0.124.0"
|
||||||
NODE_VERSION = "v18.12.1"
|
NODE_VERSION = "v20.11.1"
|
||||||
NPM_VERSION = "8.19.2"
|
NPM_VERSION = "10.5.0"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.120.1"
|
HUGO_VERSION = "0.124.0"
|
||||||
NODE_VERSION = "v18.12.1"
|
NODE_VERSION = "v20.11.1"
|
||||||
NPM_VERSION = "8.19.2"
|
NPM_VERSION = "10.5.0"
|
||||||
|
|
||||||
[context.next.environment]
|
[context.next.environment]
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue