Skip to content

Commit 1908c8e

Browse files
committed
update bookstack
1 parent c33186e commit 1908c8e

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

assets/scss/bookmenu.scss

+6-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ aside .book-nav ul {
7373
width: $menu-width;
7474
padding: $padding-16;
7575
background: white;
76-
margin-top: 100px;
76+
// margin-top: 100px;
7777

7878
@include fixed;
7979
}
@@ -258,8 +258,10 @@ body[dir="rtl"] .book-menu {
258258
}
259259

260260
img.book-icon {
261-
height: 1.5em;
262-
width: 1.5em;
261+
height: 3em;
262+
width: 3em;
263+
margin-left: 330px;
264+
margin-top: 10px;
263265
}
264266
}
265267

@@ -306,6 +308,7 @@ $endLevel: 6;
306308
// Future
307309
.book-menu .book-nav {
308310
scrollbar-color: transparent var(--gray-500);
311+
margin-top: 50px;
309312
}
310313

311314
.book-toc .book-nav ul {

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)