diff --git a/assets/scss/_fonts.scss b/assets/scss/_fonts.scss index 2be737e..2738b65 100644 --- a/assets/scss/_fonts.scss +++ b/assets/scss/_fonts.scss @@ -1,7 +1,7 @@ @font-face { font-family: "Inter"; font-style: normal; - font-display: auto; + font-display: swap; font-weight: 400; src: url("fonts/Inter-Regular.woff2") format("woff2"), url("fonts/Inter-Regular.woff") format("woff"); @@ -9,7 +9,7 @@ @font-face { font-family: "Inter"; font-style: italic; - font-display: auto; + font-display: swap; font-weight: 400; src: url("fonts/Inter-Italic.woff2") format("woff2"), url("fonts/Inter-Italic.woff") format("woff"); @@ -18,7 +18,7 @@ @font-face { font-family: "Inter"; font-style: normal; - font-display: auto; + font-display: swap; font-weight: 600; src: url("fonts/Inter-Medium.woff2") format("woff2"), url("fonts/Inter-Medium.woff") format("woff"); @@ -26,7 +26,7 @@ @font-face { font-family: "Inter"; font-style: italic; - font-display: auto; + font-display: swap; font-weight: 600; src: url("fonts/Inter-MediumItalic.woff2") format("woff2"), url("fonts/Inter-MediumItalic.woff") format("woff"); @@ -35,7 +35,7 @@ @font-face { font-family: "Inter"; font-style: normal; - font-display: auto; + font-display: swap; font-weight: 800; src: url("fonts/Inter-Bold.woff2") format("woff2"), url("fonts/Inter-Bold.woff") format("woff"); @@ -43,7 +43,7 @@ @font-face { font-family: "Inter"; font-style: italic; - font-display: auto; + font-display: swap; font-weight: 800; src: url("fonts/Inter-BoldItalic.woff2") format("woff2"), url("fonts/Inter-BoldItalic.woff") format("woff"); diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss index c232825..1b8320b 100644 --- a/assets/scss/_main.scss +++ b/assets/scss/_main.scss @@ -74,7 +74,6 @@ h1 { h2 { font-size: 1.625rem; - margin-top: 2.5em; } h3 { @@ -268,15 +267,15 @@ pre { @media (prefers-color-scheme: dark) { color: inherit; } - + @media (prefers-color-scheme: light) { color: #ccc; } - + [data-theme=dark] & { color: inherit; } - + [data-theme=light] & { color: #ccc; } diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5ec79c5..f28becc 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -6,8 +6,6 @@ theme = "hello-friend-ng" PygmentsCodeFences = true PygmentsStyle = "monokai" -paginate = 10 -rssLimit = 10 # Maximum number of items in the RSS feed. copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template. archetypeDir = "archetypes" @@ -30,7 +28,16 @@ disableSitemap = false disable404 = false disableHugoGeneratorInject = false +[pagination] + disableAliases = false + pagerSize = 20 + path = 'page' + [services] + [services.rss] + # Maximum number of items in the RSS feed. + limit = 42 + # [services.disqus] # shortname = 'your-disqus-shortname' # [services.googleAnalytics] diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b8a5062..b72e43f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,8 +1,14 @@ {{ define "main" }} {{ $paginator := .Paginate .Data.Pages }} - +
-

{{ .Title }}

+

+ {{ if eq .Title "Posts" }} + Innlegg + {{ else }} + {{ .Title }} + {{ end }} +

{{ if .Content }}
{{ .Content }}
@@ -19,9 +25,9 @@ {{.Title}} {{ if .Site.Params.dateformShort }} - {{ .Date.Format .Site.Params.dateformShort }} + {{ time.Format .Site.Params.dateformShort .Date }} {{ else }} - {{ .Date.Format "Jan 2"}} + {{ time.Format "Jan 2" .Date }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index d0c02a4..3c813d7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@ {{ end }} {{ define "main" }} -
+
{{ if .Site.Params.Portrait.Path }} {{ .Site.Params.Portrait.Alt }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f1e9299..15123a6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@