Adds anchors to all headings (#439)

This commit is contained in:
Codruț Constantin Gușoi
2021-01-25 20:13:58 +00:00
committed by GitHub
parent 2ae5eec336
commit 8384e09033
12 changed files with 74 additions and 13 deletions

View File

@@ -3,7 +3,11 @@
{{ end }}
{{ define "content" }}
<section class="container list">
<h1 class="title"> {{ title (i18n (lower .Title)) | default .Title }} </h1>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ title (i18n (lower .Title)) | default .Title }}
</a>
</h1>
{{ .Content }}
<ul>
{{- range .Paginator.Pages -}}

View File

@@ -6,7 +6,11 @@
<article>
<header>
<div class="post-title">
<h1 class="title">{{ .Title }}</h1>
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ .Title }}
</a>
</h1>
</div>
<div class="post-meta">
<div class="date">