Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
9 lines
1.3 KiB
Go Template
9 lines
1.3 KiB
Go Template
{{ define "anonymous_view.gohtml" }}<!doctype html>
|
|
<html lang="{{ .Locale }}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>{{ .Title }} · {{ .WikiName }}</title>
|
|
{{ template "social-metadata" . }}
|
|
<link rel="stylesheet" href="/static/css/main.css"><link rel="stylesheet" href="/static/css/theme/base.css">{{ if .ThemeCSS }}<link rel="stylesheet" href="{{ .ThemeCSS }}">{{ end }}
|
|
<style>.public-document img,.public-document video{max-width:100%;max-height:85vh}.public-document iframe{width:100%;height:85vh;border:0}.public-document pre{overflow:auto}</style></head>
|
|
<body class="{{ .Theme }}"><main class="public-document">{{ template "public-navigation" . }}
|
|
<section id="public-content" tabindex="-1">{{ if .HTML }}<article>{{ .HTML }}</article>{{ else if eq .Media "image" }}<img src="{{ .RawURL }}" alt="{{ .Title }}">{{ else if eq .Media "pdf" }}<iframe src="{{ .RawURL }}" title="{{ .Title }}"></iframe>{{ else if eq .Media "audio" }}<audio src="{{ .RawURL }}" controls preload="metadata"></audio>{{ else if eq .Media "video" }}<video src="{{ .RawURL }}" controls preload="metadata"></video>{{ else if .Text }}<pre>{{ .Text }}</pre>{{ end }}</section>
|
|
</main><script src="/static/js/public-navigation.js?v=3" defer></script></body></html>{{ end }}
|