#39, Finish columns shortcode, clean scss
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{ if or .GitInfo .Site.Params.BookEditPath }}
|
||||
<div class="align-center book-git-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}">
|
||||
<div class="book-footer {{ if not .GitInfo }}justify-end{{ else }}justify-between{{ end }}">
|
||||
{{ with .GitInfo }}
|
||||
<div>
|
||||
{{ $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) }}
|
||||
|
||||
@@ -37,4 +37,4 @@
|
||||
menu.scrollTop = localStorage.getItem('menu.scrollTop')
|
||||
})()
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{{ if .Inner }}
|
||||
<div class="flex">
|
||||
<div class="flex-even">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
</div> <!-- close current column -->
|
||||
<div class="flex-even"> <!-- open new column -->
|
||||
{{ end }}
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="book-columns flex">
|
||||
{{ range split .Inner "<--->" }}
|
||||
<div class="flex-even">
|
||||
{{ . | markdownify }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<input type="checkbox" style="display: none" />
|
||||
<div class="book-expand-content markdown-inner">
|
||||
{{- .Inner | markdownify -}}
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||
<!-- Include mermaid only first time -->
|
||||
<script src="{{ "mermaid.min.js" | absURL }}"></script>
|
||||
{{ .Page.Scratch.Set "mermaid" true }}
|
||||
{{ end }}
|
||||
|
||||
<p class="mermaid flex align-center">
|
||||
{{ .Inner }}
|
||||
</p>
|
||||
@@ -8,5 +8,5 @@
|
||||
|
||||
{{ .Parent.Scratch.Add $group (dict "Name" $name "Content" .Inner) }}
|
||||
{{ else }}
|
||||
{{- errorf "%q: tab shortcode must be inside tabs shortcode" .Page.Path -}}
|
||||
{{ errorf "%q: 'tab' shortcode must be inside 'tabs' shortcode" .Page.Path }}
|
||||
{{ end}}
|
||||
|
||||
Reference in New Issue
Block a user