refactor: move shared head components to a template
This commit is contained in:
parent
b038d2c502
commit
1d12372ea5
@ -2,20 +2,17 @@
|
||||
<html data-theme="{{ .theme }}">
|
||||
<head>
|
||||
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
|
||||
<link rel="stylesheet" href="/static/globals.css" />
|
||||
<link rel="stylesheet" href="/static/home.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src 'self';"
|
||||
/>
|
||||
<link rel="icon" href="/static/codecircles.png" />
|
||||
<meta name="theme-color" content="#8CFFC1" />
|
||||
<meta name="og:image" content="/static/codecircles.png" />
|
||||
<meta
|
||||
name="description"
|
||||
content="View StackOverflow threads in privacy and without the clutter."
|
||||
/>
|
||||
{{ template "sharedHead.html" }}
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
@ -3,17 +3,13 @@
|
||||
<head>
|
||||
<title>{{ .question.Title }}</title>
|
||||
<link rel="stylesheet" href="/static/question.css" />
|
||||
<link rel="stylesheet" href="/static/globals.css" />
|
||||
<link rel="stylesheet" href="/static/syntax.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src {{ .imagePolicy }};"
|
||||
/>
|
||||
<link rel="icon" href="/static/codecircles.png" />
|
||||
<meta name="theme-color" content="#8CFFC1" />
|
||||
<meta name="og:image" content="/static/codecircles.png" />
|
||||
<meta name="description" content="{{ .question.ShortenedBody }}..." />
|
||||
{{ template "sharedHead.html" }}
|
||||
</head>
|
||||
<body>
|
||||
<div class="parent">
|
||||
|
4
templates/sharedHead.html
Normal file
4
templates/sharedHead.html
Normal file
@ -0,0 +1,4 @@
|
||||
<meta name="theme-color" content="#8CFFC1" />
|
||||
<meta name="og:image" content="/static/codecircles.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="/static/globals.css" />
|
Loading…
x
Reference in New Issue
Block a user