Very poggers updates!

This commit is contained in:
Sivert V. Sæther 2022-03-30 15:06:21 +00:00
parent 222b2861b1
commit 60abb12da2
32 changed files with 160 additions and 145 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
.hugo_build.lock .hugo_build.lock
public/

View File

@ -1,15 +1,12 @@
HUGO := hugo HUGO := hugo
.PHONY: publish build create .PHONY: build create clean
publish: build build: clean
git add public/ $(HUGO) --gc
git commit -m'public/ autocommit'
git push
build:
rm -fr public/
$(HUGO) --gc --minify
create: create:
$(HUGO) server --bind 0.0.0.0 $(HUGO) server -D --bind 0.0.0.0 --disableFastRender
clean:
rm -fr public/

View File

@ -1,13 +1,12 @@
--- ---
deprecated: false deprecated: false
publishdate: {{ dateFormat "Jan 2 15:04 2006" now }} publishdate: {{ .Date }}
lastmod: {{ dateFormat "Jan 2 15:04 2006" now }} date: {{ .Date }}
date: {{ dateFormat "Jan 2 15:04 2006" now }} draft: true
aliases: [] aliases: []
categories: ["various"] categories: ["various"]
series: [] series: []
tags: ["various"] tags: ["various"]
draft: true
toc: true toc: true
title: {{ replace .Name "-" " " | title }} title: {{ replace .Name "-" " " | title }}
description: description:

View File

@ -1,13 +1,12 @@
--- ---
deprecated: false deprecated: false
publishdate: {{ dateFormat "Jan 2 15:04 2006" now }} publishdate: {{ .Date }}
lastmod: {{ dateFormat "Jan 2 15:04 2006" now }} date: {{ .Date }}
date: {{ dateFormat "Jan 2 15:04 2006" now }} draft: true
aliases: [] aliases: []
categories: ["meta"] categories: ["meta"]
series: [] series: []
tags: ["info","meta"] tags: ["info","meta"]
draft: true
toc: true toc: true
title: {{ replace .Name "-" " " | title }} title: {{ replace .Name "-" " " | title }}
description: description:

View File

@ -1,5 +1,8 @@
defaultContentLanguage: en defaultContentLanguage: en
enableRobotsTXT: true enableRobotsTXT: true
enableGitInfo: true
frontmatter:
lastmod: ["lastmod", ":git", "date", "publishDate"]
author: author:
name: Sivert V. Sæther name: Sivert V. Sæther
email: gmail@sivert.pw email: gmail@sivert.pw

View File

@ -0,0 +1,10 @@
main:
# - name: Blog
# url: /nl/blog
# weight: 10
# - name: Om deze website
# url: /nl/about
# weight: 3
- name: Mijn nederig startpagina
url: https://sivert.pw
weight: 1

View File

@ -8,6 +8,6 @@ main:
- name: IT1 vgs - name: IT1 vgs
url: /old/it1 url: /old/it1
weight: 2 weight: 2
- name: Hjemmeside - name: Min ydmyke hjemmeside
url: https://sivert.pw url: https://sivert.pw
weight: 1 weight: 1

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 27 18:08 2022 publishdate: 2022-03-27T18:08:24Z
lastmod: Mar 27 18:08 2022 date: 2022-03-27T18:08:24Z
date: Mar 27 18:08 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

View File

@ -1,17 +1,17 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 27 18:08 2022 publishdate: 2022-03-27T18:08:24Z
lastmod: Mar 27 18:08 2022 date: 2022-03-27T18:08:24Z
date: Mar 27 18:08 2022 draft: false
draft: true
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]
series: [] series: []
tags: ["Info","Meta"] tags: ["Info","Meta"]
toc: false toc: false
title: title: Welkom!
description: description: Bestemmingspagina voor Siverts GitHub Pages blog en portfolio.
--- ---
# Velkommen! Dus ik denk dat ik eindelijk mijn github.io-site moet bijwerken. Mooi hoor!
Så jeg har visst endelig kommet runt til å oppdatere min github.io side. Kult!
Ik ben aan nederlands studeren en ik zal in de loop van de tijd dingen vertalen.

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 27 18:08 2022 publishdate: 2022-03-27T18:08:24Z
lastmod: Mar 29 27 18:08 2022 date: 2022-03-27T18:08:24Z
date: Mar 27 18:08 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 27 18:08 2022 publishdate: 2022-03-27T18:08:24Z
lastmod: Mar 27 18:08 2022 date: 2022-03-27T18:08:24Z
date: Mar 27 18:08 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 29 21:10 2022 publishdate: 2022-03-29T21:10:24Z
lastmod: Mar 29 21:10 2022 date: 2022-03-29T21:10:24Z
date: Mar 29 21:10 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 27 18:04 2022 publishdate: 2022-03-27T18:08:24Z
lastmod: Mar 27 18:04 2022 date: 2022-03-27T18:08:24Z
date: Mar 27 18:04 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

13
content/blog/_index.nl.md Normal file
View File

@ -0,0 +1,13 @@
---
deprecated: false
publishdate: 2022-03-30T12:04:24Z
date: 2022-03-30T12:04:24Z
draft: true
aliases: []
categories: ["Meta"]
series: []
tags: ["Info","Meta"]
toc: false
title: Siverts Technisch Avontuur Blog
description: Bestemmingspagina voor Siverts Siverts Technisch Avontuur Blog!
---

View File

@ -1,8 +1,7 @@
--- ---
deprecated: false deprecated: false
publishdate: Mar 29 21:00 2022 publishdate: 2022-03-29T21:00:24Z
lastmod: Mar 29 21:00 2022 date: 2022-03-29T21:00:24Z
date: Mar 29 21:00 2022
draft: false draft: false
aliases: [] aliases: []
categories: ["Meta"] categories: ["Meta"]

View File

@ -3,11 +3,15 @@ other = 'Translations'
[languages] [languages]
other = 'Languages' other = 'Languages'
[published]
other = 'Published'
[modified]
other = 'Updated'
[readMore] [readMore]
other = 'Read More' other = 'Read More'
[wordCount] [wordCount]
other = 'This article has {{ .WordCount }} words.' other = 'This article has {{ . }} words'
[readingTime] [readingTime]
one = 'One minute to read.' other = '{{ . }} minutes to read'
other = '{{ .Count }} minutes to read.' one = 'One minute to read'

View File

@ -1,4 +1,17 @@
[translations] [translations]
other = 'Vertalingen' other = 'Vertalingen'
[languages] [languages]
other = 'Talen' other = 'Talen'
[published]
other = 'Gepubliceerd'
[modified]
other = 'Bijgewerkt'
[readMore]
other = 'Lees verder'
[wordCount]
other = 'Dit artikel heeft {{ . }} woorden'
[readingTime]
other = '{{ . }} minuut om te lezen'
one = 'Een minuut om te lezen'

View File

@ -3,11 +3,15 @@ other = 'Oversettelser'
[languages] [languages]
other = 'Språk' other = 'Språk'
[published]
other = 'Lagt ut'
[modified]
other = 'Oppdatert'
[readMore] [readMore]
other = 'Les Mer' other = 'Les Mer'
[wordCount] [wordCount]
other = 'Denne artikelen har {{ .WordCount }} ord.' other = 'Denne artikelen har {{ . }} ord'
[readingTime] [readingTime]
other = '{{ .Count }} minutters lesetid.' other = '{{ . }} minutters lesetid'
one = 'Ett minutts lesetid.' one = 'Ett minutts lesetid'

View File

@ -23,15 +23,31 @@
<meta name='description' content='{{ .Description }}'> <meta name='description' content='{{ .Description }}'>
{{ end }} {{ end }}
{{ block "head" . }} {{ block "head" . }}
<link href='/main.css' rel='stylesheet'>
{{ end }} {{ end }}
{{ if .Param "chroma" }}
<link href='/chroma.css' rel='stylesheet'>
{{ end }}
<link href='/main.css' rel='stylesheet'>
</head> </head>
<body> <body>
<header> <header>
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
</header> </header>
<div id="content"> <div id="content">
<main>{{ block "main" . }}{{ end }}</main> <main>
{{ if .Param "toc" }}
<div class='row'>
<div class='col-md-2'>
{{ partial "toc.html" . }}
</div>
<div class='col-md-10'>
{{ block "main" . }}{{ end }}
</div>
</div>
{{ else }}
{{ block "main" . }}{{ end }}
{{ end }}
</main>
</div> </div>
<!-- {{ partial "i18n/list.html" . }} --> <!-- {{ partial "i18n/list.html" . }} -->
<footer> <footer>

View File

@ -1,10 +0,0 @@
{{ define "main" }}
{{ .Content }}
<ul class='contents'>
{{ range .Pages }}
<li>
<a href='{{ .Permalink }}'>{{ .Date.Format "2006/01/02" }} - {{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}

View File

@ -1,24 +1,15 @@
{{ define "main" }} {{ define "main" }}
<div class='row'> <article>
<div class='col-md-2'> <header>
<aside id="meta"> <h1>{{ .Title }}</h1>
{{ .TableOfContents }} </header>
</aside> {{ .Content }}
</div> <ul class="contents">
<div class='col-md-10'> {{ range .Pages }}
<article> <li>
<header> {{ partial "summary.html" . }}
<h1>{{ .Title }}</h1> </li>
</header> {{ end }}
{{ .Content }} </ul>
<ul class="contents"> </article>
{{ range .Pages }}
<li>
{{ partial "summary.html" . }}
</li>
{{ end }}
</ul>
</article>
</div>
</div>
{{ end }} {{ end }}

View File

@ -1,15 +1,8 @@
{{ define "main" }} {{ define "main" }}
<div class='row'> <article>
<div class='col-md-2'> <header>
{{ partial "toc.html" . }} <h1>{{ .Title }}</h1>
</div> </header>
<div class='col-md-10'> {{ .Content }}
<article> </article>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .Content }}
</article>
</div>
</div>
{{ end }} {{ end }}

View File

@ -1,21 +0,0 @@
{{ define "main" }}
<div class='row'>
<div class='col-md-2'>
<aside id="meta">
{{ if .IsPage }}
{{ partial "breadcrumb.html" . }}
<p>{{ i18n "readingTime" .ReadingTime }}</p>
{{ end }}
{{ .TableOfContents }}
</aside>
</div>
<div class='col-md-10'>
<article>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .Content }}
</article>
</div>
</div>
{{ end }}

View File

@ -1,17 +1,16 @@
{{ define "main" }} {{ define "main" }}
<div class='row'> <article>
<div class='col-md-2'> <header>
<aside id="meta"> <h1>{{ .Title }}</h1>
{{ .TableOfContents }} </header>
</aside> {{ .Content }}
</div> <ul class="contents">
<div class='col-md-10'> {{ range .Pages }}
<article> <br />
<header> <li>
<h1>{{ .Title }}</h1> {{ partial "summary.html" . }}
</header> </li>
{{ .Content }} {{ end }}
</article> </ul>
</div> </article>
</div>
{{ end }} {{ end }}

View File

@ -8,6 +8,6 @@
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }} {{ end }}
<li{{ if eq .p1 .p2 }} class="active"{{ end }}> <li{{ if eq .p1 .p2 }} class="active"{{ end }}>
<a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a> <a href="{{ .p1.RelPermalink }}">{{ .p1.Title }}</a>
</li> </li>
{{ end }} {{ end }}

View File

@ -1,6 +1,6 @@
{{ if .IsTranslated }}<h4>{{ T "translations" }}</h4> {{ if .IsTranslated }}<h4>{{ T "translations" }}</h4>
<ul>{{ range .Translations }} <ul>{{ range .Translations }}
<li> <li>
<a href='{{ .Permalink }}'>{{ .Lang }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a> <a href='{{ .RelPermalink }}'>{{ .Lang }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a>
</li>{{ end }} </li>{{ end }}
</ul>{{ end }} </ul>{{ end }}

View File

@ -1,8 +1,10 @@
<li id='lang-menu'> <li id='lang-menu'>
<a id='lang-menu-btn' href='#'>{{ T "translations" }}</a> <a id='lang-menu-btn' href='#'>{{ T "translations" }}</a>
<ul> <ul>
{{ range $.Site.Home.AllTranslations }} {{ range .AllTranslations }}
<li><a href='{{ .Permalink }}'>{{ .Language.LanguageName }}</a></li> {{ if ne .Language.Lang $.Page.Language.Lang }}
<li><a href='{{ .RelPermalink }}'>{{ .Language.LanguageName }}</a></li>
{{ end }}
{{ end }} {{ end }}
</ul> </ul>
</li> </li>

View File

@ -1,6 +1,6 @@
<nav id="navbar"> <nav id="navbar">
<ul class="top-nav"> <ul class="top-nav">
<li class=""><a href="/">{{ site.Title }}</a></li> <li class=""><a href="/{{ .Language.Lang }}">{{ site.Title }}</a></li>
{{ partial "i18n/nav.html" . }} {{ partial "i18n/nav.html" . }}
<div class="link-group"> <div class="link-group">
{{ $currentPage := . }} {{ $currentPage := . }}

View File

@ -1,11 +1,17 @@
{{- $pubdate := .PublishDate.Format "02/01/2006" }}
{{- $lastmod := .Lastmod.Format "02/01/2006" }}
<article> <article>
<div> <div>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <h3><a href='{{ .RelPermalink }}'>{{ .Title }}</a></h3>
{{ i18n "published" }} {{ $pubdate }}
{{ if ne $pubdate $lastmod }}
{{ i18n "modified" }} {{ $lastmod }}
{{ end }}<br />
{{ .Summary }} {{ .Summary }}
</div> </div>
{{ if .Truncated }} {{ if .Truncated }}
<div> <div>
<a href="{{ .RelPermalink }}">{{ i18n "readMore" }}…</a> <a href='{{ .RelPermalink }}'>{{ i18n "readMore" }}…</a>
</div> </div>
{{ end }} {{ end }}
</article> </article>

View File

@ -1,6 +1,8 @@
<aside id='meta'> <aside id='meta'>
<header> <header>
<h4>{{ .Title }}</h4> <h4>{{ .Title }}</h4>
{{ i18n "wordCount" .WordCount }}.
{{ i18n "readingTime" .ReadingTime }}.
</header> </header>
{{ .TableOfContents }} {{ .TableOfContents }}
</aside> </aside>

View File

@ -31,4 +31,5 @@
.chroma .c1 { color: #ff0000; font-style: italic } .chroma .c1 { color: #ff0000; font-style: italic }
.chroma .cs { color: #ff0000; font-style: italic } .chroma .cs { color: #ff0000; font-style: italic }
.chroma .cp { color: #ff0000; font-style: italic } .chroma .cp { color: #ff0000; font-style: italic }
.chroma .cpf { color: #ff0000; font-style: italic } .chroma .cpf { color: #ff0000; font-style: italic }
.highlight pre { padding: 1rem; max-width: 75%; }

View File

@ -39,7 +39,6 @@ body {
#lang-menu ul { #lang-menu ul {
background-color: #222; background-color: #222;
position: absolute; position: absolute;
min-width: 160px;
display: none; display: none;
z-index: 1; z-index: 1;
} }