diff --git a/static/mermaid.css b/static/mermaid.css new file mode 100644 index 0000000..65fcb28 --- /dev/null +++ b/static/mermaid.css @@ -0,0 +1,26 @@ +.mermaid { + + .nodeLabel { + color: #A9A9B3 !important; + } + + .edgePaths path { + stroke: #A9A9B3 !important; + } + + .marker path { + stroke: #cad3f5; + fill: #A9A9B3; + } + + .cluster rect { + fill: #1B1C1D !important; + stroke: #1F202E !important; + } + + .node rect { + fill: #131415 !important; + stroke: #1F202E !important; + } + +} \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/_default/_markup/render-codeblock-mermaid.html b/themes/hello-friend-ng/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..abb31f8 --- /dev/null +++ b/themes/hello-friend-ng/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+    {{- .Inner | safeHTML }}
+  
+{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/_default/baseof.html b/themes/hello-friend-ng/layouts/_default/baseof.html index 2c80de9..4cf9ca4 100644 --- a/themes/hello-friend-ng/layouts/_default/baseof.html +++ b/themes/hello-friend-ng/layouts/_default/baseof.html @@ -1,25 +1,29 @@ - - {{ partial "head.html" . }} - - {{ block "body" . }} - + + {{ partial "head.html" . }} + + + +{{ block "body" . }} + + {{ end }} - -
- {{ partial "header.html" . }} -
- {{ block "main" . }}{{ end }} -
+
+ {{ partial "header.html" . }} - {{ block "footer" . }} - {{ partial "footer.html" . }} - {{ end }} +
+ {{ block "main" . }}{{ end }}
- {{ partial "javascript.html" . }} - - + {{ block "footer" . }} + {{ partial "footer.html" . }} + {{ end }} +
+ + {{ partial "javascript.html" . }} + + + \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/posts/single.html b/themes/hello-friend-ng/layouts/posts/single.html index dfb95a3..96b2081 100644 --- a/themes/hello-friend-ng/layouts/posts/single.html +++ b/themes/hello-friend-ng/layouts/posts/single.html @@ -1,139 +1,156 @@ {{ define "main" }} -
+
- - {{ if .Params.Cover }} -
- {{ .Title }} - - {{ if .Params.CoverCaption }} -
{{ .Params.CoverCaption | markdownify }}
- {{ end }} -
+
+

+ {{ .Title | markdownify }} +

+ + {{ with .Params.Description }} +
{{ . }}
+ {{ end }} + + {{ if .Params.Cover }} +
+ {{ .Title }} + + {{ if .Params.CoverCaption }} +
{{ .Params.CoverCaption | markdownify }}
{{ end }} +
+ {{ end }} - {{- if .Params.toc }} -
- -
- {{- end }} - - {{ if .Params.Audio }} -
- -
- {{ end }} - -
- {{ .Content }} -
-
- + {{- if .Params.toc }} +
+
- - - - {{- if .Site.Params.EnableSharingButtons }} -
- {{- end }} - {{ partial "pagination-single.html" . }} + {{ if .Params.Audio }} +
+ +
+ {{ end }} - {{ if .Site.DisqusShortname }} - {{ if not (eq .Params.Comments "false") }} -
- {{ template "_internal/disqus.html" . }} -
+
+ {{ .Content }} + {{ if .Page.Store.Get "hasMermaid" }} + {{ end }} - {{ end }} - {{ if .Site.Params.Commento.Url }} - -
- {{ end }} +
+ -
-{{ end }} +
+ + + + {{- if .Site.Params.EnableSharingButtons }} +
+ + {{- end }} + + {{ partial "pagination-single.html" . }} + + {{ if .Site.DisqusShortname }} + {{ if not (eq .Params.Comments "false") }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} + {{ end }} + + {{ if .Site.Params.Commento.Url }} + +
+ {{ end }} + +
+{{ end }} \ No newline at end of file