Skip to content

Commit 3e311fe

Browse files
committed
update bookstack
1 parent c33186e commit 3e311fe

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

layouts/_default/index.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- $.Scratch.Add "index" slice -}}
22
{{- range site.RegularPages -}}
33
{{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
4-
{{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006/01/02") "image" ((print .Site.BaseURL .Params.image) | absURL)) -}}
4+
{{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary "date" (.Date.Format "2006-01-02") "image" ((print .Site.BaseURL .Params.image) | absURL)) -}}
55
{{- end }}
66
{{- end -}}
77
{{- $.Scratch.Get "index" | jsonify -}}

layouts/_default/list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2 class="tags__title">{{ .Title }}</h2>
2727
<div class="resultItem__media" style="background-image: url({{ (print .Site.BaseURL .Params.image) | absURL }});"></div>
2828
<div class="resultItem__body">
2929
<h3 class="resultItem__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
30-
<div class="resultItem__footer">{{ .Date.Format "2006/01/02" }}</div>
30+
<div class="resultItem__footer">{{ .Date.Format "2006-01-02" }}</div>
3131
</div>
3232
</div>
3333
{{ end }}

layouts/_default/summary.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3 class="article__title">{{ .Title }}</h3>
1212
</div>
1313
</a>
1414
<footer class="article__footer">
15-
<time datetime="{{ .Date }}">{{ .Date.Format "2006/01/02" }}</time>
15+
<time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
1616
</footer>
1717
</article>
1818
{{ end }}

layouts/partials/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai.min.css">
1313
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
14+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/languages/go.min.js"></script>
1415
<script>hljs.initHighlightingOnLoad();</script>
1516

1617
{{ $sass := resources.Get "scss/style.scss" }}

0 commit comments

Comments
 (0)