hugo-stanley/layouts/_default/single.html

24 lines
961 B
HTML
Raw Permalink Normal View History

2020-03-03 18:56:59 +01:00
{{- define "main" -}}
{{- $justify := false -}}
{{- if eq .Params.justify true -}} {{- $justify = true -}} {{- end -}}
<div id="white">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
{{- partial "article-header.html" . -}}
<h4>{{ .Title }}</h4>
{{- with .Params.cover -}}<p><img class="img-responsive" src="{{- . | safeURL -}}" alt="{{ .Title }}"></p>{{- end -}}
<div {{- if $justify -}}style="text-align: justify;" {{- end -}}>
{{- .Content -}}
</div>
{{- partial "article-labels.html" . -}}
{{- partial "article-license.html" . -}}
{{- partial "article-author.html" . -}}
</div>
{{- partial "article-bottom-navigation.html" . -}}
{{- partial "article-comments.html" . -}}
</div>
</div>
</div>
{{- end -}}