summaryrefslogtreecommitdiff
path: root/modules/blog/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 22:15:39 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 22:21:50 +0100
commitc8e9b56cf3b7664e980f312b75c6bfac9b276703 (patch)
tree6a1a2dc13e88fe0b661b550d685e578f03a19051 /modules/blog/templates
parentAllow lists in networkd config. (diff)
downloadwebdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.gz
webdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.xz
stuff
Diffstat (limited to 'modules/blog/templates')
-rw-r--r--modules/blog/templates/settings.php.epp13
-rw-r--r--modules/blog/templates/special-files.ini.epp16
2 files changed, 29 insertions, 0 deletions
diff --git a/modules/blog/templates/settings.php.epp b/modules/blog/templates/settings.php.epp
new file mode 100644
index 0000000..8f2e62d
--- /dev/null
+++ b/modules/blog/templates/settings.php.epp
@@ -0,0 +1,13 @@
+<%- | String $author,
+ String $title,
+ String $subtitle,
+ Boolean $has_comments = false,
+-%>
+<?php
+# FILE MANAGED BY PUPPET
+$author = "<%= $author %>";
+$blog_title = "<%= $title %>";
+$blog_subtitle = "<%= $subtitle %>";
+$http_host = $_SERVER["HTTP_HOST"];
+$urlbase = "http://$http_host/hugo";
+$has_comments = <%= if $has_comments { 'true' } else { 'false' } %>;
diff --git a/modules/blog/templates/special-files.ini.epp b/modules/blog/templates/special-files.ini.epp
new file mode 100644
index 0000000..66b779a
--- /dev/null
+++ b/modules/blog/templates/special-files.ini.epp
@@ -0,0 +1,16 @@
+<%- | Array[Tuple[String,String]] $foot_files,
+| -%>
+; FILE MANAGED BY PUPPET
+;
+; Which files on the website that are "special"
+; This basicly means that they shouldnt have comments
+[footnote]
+<%- for $foot_files.each |$item| { -%>
+files[] = <%= $item[0] %>
+title[] = <%= $item[1] %>
+<%- } -%>
+
+[other]
+files[] = list
+files[] = entry-not-found.md
+