Compare commits
13 commits
cd66f2b2c5
...
6716ce4a6c
Author | SHA1 | Date | |
---|---|---|---|
6716ce4a6c | |||
0abd417abd | |||
5371fed820 | |||
![]() |
b4559bffdb | ||
![]() |
18524cd06e | ||
![]() |
88cdc261a2 | ||
![]() |
871c36b431 | ||
![]() |
12fc237def | ||
![]() |
d17ec9cc56 | ||
![]() |
682ba35c9d | ||
![]() |
7bfaf2d7b8 | ||
![]() |
996838954a | ||
![]() |
4bd2617fd0 |
8 changed files with 31 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url("fonts/Inter-Regular.woff2") format("woff2"),
|
src: url("fonts/Inter-Regular.woff2") format("woff2"),
|
||||||
url("fonts/Inter-Regular.woff") format("woff");
|
url("fonts/Inter-Regular.woff") format("woff");
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url("fonts/Inter-Italic.woff2") format("woff2"),
|
src: url("fonts/Inter-Italic.woff2") format("woff2"),
|
||||||
url("fonts/Inter-Italic.woff") format("woff");
|
url("fonts/Inter-Italic.woff") format("woff");
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
src: url("fonts/Inter-Medium.woff2") format("woff2"),
|
src: url("fonts/Inter-Medium.woff2") format("woff2"),
|
||||||
url("fonts/Inter-Medium.woff") format("woff");
|
url("fonts/Inter-Medium.woff") format("woff");
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
src: url("fonts/Inter-MediumItalic.woff2") format("woff2"),
|
src: url("fonts/Inter-MediumItalic.woff2") format("woff2"),
|
||||||
url("fonts/Inter-MediumItalic.woff") format("woff");
|
url("fonts/Inter-MediumItalic.woff") format("woff");
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
src: url("fonts/Inter-Bold.woff2") format("woff2"),
|
src: url("fonts/Inter-Bold.woff2") format("woff2"),
|
||||||
url("fonts/Inter-Bold.woff") format("woff");
|
url("fonts/Inter-Bold.woff") format("woff");
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter";
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: auto;
|
font-display: swap;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
src: url("fonts/Inter-BoldItalic.woff2") format("woff2"),
|
src: url("fonts/Inter-BoldItalic.woff2") format("woff2"),
|
||||||
url("fonts/Inter-BoldItalic.woff") format("woff");
|
url("fonts/Inter-BoldItalic.woff") format("woff");
|
||||||
|
|
|
@ -74,7 +74,6 @@ h1 {
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.625rem;
|
font-size: 1.625rem;
|
||||||
margin-top: 2.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
@ -268,15 +267,15 @@ pre {
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme=dark] & {
|
[data-theme=dark] & {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme=light] & {
|
[data-theme=light] & {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,6 @@ theme = "hello-friend-ng"
|
||||||
PygmentsCodeFences = true
|
PygmentsCodeFences = true
|
||||||
PygmentsStyle = "monokai"
|
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.
|
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"
|
archetypeDir = "archetypes"
|
||||||
|
@ -30,7 +28,16 @@ disableSitemap = false
|
||||||
disable404 = false
|
disable404 = false
|
||||||
disableHugoGeneratorInject = false
|
disableHugoGeneratorInject = false
|
||||||
|
|
||||||
|
[pagination]
|
||||||
|
disableAliases = false
|
||||||
|
pagerSize = 20
|
||||||
|
path = 'page'
|
||||||
|
|
||||||
[services]
|
[services]
|
||||||
|
[services.rss]
|
||||||
|
# Maximum number of items in the RSS feed.
|
||||||
|
limit = 42
|
||||||
|
|
||||||
# [services.disqus]
|
# [services.disqus]
|
||||||
# shortname = 'your-disqus-shortname'
|
# shortname = 'your-disqus-shortname'
|
||||||
# [services.googleAnalytics]
|
# [services.googleAnalytics]
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|
||||||
<main class="posts">
|
<main class="posts">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>
|
||||||
|
{{ if eq .Title "Posts" }}
|
||||||
|
Innlegg
|
||||||
|
{{ else }}
|
||||||
|
{{ .Title }}
|
||||||
|
{{ end }}
|
||||||
|
</h1>
|
||||||
|
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<div class="content">{{ .Content }}</div>
|
<div class="content">{{ .Content }}</div>
|
||||||
|
@ -19,9 +25,9 @@
|
||||||
<span class="post-title">{{.Title}}</span>
|
<span class="post-title">{{.Title}}</span>
|
||||||
<span class="post-day">
|
<span class="post-day">
|
||||||
{{ if .Site.Params.dateformShort }}
|
{{ if .Site.Params.dateformShort }}
|
||||||
{{ .Date.Format .Site.Params.dateformShort }}
|
{{ time.Format .Site.Params.dateformShort .Date }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Date.Format "Jan 2"}}
|
{{ time.Format "Jan 2" .Date }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main aria-role="main">
|
<main>
|
||||||
<div>
|
<div>
|
||||||
{{ if .Site.Params.Portrait.Path }}
|
{{ 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 }}" />
|
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}" style="max-width:{{ .Site.Params.Portrait.MaxWidth }}" />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="footer__inner">
|
<div class="footer__inner">
|
||||||
<div class="footer__content">
|
<div class="footer__content">
|
||||||
{{ if .Site.Params.footer.trademark }}<span>© {{ .Site.Params.footer.trademark }}</span>{{ end }}
|
{{ if .Site.Params.footer.trademark }}<span>© {{ .Site.Params.footer.trademark }}</span>{{ end }}
|
||||||
{{ if .Site.Params.footer.author }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span>{{ end }}
|
{{ if .Site.Params.footer.author }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Params.Author.name }}</a></span>{{ end }}
|
||||||
{{ if .Site.Params.footer.copyright }}<span>{{ .Site.Copyright| safeHTML }}</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 }}
|
{{ 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 }}
|
{{ range .Site.Params.footer.topText }}<span>{{ . | safeHTML}}</span>{{ end }}
|
||||||
|
|
|
@ -6,11 +6,6 @@
|
||||||
<span class="logo__mark">{{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }}</span>
|
<span class="logo__mark">{{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }}</span>
|
||||||
<span class="logo__text {{ with.Site.Params.Logo.logoCursorPathname}}logo__pathname{{ end }}">
|
<span class="logo__text {{ with.Site.Params.Logo.logoCursorPathname}}logo__pathname{{ end }}">
|
||||||
{{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}</span>
|
{{ 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 }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="javascript:void(0)" class="dropbtn">{{ .Language }}</a>
|
<a href="javascript:void(0)" class="dropbtn">{{ .Language }}</a>
|
||||||
<div class="dropdown-content">
|
<div class="dropdown-content">
|
||||||
{{ if .Site.IsMultiLingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
{{ range $.Translations }}
|
{{ range $.Translations }}
|
||||||
<a title="{{ .Language }}" href="{{ .Permalink }}">{{ .Language }}</a>
|
<a title="{{ .Language }}" href="{{ .Permalink }}">{{ .Language }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue