diff options
| author | Shulhan <ms@kilabit.info> | 2022-03-03 22:39:50 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-03-03 22:39:50 +0700 |
| commit | 114f3d00b225866a83ce9e62cccf1f199d1cd831 (patch) | |
| tree | 71bc5b8ff875f0e812fc3ee5f4223cbc94b86758 /_content/template.gohtml | |
| parent | 2be89e83b6ea55c556b4e2f811f729639a566f81 (diff) | |
| download | kilabit.info-114f3d00b225866a83ce9e62cccf1f199d1cd831.tar.xz | |
content: split the CSS into separate file
This is to make the Content-Security-Policy can be set without using
'unsafe-inline'.
Diffstat (limited to '_content/template.gohtml')
| -rw-r--r-- | _content/template.gohtml | 168 |
1 files changed, 1 insertions, 167 deletions
diff --git a/_content/template.gohtml b/_content/template.gohtml index ed5fc4c..1168631 100644 --- a/_content/template.gohtml +++ b/_content/template.gohtml @@ -4,174 +4,8 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#375EAB" /> - <title>{{.Title}}</title> - - <!-- Global site tag (gtag.js) - Google Analytics --> - <script - async - src="https://www.googletagmanager.com/gtag/js?id=UA-2502278-8" - ></script> - <script> - window.dataLayer = window.dataLayer || [] - function gtag() { - dataLayer.push(arguments) - } - gtag("js", new Date()) - - gtag("config", "UA-2502278-8") - </script> - - <style> -body { - color: black; - font-family: sans-serif; - line-height: 1.25em; - margin: 0 auto; - width: 800px; - font-size: 16px; -} -code { - font-size: 16px; -} -div { - margin: 0; - padding: 0; -} -a { - text-decoration: none; -} -h1 { - font-size: 28px; - border-bottom: 1px solid grey; - padding-bottom: 8px; -} -h2 { - font-size: 22px; -} -h3, -h4 { - font-size: 16px; -} -h3::before { - content: "> "; -} -h4::before { - content: ">> "; -} -h2, -h3, -h4, -h5 { - border-bottom: 1px solid grey; - padding: 2px; - color: black; -} -pre { - border-radius: 4px; - border: 1px solid #ccc; - display: block; - font-size: 16px; - line-height: 1.25em; - margin: 0 0 10px 20px; - overflow: auto; - padding: 9.5px; - word-break: break-all; - word-wrap: break-word; -} - -.topbar-left { - font-size: 24px; - font-weight: bold; - width: 48%; - display: inline-block; -} -.topbar-left a { - text-decoration: none; -} -.topbar-left a:visited { - color: black; -} -.topbar-info { - font-size: 12px; - font-weight: normal; - font-family: Monospace; -} -.topbar-right { - width: 50%; - display: inline-block; - text-align: right; -} -.topbar-right img { - width: 40px; -} -.sourcehut-icon { - display: inline-block; - line-height: .75em; - width: 40px; - vertical-align: .3em; -} - -.page { - margin: 24px 0px; -} - -.quoteblock .attribution { - text-align: right; - margin-right: 56px; -} - -.container .meta { - font-style: italic; - margin: 1.25rem; -} - -.footer { - text-align: center; - color: #666; - font-size: 0.875rem; - margin: 2.5rem 0; -} - -/** Custom classes for asciidoc */ -#toctitle { - display: none; -} -#toc li { - list-style: none; -} -#toc ul .sectlevel1 { - padding: 0px; - margin: 4px; -} -#toc ul .sectlevel2 { - margin: 4px; -} - -@media only screen and (max-width: 992px) { - body { - width: 100%; - margin: 0; - padding: 0; - } - .topbar { - padding: 1.5em; - } - .topbar-left, - .topbar-right { - width: 100%; - display: block; - text-align: left; - } - .page { - padding: 0 1.5em; - } - .footer { - text-align: left; - padding: 0 1.5em; - } -} - </style> + <link href="/index.css" rel="stylesheet" type="text/css" media="all"> </head> <body> <div class="topbar"> |
