Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xnzone/hugo-theme-bookstack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.6
Choose a base ref
...
head repository: xnzone/hugo-theme-bookstack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 15, 2025

  1. update bookstack

    xnzone committed Jan 15, 2025
    Copy the full SHA
    3e311fe View commit details

Commits on Jan 17, 2025

  1. update armasm

    xnzone committed Jan 17, 2025
    Copy the full SHA
    81bd78e View commit details
Showing with 6 additions and 4 deletions.
  1. +1 −1 layouts/_default/index.json
  2. +1 −1 layouts/_default/list.html
  3. +1 −1 layouts/_default/summary.html
  4. +3 −1 layouts/partials/head.html
2 changes: 1 addition & 1 deletion layouts/_default/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $.Scratch.Add "index" slice -}}
{{- range site.RegularPages -}}
{{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
{{- $.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)) -}}
{{- $.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)) -}}
{{- end }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ <h2 class="tags__title">{{ .Title }}</h2>
<div class="resultItem__media" style="background-image: url({{ (print .Site.BaseURL .Params.image) | absURL }});"></div>
<div class="resultItem__body">
<h3 class="resultItem__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<div class="resultItem__footer">{{ .Date.Format "2006/01/02" }}</div>
<div class="resultItem__footer">{{ .Date.Format "2006-01-02" }}</div>
</div>
</div>
{{ end }}
2 changes: 1 addition & 1 deletion layouts/_default/summary.html
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ <h3 class="article__title">{{ .Title }}</h3>
</div>
</a>
<footer class="article__footer">
<time datetime="{{ .Date }}">{{ .Date.Format "2006/01/02" }}</time>
<time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
</footer>
</article>
{{ end }}
4 changes: 3 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -10,7 +10,9 @@
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/go.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/armasm.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

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