diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-24 21:46:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-24 21:51:05 +0700 |
| commit | 64654e10c4f27d0d4f217f0bb249faaa53d260a1 (patch) | |
| tree | e46a1f26e2c577038647c1cc5e4e192e7e8eac1b /_content/template.gohtml | |
| parent | 47b4fc1b207240939179b3b5068b2d04c2ceb0a4 (diff) | |
| download | kilabit.info-64654e10c4f27d0d4f217f0bb249faaa53d260a1.tar.xz | |
all: use default ciigo styles
Changes on ciigo,
* go.mod: update asciidoctor-go module
* all: conform with Lighthouse recommendations
* _static: second round for cleaning up styles
* _static: simplify the topbar section
* all: improve default stylesheet
* all: move _example/ directory under _doc/ directory
* all: embed CSS and index HTML template using memfs
* all: format README with prettier
* go.mod: update pakakeh.go to v0.60.3-0.20260115103415-806359d5462f
Diffstat (limited to '_content/template.gohtml')
| -rw-r--r-- | _content/template.gohtml | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/_content/template.gohtml b/_content/template.gohtml index e60219e..903425b 100644 --- a/_content/template.gohtml +++ b/_content/template.gohtml @@ -6,41 +6,50 @@ <head> <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" /> {{- if .Metadata.description}} <meta name="description" content="{{.Metadata.description}}" /> {{- end }} <title>{{.Title}}</title> - <link rel="stylesheet" href="/index.css" /> +{{- if ne .EmbeddedCSS ""}} + <style> +{{.EmbeddedCSS}} + </style> +{{- end}} +{{- range .Styles}} + <link rel="stylesheet" href="{{.}}"> +{{- end}} </head> <body> - <div class="topbar"> - <div class="topbar-left"> - <div> - <a href="/">kilabit.info</a> + <div class="topbar" role="banner"> + <div class="left"> + <a class="item title" href="/">kilabit.info</a> + <span class="item">|</span> + <a class="item" href="/ama" target="_blank"> AmA </a> + <span class="item">|</span> + <a class="item" href="https://build.kilabit.info" target="_blank"> Build </a> + <span class="item">|</span> + <a class="item" href="mailto:ms@kilabit.info" target="_blank"> Email </a> + <span class="item">|</span> + <a class="item" href="https://github.com/shuLhan" target="_blank"> GitHub </a> + <span class="item">|</span> + <a class="item" rel="me" href="https://fosstodon.org/@shuLhan" target="_blank"> Mastodon </a> + <span class="item">|</span> + <a class="item" href="/project/"> Projects </a> + <span class="item">|</span> + <a class="item" href="https://sr.ht/~shulhan" target="_blank"> SourceHut </a> </div> - </div> - - <div class="topbar-right"> - | - <a href="/ama" target="_blank"> AmA </a> | - <a href="https://build.kilabit.info" target="_blank"> Build </a> | - <a href="mailto:ms@kilabit.info" target="_blank"> Email </a> | - <a href="https://github.com/shuLhan" target="_blank"> GitHub </a> | - <a rel="me" href="https://fosstodon.org/@shuLhan" target="_blank"> Mastodon </a> | - <a href="/project/"> Projects </a> | - <a href="https://sr.ht/~shulhan" target="_blank"> SourceHut </a> - </div> </div> - <div class="page"> - <div class="container">{{.Body}}</div> + <div class="page" role="main"> + <div class="container"> +{{.Body}} + </div> <!-- .container --> </div> <!-- .page --> - <div class="footer"> + <div class="footer" role="contentinfo"> <div> Copyright 2007-2026, Shulhan <ms@kilabit.info>. </div> |
