Move a bunch of stuff from the theme
This commit is contained in:
parent
ae15fe67b8
commit
ce1c860269
10 changed files with 18 additions and 0 deletions
3
layouts/404.html
Normal file
3
layouts/404.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
<h1 class="title-404">404</h1>
|
||||
{{ end }}
|
9
layouts/shortcodes/collapse.html
Normal file
9
layouts/shortcodes/collapse.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!---->{{ if not (.Get "summary") }}
|
||||
<!---->{{ errorf "missing param 'summary': %s" .Position }}
|
||||
<!---->{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s" .Position }}
|
||||
<!---->{{ end }}
|
||||
|
||||
<details {{ if (eq (.Get `openByDefault`) true) }}open="true" {{ end }}>
|
||||
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
|
||||
{{ .Get "content" | markdownify }}
|
||||
</details>
|
Loading…
Add table
Add a link
Reference in a new issue