mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Post article parametrization added:
post_article_class post_title_class post_main_class
This commit is contained in:
parent
9be3215a9e
commit
e0e03d1280
@ -4,7 +4,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="flex-l flex-wrap justify-between mw8 center ph3 ph0-l">
|
<article class="{{ $.Param "post_article_class" | default "flex-l flex-wrap justify-between mw8 center ph3 ph0-l"}}">
|
||||||
|
|
||||||
<header class="mt4 w-100">
|
<header class="mt4 w-100">
|
||||||
<p class="f6 b helvetica tracked">
|
<p class="f6 b helvetica tracked">
|
||||||
@ -14,7 +14,7 @@
|
|||||||
*/}}
|
*/}}
|
||||||
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
|
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
|
||||||
</p>
|
</p>
|
||||||
<h1 class="f1 athelas mb1">
|
<h1 class="{{ $.Param "post_title_class" | default "f1 athelas mb1" }}">
|
||||||
{{- .Title -}}
|
{{- .Title -}}
|
||||||
</h1>
|
</h1>
|
||||||
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</time>
|
</time>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
|
<main class="{{ $.Param "post_main_class" | default "nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l" }}">
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
{{- partial "tags.html" . -}}
|
{{- partial "tags.html" . -}}
|
||||||
<div class="mt6">
|
<div class="mt6">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user