More useful article tag classes.
This commit is contained in:
parent
2528b2fac2
commit
0818a05fc5
8 changed files with 8 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}full-view">
|
<article class="full-view{{ with .Section }} full-view--{{ . | urlize }}{{ end }}">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="main layout__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>
|
<header>
|
||||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}list-view">
|
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
<h2 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="main layout__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 }}">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="main layout__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>
|
<header>
|
||||||
<h1 class="hidden">{{ .Title }}</h1>
|
<h1 class="hidden">{{ .Title }}</h1>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}list-view">
|
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="hidden">{{ .Title }}</h2>
|
<h2 class="hidden">{{ .Title }}</h2>
|
||||||
<p><a href="{{ .RelPermalink }}">
|
<p><a href="{{ .RelPermalink }}">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}full-view">
|
<article class="full-view{{ with .Section }} full-view--{{ . | urlize }}{{ end }}">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="main layout__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>
|
<header>
|
||||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue