mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-30 00:20:43 +00:00
Add partials
This commit is contained in:
parent
16103599b3
commit
9f753226f6
6 changed files with 52 additions and 11 deletions
14
layouts/partials/content.html
Normal file
14
layouts/partials/content.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
{{ if .IsPage }}
|
||||
<p>{{ partial "content-details.html" . }}</p>
|
||||
{{ end }}
|
||||
<hr>
|
||||
|
||||
<div class="content">
|
||||
{{ if .TableOfContents }}
|
||||
<div class="content">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue