Skills bei KnowHow mit hinzugefügt
This commit is contained in:
parent
ac8d277899
commit
c461856547
5 changed files with 63 additions and 9 deletions
|
@ -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 }}
|
25
layouts/knowhow/single.html
Normal file
25
layouts/knowhow/single.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue