Flattenign single page template
This commit is contained in:
parent
bd3dea8788
commit
2cd9db5b37
@ -22,11 +22,11 @@
|
|||||||
<p class="card-text">{{ .Description }}</p>
|
<p class="card-text">{{ .Description }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p class="card-text">{{ .Content }}</p>
|
<p class="card-text">{{ .Content }}</p>
|
||||||
{{ if .Page.Params.Thumbnail }}
|
{{ end }}
|
||||||
<a href="{{ .Params.Thumbnail }}">
|
{{ if .Page.Params.Thumbnail }}
|
||||||
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
<a href="{{ .Params.Thumbnail }}">
|
||||||
</a>
|
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
||||||
{{ end }}
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer text-muted postcard">
|
<div class="card-footer text-muted postcard">
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "head.html" }}
|
|
||||||
{{ partial "minimal-navbar.html" }}
|
{{ partial "minimal-navbar.html" }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ if .Params.Article }}
|
{{ if .Params.Description }}
|
||||||
<h5>{{ .Params.Description }}</h5>
|
<h5>{{ .Params.Description }}</h5>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Params.Thumbnail }}
|
||||||
|
<a href="{{ .Params.Thumbnail }}">
|
||||||
|
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
<div class="container">{{ .Content }}</div>
|
<div class="container">{{ .Content }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user