fix: broken mermaid rendering (#141)

This commit is contained in:
Robert Kaussow 2022-01-08 13:45:19 +01:00 committed by GitHub
parent f176a0cf4f
commit 8ba04bfb36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 10 deletions

View File

@ -64,15 +64,16 @@
class="gblog-button__link"
href="{{ .page.RelPermalink }}"
title="All posts tagged with '{{ .name }}'"
>{{ .name }}</a
>
{{ .name }}
</a>
</span>
{{ end }}
{{ define "post-author" }}
<span class="gblog-post__tag gblog-button">
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author"
>{{ .name }}</a
>
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author">
{{ .name }}
</a>
</span>
{{ end }}

View File

@ -12,9 +12,9 @@
<div class="gblog-paging__state">Page {{ $pag.PageNumber }} of {{ $pag.TotalPages }}</div>
<div class="gblog-paging__item gblog-paging__item--next">
{{ if $pag.HasNext }}
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Next.URL }}"
>NEXT<i class="gblog-icon">gblog_keyboard_arrow_right</i></a
>
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Next.URL }}">
NEXT<i class="gblog-icon">gblog_keyboard_arrow_right</i>
</a>
{{ end }}
</div>
</nav>

View File

@ -52,8 +52,9 @@
<a
class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }}is-active{{ end }}"
href="{{ .RelPermalink }}"
>{{ .Title }}</a
>
{{ .Title }}
</a>
</li>
{{ end }}
{{ end }}

View File

@ -14,7 +14,11 @@
{{ end }}
<span class="gblog-button gblog-button--{{ $size }}{{ with .Get "class" }}{{ . }}{{ end }}">
<span
class="gblog-button gblog-button--{{ $size }}{{ with .Get "class" }}
{{ printf " %s" . }}
{{ end }}"
>
<a {{ with $ref }}href="{{ . }}"{{ end }} class="gblog-button__link">
{{ $.Inner }}
</a>