aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/blog/preview.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/blog/preview.html')
-rw-r--r--internal/web/templates/blog/preview.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/web/templates/blog/preview.html b/internal/web/templates/blog/preview.html
new file mode 100644
index 0000000..a87e410
--- /dev/null
+++ b/internal/web/templates/blog/preview.html
@@ -0,0 +1,18 @@
+{{/* The design page's preview of the header: a page of its own for the
+ sandboxed frame — the real blog.css and theme CSS, and the header as the
+ form would save it. Only "preview" is ever executed; the empty content
+ block keeps the layout's reference satisfied. */}}
+{{define "content"}}{{end}}
+{{define "preview"}}<!DOCTYPE html>
+<html lang="{{.Lang}}">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>{{t "Preview"}}</title>
+<link rel="stylesheet" href="/static/blog.css">
+<style>{{css .Data.css}}</style>
+</head>
+<body class="{{.Data.theme.NavClass}}{{with .Data.theme.TitleRuleClass}} {{.}}{{end}}">
+{{template "siteheader" .}}
+</body>
+</html>{{end}}