Skills bei KnowHow mit hinzugefügt

This commit is contained in:
mdn 2022-11-28 19:58:24 +01:00
parent ac8d277899
commit c461856547
5 changed files with 63 additions and 9 deletions

View file

@ -9,3 +9,14 @@
{{ template "partials/pagination.html" . }}
{{ end }}
{{ define "sidebar" }}
<div class="position-sticky">
{{ $skillIdent := .Site.Params.KnowHow.Skills | default "skills" }}
{{ $skills := (index $.Site.Taxonomies $skillIdent)}}
{{ if $skills }}
{{- partial "widget/header.html" (dict "title" "Kenntnisse") -}}
{{- partial "widget/taglist.html" (dict "ident" $skillIdent "tax" $skills) -}}
{{ end }}
</div>
{{ end }}

View file

@ -0,0 +1,25 @@
{{ define "main" }}
<section class="section">
<article>
<div class="columns is-centered">
<div class="column">
<h1 class="title is-1">{{ .Title }}</h1>
<div class="blog-post-meta">{{ partial "metadata.html" . }}</div>
<div class="content">
{{ .Content }}
</div>
<div class="blog-post-meta mt-5">{{ partial "metafooter.html" . }}</div>
</div>
</div>
</article>
</section>
{{ end }}
{{ define "sidebar" }}
<aside class="position-sticky">
{{- partial "widget/header.html" (dict "title" "Inhaltsverzeichnis")}}
<div>
{{ .TableOfContents }}
</div>
</aside>
{{ end }}