Remove content div wrappers. Use grid template columns for main to support stretch and breakout classes.

This commit is contained in:
Fredrik Jonsson 2023-11-10 14:52:09 +01:00
commit 4bb4c9dec1
3 changed files with 169 additions and 172 deletions

View file

@ -3,11 +3,7 @@
<h1 class="title">Micro posts</h1>
<p class="micro__follow"><a href="https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}">{{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }}</a></p>
{{ with .Content -}}
<div class="content">
{{ . }}
</div>
{{ end -}}
{{ .Content }}
{{ $paginator := .Paginate (.Pages) -}}
{{ range $paginator.Pages -}}

View file

@ -3,13 +3,10 @@
<article class="single-view{{ with .Section }} single-view--{{ . | urlize }}{{ end }}">
<header>
<h1 class="hidden">{{ .Title }}</h1>
<p>
{{ partial "author-date" . }}
</p>
<p>{{ partial "author-date" . }}</p>
</header>
<div class="content">
{{ .Content }}
</div>
</article>
</main>
{{ end -}}

View file

@ -1,11 +1,8 @@
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
<header>
<h2 class="hidden">{{ .Title }}</h2>
<p><a href="{{ .RelPermalink }}">
{{ partial "author-date" . }}
</a></p>
<p><a href="{{ .RelPermalink }}">{{ partial "author-date" . }}</a></p>
</header>
<div class="content">
{{ .Content }}
</div>
</article>