diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-09 10:48:10 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-09 10:48:10 +0100 | 
| commit | 8b33335584afbac74388c4ed16ff1ff7a04e3588 (patch) | |
| tree | bc35e2e96695a56780139856dfd1f5267546193f /views/layouts | |
| parent | 8a1f07b11e8e18243c058149ac58ece7766b7ef3 (diff) | |
Add static page config and handler
Diffstat (limited to 'views/layouts')
| -rwxr-xr-x | views/layouts/main.handlebars | 23 | 
1 files changed, 19 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 · <a href="https://github.com/lowercasename/gathio">GitHub</a> · 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}} +                    · +                  {{/if}} + +                  <a href="{{this.path}}">{{this.title}}</a> + +                  {{#unless @last}} +                    · +                  {{/unless}} +                {{/each}} +              </p> +            {{/if}} +            <p class="small text-muted"> +              <strong>Gathio</strong> version {{version}} · <a href="https://github.com/lowercasename/gathio">GitHub</a> · 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>  | 
