1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-18 22:15:32 -04:00

stop using <section> improperly

This commit is contained in:
2020-07-14 08:41:11 -04:00
parent cb7219f790
commit 12b056f70b
16 changed files with 30 additions and 28 deletions

View File

@@ -6,7 +6,7 @@
<head>
{{ partial "head/_head" . }}
</head>
<body class="{{ .Page.Kind }} {{ .Site.Params.Theme.defaultTheme }}">
<body class="{{ .Site.Params.Theme.defaultTheme }}">
{{ partialCached "page/header" . }}
<main>
{{ block "main" . }}{{ end }}

View File

@@ -1,9 +1,9 @@
{{ define "main" }}
<section class="page" id="etc">
<div class="layout" id="layout--etc">
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div id="content">
{{ .Content }}
</div>
</section>
</div>
{{ end }}

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<section class="page" id="list">
<div class="layout" id="layout--list">
{{- with .Pages }}
{{- range .GroupByDate "2006" }}
<section class="year">
@@ -17,5 +17,5 @@
</section>
{{- end }}
{{- end }}
</section>
</div>
{{ end }}

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<section class="page" id="single">
<div class="layout" id="layout--single">
<article>
<div id="meta">
<a class="no-underline" href="{{ .Permalink }}" title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}">{{ .Date.Format "January 2, 2006" }}</a>{{ with .Scratch.Get "sourceURL" }}<span class="dash"></span><a class="no-underline" href="{{ . | safeURL }}" title="Edit this post on GitHub" target="_blank" rel="noopener">Improve This Post</a>{{ end }}
@@ -11,5 +11,5 @@
{{ .Content }}
</div>
</article>
</section>
</div>
{{ end }}

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<section class="page" id="video">
<div class="layout" id="layout--video">
<h1><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<video
@@ -15,5 +15,5 @@
</video>
{{ .Content }}
</section>
</div>
{{ end }}

View File

@@ -14,7 +14,7 @@
{{- with .Scratch.Get "authorImage" }}
<logo>{{ .Permalink }}</logo>
{{- end }}
<updated>{{ .Date.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
<updated>{{ .Site.LastChange.Format "2006-01-02T15:04:05Z" | safeHTML }}</updated>
{{- with .OutputFormats.Get "ATOM" }}
{{ printf `<link rel="self" type="%s" href="%s" />` .MediaType.Type .Permalink | safeHTML }}
{{- end }}

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<section class="page" id="home">
<div class="layout" id="layout--home">
{{ .Content }}
</section>
</div>
{{ end }}

View File

@@ -8,8 +8,8 @@
<language>{{ . }}</language>{{ end }}{{ with .Site.Author.email }}
<managingEditor>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with .Site.Author.email }}
<webMaster>{{ . }}{{ with $.Site.Author.name }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}{{ with .Scratch.Get "authorImage" }}
<copyright>{{ . }}</copyright>{{ end }}
<lastBuildDate>{{ .Site.LastChange.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ with .Scratch.Get "authorImage" }}
<image>
<url>{{ .Permalink }}</url>
<title>{{ $.Site.Title }}</title>