jlelse
/
Indieroad
Archived
1
Fork 0

Improve a few things

This commit is contained in:
Jan-Lukas Else 2020-04-20 19:47:36 +02:00
parent ba3d0e6b4a
commit 87a89af128
5 changed files with 18 additions and 21 deletions

View File

@ -1,7 +0,0 @@
---
title: "Title"
date: {{ .Date }}
lastmod:
tags:
- Tag
---

View File

@ -1,6 +0,0 @@
---
title: "Title"
date: {{ .Date }}
lastmod:
externalURL: "https://link.tld/"
---

View File

@ -1,14 +1,14 @@
{{ if .Param "post_navigation" }}
{{ if or (.PrevInSection) (.NextInSection) }}
<nav class="post-nav">
{{ if .PrevInSection }}
{{ with .PrevInSection }}
<div class="item item--prev">
<a class="link" href="{{.PrevInSection.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span>{{ with .PrevInSection.Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
<a class="link" href="{{.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
</div>
{{ end }}
{{ if .NextInSection }}
{{ with .NextInSection }}
<div class="item item--next">
<a class="link" href="{{.NextInSection.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span>{{ with .NextInSection.Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
<a class="link" href="{{.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
</div>
{{ end }}
</nav>

View File

@ -1,10 +1,15 @@
{{ define "main" }}
<main class="main list h-feed">
{{- with .Title }}
<header class="main-header">
{{ with .Title }}
<h1 class="main-title">{{ . }}</h1>
{{ end }}
{{ if not .Params.nometa }}
{{ with partialCached "list_meta" . .RelPermalink }}
<div class="post-meta">{{ . }}</div>
{{ end }}
{{ end }}
</header>
{{- end }}
{{- with .Content }}
<div class="main-content">
{{ . }}

View File

@ -1,10 +1,15 @@
{{ define "main" }}
<main class="main list">
{{- with .Title }}
<header class="main-header">
{{ with .Title }}
<h1 class="main-title">{{ . }}</h1>
{{ end }}
{{ if not .Params.nometa }}
{{ with partialCached "list_meta" . .RelPermalink }}
<div class="post-meta">{{ . }}</div>
{{ end }}
{{ end }}
</header>
{{- end }}
<div class="tags">
<ul class="tags-list">
{{ range (.Paginate ( .Pages.ByTitle ) 100).Pages }}