added support for injecting content

This commit is contained in:
Gabriele Musco 2021-01-02 14:08:21 +01:00
parent 25cf285710
commit 15c730e637
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
10 changed files with 24 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{{ define "main" }}
{{- partial "inject/content-before.html" . -}}
<article>
<h1>{{ .Title }}</h1>
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
@ -13,6 +14,7 @@
</p>
{{ end }}
</article>
{{- partial "inject/content-after.html" . -}}
{{ if .Site.Params.commento }}
<script
defer