forked from scientific-python/scientific-python-hugo-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.html
More file actions
25 lines (25 loc) · 819 Bytes
/
post.html
File metadata and controls
25 lines (25 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
<section class="post content-padding">
<div class="content-container">
{{ partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{ if .Params.Subtitle }}
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
{{ end }}
<div class="post-meta">{{ partial "posts/meta.html" . }}</div>
<div class="post-content">
{{ with $featuredImage }}
{{ if .Params.showOnTop }}
<div class="post-featuredImage">
<img src="{{ .RelPermalink }}" {{ with .Params.description }}alt="{{ . }}"{{ end }}/>
</div>
{{ end }}
{{ end }}
<div class="content-wrapper">
{{ .Content }}
</div>
{{ partial "posts/comments.html" .}}
</div>
</div>
{{ partial "shortcuts.html" . }}
</section>