1
Fork 0
theorangeone.net-legacy/layouts/partials/content.html

26 lines
713 B
HTML
Raw Normal View History

2017-10-27 22:56:44 +01:00
{{ if .Params.image }}
2017-11-12 12:49:50 +00:00
<div class="mb-3 image header-image" data-image="{{ .Params.image }}"></div>
2017-10-27 22:56:44 +01:00
{{ end }}
<h1 class="display-5">{{ .Title }}</h1>
2017-11-10 23:08:50 +00:00
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
2017-10-27 22:56:44 +01:00
<p>
{{ if .Params.date }}
2017-11-09 21:31:18 +00:00
<span class="pr-4" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>
2017-10-27 22:56:44 +01:00
{{ end }}
{{ range .Params.tags }}
2017-11-12 12:49:50 +00:00
<a href="/tags/{{ urlize . }}" class="badge badge-dark tag mr-2">
2017-11-09 21:31:18 +00:00
<i class="fa fa-tag"></i> {{ . }}
</a>
2017-10-27 22:56:44 +01:00
{{ end }}
</p>
<hr />
<div class="content mt-3">
2017-11-12 14:42:21 +00:00
{{ if .TableOfContents }}
2017-12-22 16:32:01 +00:00
<div class="float-lg-right ml-lg-3 mb-2 bg-light p-3">
2017-11-12 14:42:21 +00:00
{{ .TableOfContents }}
</div>
{{ end }}
2017-10-27 22:56:44 +01:00
{{ .Content }}
</div>