Flattenign single page template

This commit is contained in:
shockrah 2023-10-08 20:27:30 -07:00
parent bd3dea8788
commit 2cd9db5b37
2 changed files with 11 additions and 7 deletions

View File

@ -22,11 +22,11 @@
<p class="card-text">{{ .Description }}</p>
{{ else }}
<p class="card-text">{{ .Content }}</p>
{{ if .Page.Params.Thumbnail }}
<a href="{{ .Params.Thumbnail }}">
<img class="card-img" src="{{ .Params.Thumbnail }}">
</a>
{{ end }}
{{ end }}
{{ if .Page.Params.Thumbnail }}
<a href="{{ .Params.Thumbnail }}">
<img class="card-img" src="{{ .Params.Thumbnail }}">
</a>
{{ end }}
</div>
<div class="card-footer text-muted postcard">

View File

@ -1,9 +1,13 @@
{{ define "main" }}
{{ partial "head.html" }}
{{ partial "minimal-navbar.html" }}
<h1>{{ .Title }}</h1>
{{ if .Params.Article }}
{{ if .Params.Description }}
<h5>{{ .Params.Description }}</h5>
{{ end }}
{{ if .Params.Thumbnail }}
<a href="{{ .Params.Thumbnail }}">
<img class="card-img" src="{{ .Params.Thumbnail }}">
</a>
{{ end }}
<div class="container">{{ .Content }}</div>
{{ end }}