]> BookStack Code Mirror - website/commitdiff
Migrated hacks to module instead of symlink
authorDan Brown <redacted>
Sat, 17 May 2025 21:50:30 +0000 (22:50 +0100)
committerDan Brown <redacted>
Sat, 17 May 2025 21:50:30 +0000 (22:50 +0100)
Also other recent hugo compatibility changes.
Tested on hugo v0.142.0

config.toml
content/docs/admin/system-cli.md
content/hacks [deleted symlink]
themes/bookstack/layouts/index.html
themes/bookstack/layouts/partials/list-hack.html

index 2b8f26cdfc89aa47aff1d1a981021f4edc0e2d04..a982727e7511209eb992d979590db61d9b9f22ad 100644 (file)
@@ -3,10 +3,12 @@ title = "BookStack"
 baseurl = "https://www.bookstackapp.com/"
 theme="bookstack"
 enableGitInfo=true
-paginate=50
 summarylength=20
 assetDir = "static"
 
+[pagination]
+  pagerSize = 50
+
 [markup]
   defaultMarkdownHandler = "goldmark"
   [markup.goldmark]
@@ -41,4 +43,15 @@ assetDir = "static"
 
 [privacy]
   [privacy.youtube]
-    privacyEnhanced = true
\ No newline at end of file
+    privacyEnhanced = true
+
+# Include the hacks content into
+[module]
+  [[module.mounts]]
+    disableWatch = false
+    source = 'content'
+    target = 'content'
+  [[module.mounts]]
+    disableWatch = false
+    source = 'hacks/content'
+    target = 'content/hacks'
\ No newline at end of file
index 39a11baee762a55c3d199027ca6c01c691dbf593..c243d7106986a84c9ed88622b74c38b2712578ab 100644 (file)
@@ -1,6 +1,6 @@
 +++
 title = "BookStack System CLI"
-date = "2023-06-32"
+date = "2023-06-23"
 type = "admin-doc"
 +++
 
diff --git a/content/hacks b/content/hacks
deleted file mode 120000 (symlink)
index 15d0228..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../hacks/content
\ No newline at end of file
index 3e9754cd0d9b30d71805e686f52b0b2ca097a2ba..a75f5ce452cfd8d04feb04ea797e70350ad5041e 100644 (file)
@@ -14,7 +14,7 @@
                                <p class="nomargin">
                                        <br>
                                        Latest Blog Post: <br>
-                                       {{ range first 1 ( where .Site.Pages "Section" "blog") }}
+                                       {{ range first 1 ( where .Site.RegularPages "Section" "blog") }}
                                                        <a href="{{.Permalink}}">{{ .Title }}</a>
                                        {{ end }}
                                </p>
             <h2>Latest From The Blog</h2>
 
                        <div class="blogpost-cards">
-                               {{ range first 4 ( where .Site.Pages "Section" "blog") }}
+                               {{ range first 4 ( where .Site.RegularPages "Section" "blog") }}
                                        <div class="blogpost-card">
                                                <a href="{{.Permalink}}">
                                                        {{ if .Params.image }}
index dacebae48a74693e0397f0b9de1d2b62eb7392e4..d52775695597bea937de9ddd50d7237348087739 100644 (file)
@@ -4,7 +4,7 @@
         <h2 class="hack-title">{{ .Title }}</h2>
     </div>
     <section class="hack-excerpt">
-        <p>{{ .Summary }} <span class="read-more">&raquo;</span></p>
+        <p>{{ .Summary | plainify }} <span class="read-more">&raquo;</span></p>
     </section>
     <div class="hack-meta">
         Last Tested On {{ .Params.tested }}