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
4 changes: 2 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
locale = 'en-us'
defaultContentLanguage = 'en-us'
title = 'typo'

[module]
[module.hugoVersion]
extended = false
min = "0.116.0"
min = "0.158.0"

# Default config
[params.breadcrumbs]
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}"
dir="{{ or site.Language.LanguageDirection `ltr` }}">
<html lang="{{ or site.Language.Locale site.Language.Lang }}"
dir="{{ or site.Language.Direction `ltr` }}">

<head>
{{ partial "head.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta property="og:description" content="{{ trim . "\n\r\t " }}">
{{- end }}

{{- with or .Params.locale site.Language.LanguageCode }}
{{- with or .Params.locale site.Language.Locale }}
<meta property="og:locale" content="{{ replace . `-` `_` }}">
{{- end }}

Expand Down Expand Up @@ -94,4 +94,4 @@
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion wiki/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Here is a sample `hugo.toml` config to get started with the theme.

```toml
baseURL = 'https://example.org/'
languageCode = 'en-us'
locale = 'en-us'
title = 'My website'
theme = 'typo'

Expand Down
Loading