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 }}">
|
<html data-theme="{{ .theme }}">
|
||||||
<head>
|
<head>
|
||||||
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
|
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
|
||||||
<link rel="stylesheet" href="/static/globals.css" />
|
|
||||||
<link rel="stylesheet" href="/static/home.css" />
|
<link rel="stylesheet" href="/static/home.css" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<meta
|
<meta
|
||||||
http-equiv="Content-Security-Policy"
|
http-equiv="Content-Security-Policy"
|
||||||
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src 'self';"
|
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src 'self';"
|
||||||
/>
|
/>
|
||||||
<link rel="icon" href="/static/codecircles.png" />
|
<link rel="icon" href="/static/codecircles.png" />
|
||||||
<meta name="theme-color" content="#8CFFC1" />
|
|
||||||
<meta name="og:image" content="/static/codecircles.png" />
|
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="View StackOverflow threads in privacy and without the clutter."
|
content="View StackOverflow threads in privacy and without the clutter."
|
||||||
/>
|
/>
|
||||||
|
{{ template "sharedHead.html" }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -3,17 +3,13 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>{{ .question.Title }}</title>
|
<title>{{ .question.Title }}</title>
|
||||||
<link rel="stylesheet" href="/static/question.css" />
|
<link rel="stylesheet" href="/static/question.css" />
|
||||||
<link rel="stylesheet" href="/static/globals.css" />
|
|
||||||
<link rel="stylesheet" href="/static/syntax.css" />
|
<link rel="stylesheet" href="/static/syntax.css" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<meta
|
<meta
|
||||||
http-equiv="Content-Security-Policy"
|
http-equiv="Content-Security-Policy"
|
||||||
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src {{ .imagePolicy }};"
|
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 }}..." />
|
<meta name="description" content="{{ .question.ShortenedBody }}..." />
|
||||||
|
{{ template "sharedHead.html" }}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="parent">
|
<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