[FEATURE] Blog: make the blog posts looks much nicer and add a header image
This commit is contained in:
parent
abf85cec0f
commit
2710137012
6 changed files with 69 additions and 16 deletions
|
@ -5,7 +5,7 @@
|
|||
{{- $showAuthors := not (.reduced | default false) -}}
|
||||
|
||||
{{ with $page }}
|
||||
<header>
|
||||
<header class="blog-header">
|
||||
{{- if $headingLink }}<a href="{{ .RelPermalink }}">{{ end }}
|
||||
<h{{ $level }}>{{ .Title }}</h{{ $level }}>
|
||||
{{- if $headingLink }}</a>{{ end }}
|
||||
|
@ -38,5 +38,6 @@
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ if isset .Params "header" }} <img class="container" src="{{ .Params.header.image }}" alt="{{ .Params.header.caption }}" /> {{ end }}
|
||||
</header>
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue