display branding using the config file provided

This commit is contained in:
blek 2023-10-21 12:08:52 +10:00
parent 462f171a5b
commit f112f0bd43
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 15 additions and 8 deletions

View File

@ -5,6 +5,9 @@
<div style="max-width:95vw;width:fit-content;margin:0 auto;text-align:center">
<h1>Authors</h1>
<p>
{%- if conf.brand.instance_name != "blek! File" -%}
{{ conf.brand.instance_name }} is powered by
{%- endif -%}
blek! File is free and Open Source software, which is released under the
<a href="/license">
GPLv3{# -#}

View File

@ -13,7 +13,7 @@
<link rel="stylesheet" href="/form.css" />
<link rel="stylesheet" href="/js-only.css" />
<script src="/delay.js"></script>
<title>blek! File</title>
<title>{{ conf.brand.instance_name }}</title>
<style> .footer svg { height: 32px; margin: 10px 0 } </style>
@ -26,7 +26,11 @@
<img class="header-bg" src="/bfile-header.webp" width="400px" height="60px">
<div class='header-text'>
{% include "text-x-generic.svg" %}
blek! File - a minute file sharing
{{- conf.brand.instance_name -}}
{%- if conf.brand.instance_motto.len() != 0 -%}
{#- Whitespace control is stupid -#}
{{- " - " -}}{{- conf.brand.instance_motto -}}
{%- endif -%}
</div>
</div>
<div class='content-box'>

View File

@ -1,19 +1,19 @@
<meta name="author" content="blek!">
<meta name="description" content="A minute file hosting service">
<meta name="description" content="{{ conf.brand.instance_motto }}">
<meta name="keywords" content="file, upload file, munite file hosting, blek!, file hosting, share files">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="🌠 blek! File">
<meta name="twitter:description" content="A minute file hosting service">
<meta name="twitter:title" content="{{ conf.brand.instance_emoji }} {{ conf.brand.instance_name }}">
<meta name="twitter:description" content="{{ conf.brand.instance_motto }}">
<meta name="twitter:site" content="{{ env.instanceurl }}">
{#- <meta name="twitter:creator" content="@"> -#}
<meta name="twitter:image" content="/bfile.jpg">
<meta property="og:title" content="🌠 blek! File">
<meta property="og:description" content="A minute file hosting service">
<meta property="og:title" content="{{ conf.brand.instance_emoji }} {{ conf.brand.instance_name }}">
<meta property="og:description" content="{{ conf.brand.instance_motto }}">
<meta property="og:url" content='{{ env.instanceurl }}'>
<meta property="og:site_name" content="blek! File">
<meta property="og:site_name" content="{{ conf.brand.instance_emoji }} {{ conf.brand.instance_name }}">
<meta property="og:type" content="website">
<meta property="og:image" content="/bfile.jpg">