Add tag-summary override
This commit is contained in:
parent
e0dc26dc49
commit
1aa8fd00b4
@ -14,7 +14,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
{{ range $value.Pages }}
|
{{ range $value.Pages }}
|
||||||
{{ partial "summary.html" . }}
|
{{ partial "tag-summary.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
|
17
blog/layouts/partials/tag-summary.html
Normal file
17
blog/layouts/partials/tag-summary.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{{/*
|
||||||
|
I don't want to _fully_ override the "summary.html" partial that exists in the theme, in case it's used anywhere else -
|
||||||
|
but this different summary allows me to make the summaries of articles in the tags page a bit more compact.
|
||||||
|
*/}}
|
||||||
|
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
|
||||||
|
<div class="bg-white mb3 pa4 gray overflow-hidden">
|
||||||
|
<span class="f6 db">{{ humanize .Section }}</span>
|
||||||
|
<h1 class="f3 near-black">
|
||||||
|
<a href="{{ .RelPermalink }}" class="link black dim">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
<div class="nested-links f5 lh-copy nested-copy-line-height">
|
||||||
|
{{ .Summary }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user