diff --git a/assets/scss/_fonts.scss b/assets/scss/_fonts.scss index 2738b65..2be737e 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: swap; + font-display: auto; 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: swap; + font-display: auto; 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: swap; + font-display: auto; 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: swap; + font-display: auto; 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: swap; + font-display: auto; 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: swap; + font-display: auto; 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 1b8320b..c232825 100644 --- a/assets/scss/_main.scss +++ b/assets/scss/_main.scss @@ -74,6 +74,7 @@ h1 { h2 { font-size: 1.625rem; + margin-top: 2.5em; } h3 { @@ -267,15 +268,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 f28becc..5ec79c5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -6,6 +6,8 @@ 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" @@ -28,16 +30,7 @@ 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 b72e43f..b8a5062 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,14 +1,8 @@ {{ define "main" }} {{ $paginator := .Paginate .Data.Pages }} - +
-

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

+

{{ .Title }}

{{ if .Content }}
{{ .Content }}
@@ -25,9 +19,9 @@ {{.Title}} {{ if .Site.Params.dateformShort }} - {{ time.Format .Site.Params.dateformShort .Date }} + {{ .Date.Format .Site.Params.dateformShort }} {{ else }} - {{ time.Format "Jan 2" .Date }} + {{ .Date.Format "Jan 2"}} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 3c813d7..d0c02a4 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 15123a6..f1e9299 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@