mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
feat: move static meta to templates
This commit is contained in:
parent
25f6ba7e93
commit
9ae5f37aea
@ -1,31 +1,12 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{{ template "static" }}
|
{{ template "static" }}
|
||||||
<link
|
<link
|
||||||
href="/static/error-image.css"
|
href="/static/error-image.css"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
>
|
>
|
||||||
|
|
||||||
<title>Micrach</title>
|
{{ template "static-meta" }}
|
||||||
<!-- Primary Meta Tags -->
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
<meta name="title" content="Micrach">
|
|
||||||
<meta name="description" content="Single board imageboard.">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
|
|
||||||
<!-- Open Graph / Facebook -->
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:url" content="https://micrach.igonin.dev/">
|
|
||||||
<meta property="og:title" content="Micrach">
|
|
||||||
<meta property="og:description" content="Single board imageboard.">
|
|
||||||
<meta property="og:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta property="twitter:card" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
<meta property="twitter:url" content="https://micrach.igonin.dev/">
|
|
||||||
<meta property="twitter:title" content="Micrach">
|
|
||||||
<meta property="twitter:description" content="Single board imageboard.">
|
|
||||||
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,27 +1,12 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{{ template "static" }}
|
{{ template "static" }}
|
||||||
|
<link
|
||||||
<title>Micrach</title>
|
href="/static/index.css"
|
||||||
<!-- Primary Meta Tags -->
|
rel="stylesheet"
|
||||||
<meta charset="UTF-8"/>
|
>
|
||||||
<meta name="title" content="Micrach">
|
|
||||||
<meta name="description" content="Single board imageboard.">
|
{{ template "static-meta" }}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
|
|
||||||
<!-- Open Graph / Facebook -->
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:url" content="https://micrach.igonin.dev/">
|
|
||||||
<meta property="og:title" content="Micrach">
|
|
||||||
<meta property="og:description" content="Single board imageboard.">
|
|
||||||
<meta property="og:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta property="twitter:card" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
<meta property="twitter:url" content="https://micrach.igonin.dev/">
|
|
||||||
<meta property="twitter:title" content="Micrach">
|
|
||||||
<meta property="twitter:description" content="Single board imageboard.">
|
|
||||||
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -10,10 +10,6 @@
|
|||||||
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
|
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
</script>
|
</script>
|
||||||
<link
|
|
||||||
href="/static/index.css"
|
|
||||||
rel="stylesheet"
|
|
||||||
>
|
|
||||||
<link rel="icon" href="/static/favicon.ico"/>
|
<link rel="icon" href="/static/favicon.ico"/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@ -38,4 +34,27 @@
|
|||||||
<meta property="twitter:title" content="{{ .Title }}">
|
<meta property="twitter:title" content="{{ .Title }}">
|
||||||
<meta property="twitter:description" content="{{ .Text }}">
|
<meta property="twitter:description" content="{{ .Text }}">
|
||||||
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "static-meta" }}
|
||||||
|
<title>Micrach</title>
|
||||||
|
<!-- Primary Meta Tags -->
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta name="title" content="Micrach">
|
||||||
|
<meta name="description" content="Single board imageboard.">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<!-- Open Graph / Facebook -->
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:url" content="https://micrach.igonin.dev/">
|
||||||
|
<meta property="og:title" content="Micrach">
|
||||||
|
<meta property="og:description" content="Single board imageboard.">
|
||||||
|
<meta property="og:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
||||||
|
|
||||||
|
<!-- Twitter -->
|
||||||
|
<meta property="twitter:card" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
||||||
|
<meta property="twitter:url" content="https://micrach.igonin.dev/">
|
||||||
|
<meta property="twitter:title" content="Micrach">
|
||||||
|
<meta property="twitter:description" content="Single board imageboard.">
|
||||||
|
<meta property="twitter:image" content="https://memepedia.ru/wp-content/uploads/2018/03/ebanyy-rot-etogo-kazino.png">
|
||||||
{{ end }}
|
{{ end }}
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
{{ template "static" }}
|
{{ template "static" }}
|
||||||
{{ template "meta" $FirstPost }}
|
{{ template "meta" $FirstPost }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user