summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rwxr-xr-xviews/layouts/main.handlebars23
-rw-r--r--views/static.handlebars10
2 files changed, 29 insertions, 4 deletions
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars
index daa5a37..fb493a4 100755
--- a/views/layouts/main.handlebars
+++ b/views/layouts/main.handlebars
@@ -68,12 +68,27 @@
{{{body}}}
</div>
<div id="footerContainer">
- <small class="text-muted">
- Version 1.3.0 &middot; <a href="https://github.com/lowercasename/gathio">GitHub</a> &middot; Made with <i class="far fa-heart"></i> by <a href="https://raphaelkabo.com">Raphael</a><br />
- </small>
+ {{#if showInstanceInformation}}
+ <p class="small text-muted">
+ <strong>{{domain}}</strong>
+ {{#each staticPages}}
+ {{#if @first}}
+ &middot;
+ {{/if}}
+
+ <a href="{{this.path}}">{{this.title}}</a>
+
+ {{#unless @last}}
+ &middot;
+ {{/unless}}
+ {{/each}}
+ </p>
+ {{/if}}
+ <p class="small text-muted">
+ <strong>Gathio</strong> version {{version}} &middot; <a href="https://github.com/lowercasename/gathio">GitHub</a> &middot; Made with <i class="far fa-heart"></i> by <a href="https://raphaelkabo.com">Raphael</a> and <a href="https://github.com/lowercasename/gathio/graphs/contributors">contributors</a>
+ </p>
</div>
</div>
</div>
</div>
- </body>
</html>
diff --git a/views/static.handlebars b/views/static.handlebars
new file mode 100644
index 0000000..d28d8f2
--- /dev/null
+++ b/views/static.handlebars
@@ -0,0 +1,10 @@
+
+<article class="static-page">
+ <header>
+ <h1>{{title}}</h1>
+ </header>
+ <main>
+ {{{content}}}
+ </main>
+</article>
+