Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings #908

Merged
merged 6 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install node modules
run: npm install
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install node modules
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/pages/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
const toc = document.getElementById('TableOfContents')
if (toc) {
Expand Down
4 changes: 2 additions & 2 deletions assets/scripts/sections/achievements.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getDeviceState } from '../core'

function fourColumRow (gallery, entries, i) {
function fourColumnRow (gallery, entries, i) {
const entry1 = document.createElement('div')
entry1.classList.add('col-lg-6', 'm-0', 'p-0')
entry1.appendChild(entries[i].cloneNode(true))
Expand Down Expand Up @@ -140,7 +140,7 @@ function showAchievements () {
if (isLaptop) {
if (i + 4 <= len) {
if (rowNumber % 2) {
fourColumRow(gallery, entries, i)
fourColumnRow(gallery, entries, i)
} else {
fourColumnReversedRow(gallery, entries, i)
}
Expand Down
2 changes: 1 addition & 1 deletion assets/styles/override.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* override this file for custom css */

/* you can import boostrap mixins */
/* you can import bootstrap mixins */
// @import 'bootstrap/scss/mixins';
// Example usage
// .some-class {
Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.bn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.hi.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.id.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/notes/search.vn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.bn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
4 changes: 2 additions & 2 deletions content/search/search.de.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Search Results"
title: "Suchergebnisse"
date: 2010-06-08T08:06:25+06:00
weight: 999999
sitemap:
Expand All @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.hi.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.id.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
2 changes: 1 addition & 1 deletion content/search/search.vn.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Search depends on additional output content type of JSON in config.toml
home = ["HTML", "JSON"]
\```

## Searching additional fileds
## Searching additional fields

To search additional fields defined in front matter, you must add it in 2 places.

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/hugo-toha/toha/exampleSite
go 1.19

require (
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20231031082630-2c32a26d2207 // indirect
github.com/hugo-toha/toha/v4 v4.0.0-20231113175302-e5230e8c93d8 // indirect
github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d // indirect
github.com/hugo-toha/toha/v4 v4.4.0 // indirect
)

replace github.com/hugo-toha/toha/v4 => ../
6 changes: 4 additions & 2 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -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-20231031082630-2c32a26d2207/go.mod h1:aTn1lQX1rbcbfbwNuWHG/L5DPtD+bEzQro49QyFlbEg=
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-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=
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}

Expand Down
8 changes: 4 additions & 4 deletions layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<link>{{ .Permalink }}</link>
<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 }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
Expand All @@ -33,7 +33,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<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>
<description>{{ .Summary | html }}</description>
</item>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/categories/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/notes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/notes/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/helpers/get-author-name.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/* Uses the top level site's config for a single author across all locales */}}
{{ $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 }}
{{ $authorName = (index site.Data site.Language.Lang).author.name }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navigators/lang-selector.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $pageURL:= .RelPermalink }}
{{ if site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
{{ $pageURL = strings.TrimPrefix (path.Join "/" .Language.Lang) $pageURL }}
{{ end }}
<li class="nav-item dropdown">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sections/accomplishments.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="text-center" style="display: none">
{{ end }}

<div class="container">
<div class="row" id="acomplishment-card-holder">
<div class="row" id="accomplishment-card-holder">
{{ range .accomplishments }}
{{ partial "cards/accomplishments" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sections/education-alt.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ <h6 class="text-heading">{{ i18n "extracurricular_activities" }}:</h6>
</ul>
</div>
{{ end }}
{{ if .custonSections }}
{{ if .customSections }}
<div class="custom-section">
{{ range .custonSections }}
{{ range .customSections }}
<h6 class="text-heading">{{ .name }}: </h6>
<div class="custom-content">{{ .content | markdownify }}</div>
{{ end }}
Expand Down
Loading
Loading