Skip to content
Open
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
2 changes: 1 addition & 1 deletion exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ baseURL = "https://hugo-paper.vercel.app/"
title = "Paper"
author = "Steve Francia"
copyright = "© 2025, lee.so"
languageCode = "en"
locale = "en"
DefaultContentLanguage = "en"
enableInlineShortcodes = true
# prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API.
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<html
class="not-ready lg:text-base"
style="--bg: {{- $bg_color -}}"
lang="{{- or site.LanguageCode site.Language.Lang -}}"
lang="{{- .Site.Language.Locale -}}"
dir="{{- if site.Params.direction -}}{{- site.Params.direction -}}{{- else -}}ltr{{- end -}}"
>
{{- partial "head.html" . -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1 class="my-0! pb-2.5">{{- .Title -}}</h1>
{{- if .Date -}}
<time>{{- .Date | time.Format ":date_medium" -}}</time>
{{- end -}}<!---->
{{- $single_author := or .Params.Author site.Author.name -}}
{{- $single_author := or .Params.author site.Params.author -}}
<!---->
{{- if $single_author -}}
<span class="mx-1">&middot;</span>
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<meta name="theme-color" />

<!-- author -->
{{- $site_author := or site.Params.Author.name site.Params.name site.Title -}}
{{- $site_author := or .Params.author site.Params.author site.Title -}}

<!---->
{{- if eq .Kind "page" -}}
<meta name="description" content="{{- .Summary -}}" />
Expand Down