mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 02:17:27 -06:00
[feature] Make instance thumbnail configurable via admin panel (#973)
* [feature] Make instance thumbnail configurable via admin panel * log db errors in InstanceToAPIInstance * only update instance in db if necessary * start adding tests * finish test
This commit is contained in:
parent
eb25739c34
commit
b4f7316a4c
11 changed files with 183 additions and 57 deletions
|
|
@ -20,7 +20,7 @@
|
|||
{{ end }}<meta name="og:image" content="{{ .ogMeta.Image }}">
|
||||
{{ if .ogMeta.ImageWidth }}<meta name="og:image:width" content="{{ .ogMeta.ImageWidth }}">
|
||||
<meta name="og:image:height" content="{{ .ogMeta.ImageHeight }}">
|
||||
{{ end }}{{ end }}<link rel="shortcut icon" href="/assets/logo.png" type="image/png">
|
||||
{{ end }}{{ end }}<link rel="shortcut icon" href="{{ .instance.Thumbnail }}" type="{{ if .instance.ThumbnailType }}{{ .instance.ThumbnailType }}{{ else }}image/png{{ end }}">
|
||||
<link rel="stylesheet" href="/assets/dist/_colors.css">
|
||||
<link rel="stylesheet" href="/assets/dist/base.css">
|
||||
{{range .stylesheets}}<link rel="stylesheet" href="{{.}}">
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
<div class="page">
|
||||
<header>
|
||||
<a aria-label="instance homepage" href="/" class="nounderline header">
|
||||
<img src="/assets/logo.png" alt="Instance Logo"/>
|
||||
<img src="{{ .instance.Thumbnail }}" alt="{{ if .instance.ThumbnailDescription }}{{ .instance.ThumbnailDescription }}{{ else }}Instance Logo{{ end }}"/>
|
||||
<div>
|
||||
<h1>
|
||||
{{.instance.Title}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue