renamed discreteCards to paperCards, discreteTags to buttonTags; got rid of discrete class in favor of pure hugo conditional styling
This commit is contained in:
parent
74132d5083
commit
c896fcb147
8 changed files with 25 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{{ define "main" }}
|
||||
{{- partial "inject/content-before.html" . -}}
|
||||
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }} single">
|
||||
<article class="card single">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if (.Params.showDate | default true) }}
|
||||
<p class="date">
|
||||
|
|
@ -20,14 +20,14 @@
|
|||
<div>{{ .Content }}</div>
|
||||
</article>
|
||||
{{ if .Params.tags }}
|
||||
{{ if not .Site.Params.discreteCards }}<hr />{{ end }}
|
||||
{{ if not .Site.Params.paperCards }}<hr />{{ end }}
|
||||
<p class="articleTagsContainer">
|
||||
<span> </span>
|
||||
<strong>{{ i18n "tagsColumn" }}</strong>
|
||||
{{ range sort .Params.tags }}
|
||||
<a
|
||||
{{ if site.Params.discreteTags | default false }}
|
||||
class="discreteTag"
|
||||
{{ if site.Params.buttonTags | default false }}
|
||||
class="buttonTag"
|
||||
{{ end }}
|
||||
href="/tags/{{ . | urlize }}">#{{ . }}</a>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue