diff options
Diffstat (limited to 'modules/blog/templates')
-rw-r--r-- | modules/blog/templates/settings.php.epp | 13 | ||||
-rw-r--r-- | modules/blog/templates/special-files.ini.epp | 16 |
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 + |