More useful article tag classes.

This commit is contained in:
Fredrik Jonsson 2022-02-17 15:13:59 +01:00
commit 0818a05fc5
2 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" -}}
<main class="main layout__main">
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
<article class="single-view{{ with .Section }} single-view--{{ . | urlize }}{{ end }}">
<header>
<h1 class="hidden">{{ .Title }}</h1>
<p>

View file

@ -1,4 +1,4 @@
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}list-view">
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
<header>
<h2 class="hidden">{{ .Title }}</h2>
<p><a href="{{ .RelPermalink }}">