Skip to content

Commit

Permalink
update module and some defecated error solve
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsazib committed Dec 22, 2024
1 parent 1afb8da commit c7a9322
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 55 deletions.
52 changes: 27 additions & 25 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,32 @@ module gethugothemes.com
go 1.19

require (
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/crisp-chat v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/components/valine-comment v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/icons/themify-icons v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/buttons v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/collapse v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/gallery v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/table-of-contents v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/tabs v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/shortcodes/video v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20240228105219-38c9f9c6e062 // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/crisp-chat v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/components/valine-comment v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/icons/themify-icons v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/buttons v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/collapse v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/gallery v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/table-of-contents v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/tabs v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/shortcodes/video v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20241203025515-30ad48e108af // indirect
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 // indirect
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000 // indirect
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
)
2 changes: 1 addition & 1 deletion exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ theme = "dot-hugo"
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timeZone = "America/New_York"
# post pagination
paginate = 2 # see https://gohugo.io/extras/pagination/
pagination.pagerSize = 2 # see https://gohugo.io/extras/pagination/
# post excerpt
summaryLength = 10 # see https://gohugo.io/content-management/excerpts/
# disable language
Expand Down
57 changes: 29 additions & 28 deletions layouts/partials/essentials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,37 +66,38 @@
{{ end }}
</ul>
<!-- Language List -->
{{- if site.IsMultiLingual }}
<select
class="lang-list {{ if not .IsHome }}dark mb-3 mb-md-0{{ end }}"
id="select-language"
onchange="location = this.value;">
{{ $siteLanguages := site.Languages }}
{{ $pageLang := .Page.Lang }}
{{ range .Page.AllTranslations }}
{{ $translation := . }}
{{ range $siteLanguages }}
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang }}
<option
id="{{ $translation.Language }}"
value="{{ $translation.Permalink }}"
selected>
{{ .LanguageName }}
</option>
{{ else }}
<option
id="{{ $translation.Language }}"
value="{{ $translation.Permalink }}">
{{ .LanguageName }}
</option>
{{ end }}
{{- if hugo.IsMultilingual }}
<select
class="lang-list {{ if not .IsHome }}dark mb-3 mb-md-0{{ end }}"
id="select-language"
onchange="location = this.value;">
{{ $siteLanguages := site.Languages }}
{{ $pageLang := .Page.Lang }}
{{ range .Page.AllTranslations }}
{{ $translation := . }}
{{ range $siteLanguages }}
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang }}
<option
id="{{ $translation.Language }}"
value="{{ $translation.Permalink }}"
selected>
{{ .LanguageName }}
</option>
{{ else }}
<option
id="{{ $translation.Language }}"
value="{{ $translation.Permalink }}">
{{ .LanguageName }}
</option>
{{ end }}
{{ end }}
{{ end }}
</select>
{{ end }}
{{ end }}
</select>
{{ end }}

</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dot-hugo",
"version": "3.0.0",
"version": "3.0.1",
"license": "MIT",
"author": "gethugothemes",
"scripts": {
Expand Down

0 comments on commit c7a9322

Please sign in to comment.