diff --git a/folder_template.html b/folder_template.html index d2f7943085b05b9eb91ba7a5c63cacacad955fd9..7fddc41ab3343d983c1de560d19ceb2b2b08fee9 100644 --- a/folder_template.html +++ b/folder_template.html @@ -10,6 +10,7 @@ <body class="folder"> <h1>Quack <span style="color: #999">${SRC_FOLDER}</span></h1> +<div class="foldersnippet">${SNIPPET_FOLDER}</div> <!-- TODO: Create decent bread crumbs --> <p>Parent folder: <a href="../index.html">${PARENT}</a></p> diff --git a/image_template.html b/image_template.html index 4a6e16c9e815d40c4d599cf2e480bfd0679ec741..8833fbc973c5a3e69b49f23337db482023e3eac6 100644 --- a/image_template.html +++ b/image_template.html @@ -19,6 +19,8 @@ ${IDPREVS} <body class="previewpage"> <h1>Quack <span style="color: #999">${IMAGE}</span></h1> +<div class="imagesnippet">${SNIPPET_IMAGE}</div> + <div id="controlpanel" class="control"> <p class="navigation">${NAVIGATION}</p> ${ALTERNATIVES} diff --git a/quack.sh b/quack.sh index 1975739ee555c409858b24fa6fc137906da45b53..f3bab386336394e0d00d125d9ff6354d6bd16b40 100755 --- a/quack.sh +++ b/quack.sh @@ -131,6 +131,12 @@ export PRESENTATION="true" export OVERLAY_BLACK=3399FF export OVERLAY_WHITE=FFFF00 +# Snippets are inserted verbatim at the top of the folder and the image pages. +# Use them for specifying things like delivery date or provider notes. +export SNIPPET_FOLDER="" +export SNIPPET_IMAGE="" + + # End default settings. User-supplied overrides will be loaded from quack.settings