index.gohtml (2081B)
1 {{ define "base" }}<!DOCTYPE html><html lang="en"><head> 2 {{ .LogoASCII }} 3 {{ .VersionHTML }} 4 {{ .ShaHTML }} 5 <link href="/public/img/favicon.ico" rel="icon" type="image/x-icon" /> 6 <meta charset="UTF-8" /> 7 <meta name="author" content="n0tr1v"> 8 <meta name="keywords" content="{{ block "keywords" . }}{{ .BaseKeywords }}{{ end }}"/> 9 <meta name="subject" content=""> 10 <meta name="description" content="{{ block "meta-description" . }}{{ end }}" /> 11 <meta name="classification" content=""> 12 <meta name="distribution" content=""> 13 <meta name="robots" content="all" /> 14 <meta name="language" content="English"> 15 <meta name="revisit-after" content="1 days"> 16 <meta http-equiv="expires" content="0"> 17 <meta http-equiv="pragma" content="no-cache"> 18 <title>{{ block "title" . }}DarkForest{{ end }}</title> 19 {{ block "canonical-link" . }}{{ end }} 20 <link rel="stylesheet" type="text/css" href="/public/css/bootstrap.min.css?v={{ .VERSION }}" /> 21 <link rel="stylesheet" type="text/css" href="/public/css/style.css?v={{ .VERSION }}" /> 22 23 <style> 24 body, html { 25 height: 100%; 26 display:table; 27 width:100%; 28 } 29 body { 30 display:table-cell; 31 vertical-align:middle; 32 } 33 .bg { 34 /* The image used */ 35 background-image: url({{ .WallpaperImg }}); 36 37 /* Full height */ 38 height: 100%; 39 40 /* Center and scale the image nicely */ 41 background-position: center; 42 background-repeat: no-repeat; 43 background-size: cover; 44 } 45 #parent { 46 display: table; 47 width: 100%; 48 } 49 #form_login { 50 display:table;/* shrinks to fit content */ 51 margin:auto; 52 } 53 .captcha-img { transition: transform .2s; } 54 .captcha-img:hover { transform: scale(2.5); } 55 </style> 56 {{ block "extra-head" . }}{{ end }} 57 </head> 58 <body class="bg"> 59 60 {{ block "content" . }}{{ end }} 61 62 </body> 63 </html>{{ end }}