Improve a few things
This commit is contained in:
parent
ba3d0e6b4a
commit
87a89af128
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
title: "Title"
|
||||
date: {{ .Date }}
|
||||
lastmod:
|
||||
tags:
|
||||
- Tag
|
||||
---
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: "Title"
|
||||
date: {{ .Date }}
|
||||
lastmod:
|
||||
externalURL: "https://link.tld/"
|
||||
---
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
{{ . }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Reference in New Issue