code cleanup

main
Frank Homburg 3 years ago
parent 1b2fb29e9c
commit fec01bddc0

@ -14,7 +14,7 @@ enableRobotsTXT = true
[menu]
[[menu.main]]
name = "FAQ"
name = "| FAQ |"
url = "/faq/"
weight = 10

@ -4,7 +4,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<style>body{margin:20px auto;max-width:725px;line-height:1.5em;font-size:1.1em;background-color:#252525;color:#d9d9d9;padding:0 10px;font-family:monospace;hyphens:auto}header{display:flex;justify-content:space-between;align-items:center;white-space:nowrap;font-variant:small-caps}a{color:#ab9a61;text-decoration:none}a:hover{color:#c6ba93}h1{color:#9A61AB;font-size:2em;font-weight:650}h2,h3,h4,h5{line-height:1.2;color:#9A61AB;font-size:1.1em}h2:before{content:"## ";content:"## " / ""}h3:before{content:"### ";content:"### " / ""}h4:before{content:"#### ";content:"#### " / ""}h5:before{content:"##### ";content:"##### " / ""}code{color:#252525;background:#e4d4e8}pre{tab-size:4}details{padding:.6rem 1rem;background:#393939;border:1px solid;border-radius:5px;margin-bottom:1rem}details.important{background:#f33;border-color:#f33}.important h2{margin:0}summary{cursor:pointer;font-weight:700}details[open]{padding-bottom:.75rem}details[open] summary{margin-bottom:.5rem}details[open]>*:last-child{margin-bottom:0}img{max-width:100%;display:block;margin:0 auto}font-size:20px;padding:0}nav{display:inline-block}nav li{display:inline-block;margin-right:20px}nav{font-size:1rem;line-height:2;padding:.5rem 0;margin-left:1rem}nav a{border:1px solid #72ab61;border-radius:2.5px;color:#72ab61;display:inline-block;padding:.1rem 1rem;margin-right:1rem;text-decoration:none}nav a:hover{color:#252525;background:#72ab61;font-weight:700}</style>
<style>body{margin:20px auto;max-width:725px;line-height:1.5em;font-size:1.1em;background-color:#252525;color:#d9d9d9;padding:0 10px;font-family:monospace;hyphens:auto}header{display:flex;justify-content:space-between;align-items:center;white-space:nowrap;font-variant:small-caps}a{color:#ab9a61;text-decoration:none}a:hover{color:#c6ba93}h1{color:#9A61AB;font-size:2em;font-weight:650}h2,h3,h4,h5{line-height:1.2;color:#9A61AB;font-size:1.1em}h2:before{content:"## ";content:"## " / ""}h3:before{content:"### ";content:"### " / ""}h4:before{content:"#### ";content:"#### " / ""}h5:before{content:"##### ";content:"##### " / ""}code{color:#252525;background:#e4d4e8}pre{tab-size:4}details{padding:.6rem 1rem;background:#393939;border:1px solid;border-radius:5px;margin-bottom:1rem}details.important{background:#f33;border-color:#f33}.important h2{margin:0}summary{cursor:pointer;font-weight:700}details[open]{padding-bottom:.75rem}details[open] summary{margin-bottom:.5rem}details[open]>*:last-child{margin-bottom:0}img{max-width:100%;display:block;margin:0 auto}font-size:20px;padding:0}nav{display:inline-block}nav li{display:inline-block no;margin-right:20px}</style>
<title>{{- .Title | default .Site.Title -}}</title>
</head>

@ -1,5 +1,4 @@
<ul class="nav">
<li><a id="index" href="/">Home</a></li>
<li><a id="faq" href="/faq">FAQ</a></li>
<li><a id="support" href="https://todo.sr.ht/~hmbrg/no-JS.club">Ticket</a></li>
</ul>
<a href="{{ "/" | relURL }}">Home</a>
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}

Loading…
Cancel
Save