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 errors and warnings #478

Merged
merged 3 commits into from
Sep 16, 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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ baseurl = "https://example.com/" # Include trailing slash
# title = "Clarity" # Edit directly from config/_default/languages.toml # alternatively, uncomment this and remove `title` entry from the aforemention file.
copyright = "Copyright © 2008–2018, Steve Francia and the Hugo Authors; all rights reserved."
# canonifyurls = true
paginate = 10

theme = "hugo-clarity"
disqusShortname = ""

Expand All @@ -22,3 +22,6 @@ series = "series"

[outputs]
home = ["HTML", "RSS", "JSON"]

[pagination]
pagerSize = 10
2 changes: 1 addition & 1 deletion layouts/partials/comments.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="post_comments">
{{ if .Site.DisqusShortname }}
{{ if .Site.Config.Services.Disqus.Shortname }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ if .Site.Params.utterances }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/func/getDefaultLanguage.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $defaultLanguage := site.LanguageCode }}
{{ if site.IsMultiLingual}}
{{ if hugo.IsMultilingual }}
{{ $languages := site.Languages }}
{{ $order := slice }}
{{ range $languages }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/func/getStylesBundle.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- styles definition-->
{{ $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") }}
{{ $mainSassFile := "sass/main.sass" }}
{{ $styles := resources.Get $mainSassFile | resources.ExecuteAsTemplate $mainSassFile . | resources.ToCSS $options | resources.Fingerprint "sha512" }}
{{ $styles := resources.Get $mainSassFile | resources.ExecuteAsTemplate $mainSassFile . | css.Sass $options | resources.Fingerprint "sha512" }}

{{ return $styles }}
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{- else }}
{{ partial "nav" (dict "context" . "menu" .Site.Menus.main) }}
{{- end }}
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
<div class="nav_parent">
<a href="#" class="nav_item">{{ $params.languageMenuName }}</a>
<div class="nav_sub">
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://github.com/chipzoller/hugo-clarity"
demosite = "https://neonmirrors.net/"
tags = ["blog", "technical", "simple", "dark", "syntax highlighting"]
features = ["blog", "technical", "simple", "dark", "syntax highlighting"]
min_version = "0.91.0"
min_version = "0.128.0"

# If the theme has multiple authors
authors = [
Expand Down