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" class="gblog-button__link"
href="{{ .page.RelPermalink }}" href="{{ .page.RelPermalink }}"
title="All posts tagged with '{{ .name }}'" title="All posts tagged with '{{ .name }}'"
>{{ .name }}</a
> >
{{ .name }}
</a>
</span> </span>
{{ end }} {{ end }}
{{ define "post-author" }} {{ define "post-author" }}
<span class="gblog-post__tag gblog-button"> <span class="gblog-post__tag gblog-button">
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author" <a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author">
>{{ .name }}</a {{ .name }}
> </a>
</span> </span>
{{ end }} {{ end }}

View File

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

View File

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

View File

@ -14,7 +14,11 @@
{{ end }} {{ 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"> <a {{ with $ref }}href="{{ . }}"{{ end }} class="gblog-button__link">
{{ $.Inner }} {{ $.Inner }}
</a> </a>

View File

@ -4,6 +4,6 @@
{{ end }} {{ end }}
<pre class="gblog-mermaid mermaid{{ with .Get "class" }}{{ . }}{{ end }}"> <pre class="gblog-mermaid mermaid {{ with .Get "class" }}{{ . }}{{ end }}">
{{- .Inner -}} {{- .Inner -}}
</pre> </pre>