mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 22:10:39 +00:00
fix: broken mermaid rendering (#141)
This commit is contained in:
parent
f176a0cf4f
commit
8ba04bfb36
@ -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 }}
|
||||||
|
@ -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>
|
||||||
|
@ -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 }}
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user