Skip to content

Commit

Permalink
Merge pull request #1 from deining/fix-error
Browse files Browse the repository at this point in the history
Fix error
  • Loading branch information
barefootstache authored Sep 13, 2024
2 parents b81bd45 + 0b11106 commit dd5e50b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
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

0 comments on commit dd5e50b

Please sign in to comment.