Browse Source

Support dynamic Status page in footer

main
Matt Baer 1 month ago
parent
commit
4327421cfb
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      platform/platforms.go
  2. +1
    -1
      templates/base.tmpl

+ 3
- 0
platform/platforms.go View File

@@ -5,6 +5,7 @@ type Platform struct {
URL string
LogoURL string
StyleSheetURL string
StatusURL string
CodeAsName string
GitHubName string
MatomoID int
@@ -17,6 +18,7 @@ var (
Name: "Write.as",
URL: "https://write.as",
LogoURL: "https://write.as/img/w-sq.svg",
StatusURL: "https://status.write.as",
CodeAsName: "writeas",
GitHubName: "writeas",
MatomoID: 7,
@@ -27,6 +29,7 @@ var (
URL: "https://snap.as",
LogoURL: "https://snap.as/img/logo-mark-sm.png",
StyleSheetURL: "https://v2.snap.as/css/snap.css",
StatusURL: "https://status.snap.as",
CodeAsName: "snapas",
GitHubName: "snapas",
MatomoID: 20,


+ 1
- 1
templates/base.tmpl View File

@@ -73,7 +73,7 @@
<ul>
<li><a href="/docs/api/">api</a></li>
<li><a href="https://discuss.write.as/c/development/7">community</a></li>
<li><a href="https://status.write.as">status</a></li>
<li><a href="{{.Platform.StatusURL}}">status</a></li>
<li class="icons">
<a href="https://m.abunchtell.com/@writeas_dev" rel="me"><img src="https://write.as/img/mastodon.svg" alt="@writeas_dev on the fediverse" /></a>
</li>


Loading…
Cancel
Save