Compare commits

..

No commits in common. "6716ce4a6c901483e8cd32b1aa3f8cda61c9db15" and "cd66f2b2c531c8ba12b69a86a1d9f96da31396f2" have entirely different histories.

8 changed files with 24 additions and 31 deletions

View file

@ -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");

View file

@ -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;
}

View file

@ -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]

View file

@ -1,14 +1,8 @@
{{ define "main" }}
{{ $paginator := .Paginate .Data.Pages }}
<main class="posts">
<h1>
{{ if eq .Title "Posts" }}
Innlegg
{{ else }}
{{ .Title }}
{{ end }}
</h1>
<h1>{{ .Title }}</h1>
{{ if .Content }}
<div class="content">{{ .Content }}</div>
@ -25,9 +19,9 @@
<span class="post-title">{{.Title}}</span>
<span class="post-day">
{{ 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 }}
</span>
</a>

View file

@ -3,7 +3,7 @@
{{ end }}
{{ define "main" }}
<main>
<main aria-role="main">
<div>
{{ if .Site.Params.Portrait.Path }}
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}" style="max-width:{{ .Site.Params.Portrait.MaxWidth }}" />

View file

@ -3,7 +3,7 @@
<div class="footer__inner">
<div class="footer__content">
{{ if .Site.Params.footer.trademark }}<span>&copy; {{ .Site.Params.footer.trademark }}</span>{{ end }}
{{ if .Site.Params.footer.author }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Params.Author.name }}</a></span>{{ end }}
{{ if .Site.Params.footer.author }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span>{{ end }}
{{ if .Site.Params.footer.copyright }}<span>{{ .Site.Copyright| safeHTML }}</span>{{ end }}
{{ if .Site.Params.footer.rss }}<span><a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></span>{{ end }}
{{ range .Site.Params.footer.topText }}<span>{{ . | safeHTML}}</span>{{ end }}

View file

@ -6,6 +6,11 @@
<span class="logo__mark">{{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }}</span>
<span class="logo__text {{ with.Site.Params.Logo.logoCursorPathname}}logo__pathname{{ end }}">
{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
<span class="logo__cursor" style=
"{{ with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end }}
{{ with.Site.Params.Logo.logoCursorColor }}background-color:{{ . }};{{ end }}
{{ with.Site.Params.Logo.logoCursorAnimate }}animation-duration:{{ . }};{{ end }}">
</span>
{{ end }}
</div>
</a>

View file

@ -10,7 +10,7 @@
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">{{ .Language }}</a>
<div class="dropdown-content">
{{ if hugo.IsMultilingual }}
{{ if .Site.IsMultiLingual }}
{{ range $.Translations }}
<a title="{{ .Language }}" href="{{ .Permalink }}">{{ .Language }}</a>
{{ end }}