added discrete card style mode option

This commit is contained in:
Gabriele Musco 2021-01-05 09:38:10 +01:00
parent 6ad7b2ee75
commit a91a0af75a
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
6 changed files with 26 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" }}
{{- partial "inject/content-before.html" . -}}
<article>
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }}">
<h1>{{ .Title }}</h1>
<p class="date">
<span title="Date"></span>

View file

@ -6,7 +6,7 @@
{{/* pagination */}}
{{ range (.Paginate $postsList).Pages }}
<div class="card">
<div class="card {{ if .Site.Params.discreteCards }}discrete{{ end }}">
<h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>