Compare commits

..

13 commits

Author SHA1 Message Date
6716ce4a6c
Translate to norwegian. 2024-12-15 01:45:31 +01:00
0abd417abd
Remove margin-top from h2. 2024-12-15 01:45:30 +01:00
5371fed820
Remove cursor. 2024-12-15 01:45:27 +01:00
Djordje Atlialp
b4559bffdb Fix rss
Fix https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/457
2024-10-18 00:37:11 +02:00
Djordje Atlialp
18524cd06e
Merge pull request #455 from 497a/master
Fix author not showing in footer
2024-10-18 00:32:26 +02:00
Djordje Atlialp
88cdc261a2
Merge pull request #452 from ttybitnik/fix/blog-list-dates
Fix: Implement builtin localization for dates in blog list
2024-10-18 00:22:43 +02:00
Djordje Atlialp
871c36b431 Merge remote-tracking branch 'origin/master' 2024-10-18 00:10:36 +02:00
Djordje Atlialp
12fc237def
Merge pull request #454 from cortex3/master
adding SEO improvements
2024-10-18 00:09:58 +02:00
Djordje Atlialp
d17ec9cc56 Fix deprecated warning
https://gohugo.io/templates/pagination/
2024-10-18 00:04:42 +02:00
Djordje Atlialp
682ba35c9d Fix deprecated warning
https://gohugo.io/functions/hugo/ismultilingual/
2024-10-17 23:49:53 +02:00
Izzie
7bfaf2d7b8
Fix author not showing in footer 2023-12-20 08:20:49 +00:00
cortex3
996838954a adding SEO improvements 2023-12-17 19:28:26 +01:00
ttybitnik
4bd2617fd0
fix: implement builtin i18n for blog list dates 2023-11-26 17:59:14 -03:00
8 changed files with 31 additions and 24 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -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 }}" />

View file

@ -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>&copy; {{ .Site.Params.footer.trademark }}</span>{{ end }} {{ if .Site.Params.footer.trademark }}<span>&copy; {{ .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 }}

View file

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

View file

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