diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 17:12:28 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 17:12:28 +0200 |
| commit | db5d361b777e3669b1169dc8f7f68c89b43e0bd3 (patch) | |
| tree | 2b25cfa1fae2e296369181a1d82d6351e6cd3c64 /layouts | |
| parent | 19c9544e1db6512fbf2dab975f7ec96983854875 (diff) | |
| download | gohugo-theme-ed-db5d361b777e3669b1169dc8f7f68c89b43e0bd3.tar.gz | |
Update config format
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/index.html | 2 | ||||
| -rw-r--r-- | layouts/partials/post-meta.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/link.html | 4 |
4 files changed, 4 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e93b718..bed0257 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }} prefix="og: http://ogp.me/ns#"> {{- partial "head.html" . -}} - <body class="theme-base-{{ site.Params.color_scheme }}"> + <body class="theme-base-{{ site.Params.colorScheme }}"> {{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }} <div class="wrap"> <header class="masthead"> diff --git a/layouts/index.html b/layouts/index.html index 7b54a46..a9c9279 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,7 +16,7 @@ </ul> </div> {{- else }} - {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.main_sections) }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} <div class="articles"> {{- range $paginator.Pages }} {{- .Render "teaser" }} diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index a539c54..19c3ce6 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,6 +1,6 @@ <div class="post-meta"> {{- $root := . -}} - {{- with .Param "post_meta" -}} + {{- with .Param "postMeta" -}} {{- range $field := . -}} {{- $p := printf "post-meta/%s.html" $field -}} {{- partial $p $root -}} diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html index 362ce94..e347adc 100644 --- a/layouts/shortcodes/link.html +++ b/layouts/shortcodes/link.html @@ -1,3 +1 @@ -<a href="{{ .Get 0 | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}> - {{ .Inner }} -</a> +<a href="{{ .Get 0 | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}>{{ .Inner }}</a> |
