diff --git a/demo.sh b/demo.sh index 82141a72..2af037b0 100755 --- a/demo.sh +++ b/demo.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash cd exampleSite -hugo -t "hugo-academic-v3" --themesDir ../.. -p 1315 --i18n-warnings --ignoreCache server +hugo -t "academic" --themesDir ../../ -p 1315 --i18n-warnings server diff --git a/layouts/404.html b/layouts/404.html index 7672b5ce..db711564 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -10,7 +10,7 @@

{{ i18n "posts" }}

{{ range first 5 (where .Site.RegularPages "Section" "post") }} {{ end }} {{ end }} @@ -20,7 +20,7 @@

{{ i18n "publications" }}

{{ range first 5 (where .Site.RegularPages "Section" "publication") }} {{ end }} {{ end }} @@ -30,7 +30,7 @@

{{ i18n "talks" }}

{{ range first 5 (sort (where .Site.RegularPages "Type" "talk") ".Params.time_start" "desc") }} {{ end }} {{ end }} @@ -40,7 +40,7 @@

{{ i18n "projects" }}

{{ range first 5 (where .Site.RegularPages "Section" "project") }} {{ end }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4de5d501..bf4aedd9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -19,7 +19,7 @@ {{ $paginator := .Paginate .Data.Pages }} {{ range $paginator.Pages }}
-

{{ .Title }}

+

{{ .Title }}

{{ if .Params.summary }} {{ .Params.summary | plainify | emojify }} diff --git a/layouts/partials/article_metadata.html b/layouts/partials/article_metadata.html index 30eb5f64..6ee51405 100644 --- a/layouts/partials/article_metadata.html +++ b/layouts/partials/article_metadata.html @@ -42,7 +42,7 @@ {{ $comments_enabled := and $.Site.DisqusShortname (not (or $.Site.Params.disable_comments $.Params.disable_comments)) }} {{ if and $comments_enabled ($.Site.Params.comment_count | default true) }} - + {{ end}} {{ if isset $.Params "categories" }} @@ -52,7 +52,7 @@ {{ range $k, $v := $.Params.categories }} - {{ . }} + {{ . }} {{- if lt $k (sub $categoriesLen 1) -}}, {{ end }} {{ end }} diff --git a/layouts/partials/cookie_consent.html b/layouts/partials/cookie_consent.html index 08b5757f..015adb2a 100644 --- a/layouts/partials/cookie_consent.html +++ b/layouts/partials/cookie_consent.html @@ -20,7 +20,7 @@ "message": {{ i18n "cookie_message" | default "This website uses cookies to ensure you get the best experience on our website." }}, "dismiss": {{ i18n "cookie_dismiss" | default "Got it!" }}, "link": {{ i18n "cookie_learn" | default "Learn more" }}, - "href": {{ with .Site.GetPage "privacy.md" }}{{ printf "%s" .Permalink }}{{ else }}"https://cookies.insites.com"{{ end }} + "href": {{ with .Site.GetPage "privacy.md" }}{{ printf "%s" .RelPermalink }}{{ else }}"https://cookies.insites.com"{{ end }} } })}); diff --git a/layouts/partials/footer_section.html b/layouts/partials/footer_section.html index 4abe198c..6f730f0d 100644 --- a/layouts/partials/footer_section.html +++ b/layouts/partials/footer_section.html @@ -1,7 +1,7 @@