Compare commits
No commits in common. "ca515bc67da4be8cdf446f7503b696d9396d4c9b" and "af78b05c29d7f1237df1f7fcbcb818c78a7b6ff2" have entirely different histories.
ca515bc67d
...
af78b05c29
|
@ -5,5 +5,4 @@ menu:
|
|||
weight: 2
|
||||
params:
|
||||
icon: archives
|
||||
draft: true
|
||||
---
|
||||
|
|
5
content/post/test/index.md
Normal file
5
content/post/test/index.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Hello World
|
||||
description: Shit’s happening
|
||||
---
|
||||
yeeeeeee
|
|
@ -27,7 +27,7 @@ with pkgs; let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mart-w.de-${version}";
|
||||
version = "1.0.1";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
{{ define "body-class" }}
|
||||
article-page
|
||||
{{/*
|
||||
Enable the right sidebar if
|
||||
- Widget different from 'TOC' is enabled
|
||||
- TOC is enabled and not empty
|
||||
*/}}
|
||||
{{- $HasWidgetNotTOC := false -}}
|
||||
{{- $TOCWidgetEnabled := false -}}
|
||||
{{- range .Site.Params.widgets.page -}}
|
||||
{{- if ne .type "toc" -}}
|
||||
{{ $HasWidgetNotTOC = true -}}
|
||||
{{- else -}}
|
||||
{{ $TOCWidgetEnabled = true -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $TOCManuallyDisabled := eq .Params.toc false -}}
|
||||
{{- $TOCEnabled := and (not $TOCManuallyDisabled) $TOCWidgetEnabled -}}
|
||||
{{- $hasTOC := ge (len .TableOfContents) 100 -}}
|
||||
{{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}}
|
||||
|
||||
{{- .Scratch.Set "hasWidget" (or $HasWidgetNotTOC (and $TOCEnabled $hasTOC)) -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "article/article.html" . }}
|
||||
|
||||
{{ if .Params.links }}
|
||||
{{ partial "article/components/links" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "article/components/related-content" . }}
|
||||
|
||||
{{ if not (eq .Params.comments false) }}
|
||||
{{ partial "comments/include" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partialCached "footer/footer" . }}
|
||||
|
||||
{{ partialCached "article/components/photoswipe" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "right-sidebar" }}
|
||||
{{ if .Scratch.Get "hasWidget" }}{{ partial "sidebar/right.html" (dict "Context" . "Scope" "page") }}{{ end}}
|
||||
{{ end }}
|
Loading…
Reference in a new issue