Fix syntax highlighting, static dir and add back header template
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
0
.gitmodules
vendored
|
@ -5,7 +5,6 @@ steps:
|
|||
- hugo mod tidy
|
||||
- hugo mod npm pack
|
||||
- npm install
|
||||
- rm -rf /korhonen.cc/*
|
||||
- hugo --gc -d /korhonen.cc
|
||||
- hugo --gc --cleanDestinationDir --enableGitInfo -d /korhonen.cc
|
||||
volumes:
|
||||
- /var/www/korhonen.cc:/korhonen.cc
|
||||
|
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
10
assets/jsconfig.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"*": [
|
||||
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/v4@v4.1.1/assets/*",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
|
@ -2,8 +2,8 @@
|
|||
path = "github.com/hugo-toha/toha/v4"
|
||||
|
||||
[[mounts]]
|
||||
source = "static/files"
|
||||
target = "static/files"
|
||||
source = "static"
|
||||
target = "static"
|
||||
|
||||
[[mounts]]
|
||||
source = "./node_modules/flag-icon-css/flags"
|
||||
|
|
1
config/_default/outputs.toml
Normal file
|
@ -0,0 +1 @@
|
|||
home = ["HTML", "RSS", "JSON"]
|
|
@ -11,7 +11,7 @@ enable = false
|
|||
[logo]
|
||||
main = "/images/marko.png"
|
||||
inverted = "/images/marko.png"
|
||||
favicon = "/favicon-32x32.png"
|
||||
favicon = "/favicon.png"
|
||||
|
||||
[features.toc]
|
||||
enable = true
|
||||
|
|
|
@ -36,7 +36,7 @@ Misskey seems to save all of it's known users to the `user` table, not only
|
|||
the actual local accounts. To find the local accounts only, you can use
|
||||
the following query
|
||||
|
||||
[source]
|
||||
[source,sql]
|
||||
----
|
||||
include::code/query_users[]
|
||||
----
|
||||
|
@ -44,7 +44,7 @@ include::code/query_users[]
|
|||
Now you can simply make your new root account's `isRoot` column `true` and
|
||||
your actual user account `false`. After that, the migration will work.
|
||||
|
||||
[source]
|
||||
[source,sql]
|
||||
----
|
||||
include::code/update_users[]
|
||||
----
|
||||
|
|
40
layouts/partials/header.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
|
||||
<!-- Add CSS for rouge -->
|
||||
<link rel="stylesheet" href="/rouge.css">
|
||||
|
||||
<!-- Add manifest and service worker for PWA support -->
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<script>
|
||||
if('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker
|
||||
.register('/sw.js', { scope: '/' });
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- umami analytics -->
|
||||
<script async defer data-website-id="d79111e4-25ee-43d8-be20-5cd3a845a8cf" src="https://umami.korhonen.cc/ua9quuaW.js"></script>
|
||||
|
||||
<!-- IndieAuth -->
|
||||
<link rel="pgpkey" href="https://openpgpkey.korhonen.cc/.well-known/openpgpkey/korhonen.cc/hu/u59jwso7wz4bwuizmgx1qfqhr1i9mq6e">
|
||||
<link rel="openid.delegate" href="https://korhonen.cc" />
|
||||
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
|
||||
|
||||
{{ partial "helpers/style-bundle.html" . }}
|
||||
|
||||
<!--================= fab-icon =========================-->
|
||||
{{/* add favicon only if the site author has provided the the favicon */}}
|
||||
{{ if site.Params.logo.favicon }}
|
||||
{{ $favicon := site.Params.logo.favicon }}
|
||||
|
||||
{{/* resize the favicon. don't resize svg because it is not supported */}}
|
||||
{{ $favicon = resources.Get $favicon }}
|
||||
{{ if and $favicon (ne $favicon.MediaType.SubType "svg") }}
|
||||
{{ $favicon = $favicon.Resize "42x" }}
|
||||
{{ end }}
|
||||
{{ $favicon = $favicon.RelPermalink}}
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ $favicon }}" />
|
||||
{{end}}
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
BIN
static/favicon-32x32.png
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
214
static/rouge.css
Normal file
|
@ -0,0 +1,214 @@
|
|||
.highlight table td {
|
||||
padding: 5px;
|
||||
}
|
||||
.highlight table pre {
|
||||
margin: 0;
|
||||
}
|
||||
.highlight .gh {
|
||||
color: #999999;
|
||||
}
|
||||
.highlight .sr {
|
||||
color: #f6aa11;
|
||||
}
|
||||
.highlight .go {
|
||||
color: #888888;
|
||||
}
|
||||
.highlight .gp {
|
||||
color: #555555;
|
||||
}
|
||||
.highlight .gs {
|
||||
}
|
||||
.highlight .gu {
|
||||
color: #aaaaaa;
|
||||
}
|
||||
.highlight .nb {
|
||||
color: #f6aa11;
|
||||
}
|
||||
.highlight .cm {
|
||||
color: #75715e;
|
||||
}
|
||||
.highlight .cp {
|
||||
color: #75715e;
|
||||
}
|
||||
.highlight .c1 {
|
||||
color: #75715e;
|
||||
}
|
||||
.highlight .cs {
|
||||
color: #75715e;
|
||||
}
|
||||
.highlight .c,
|
||||
.highlight .ch,
|
||||
.highlight .cd,
|
||||
.highlight .cpf {
|
||||
color: #75715e;
|
||||
}
|
||||
.highlight .err {
|
||||
color: #960050;
|
||||
}
|
||||
.highlight .gr {
|
||||
color: #960050;
|
||||
}
|
||||
.highlight .gt {
|
||||
color: #960050;
|
||||
}
|
||||
.highlight .gd {
|
||||
color: #49483e;
|
||||
}
|
||||
.highlight .gi {
|
||||
color: #49483e;
|
||||
}
|
||||
.highlight .ge {
|
||||
color: #49483e;
|
||||
}
|
||||
.highlight .kc {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.highlight .kd {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.highlight .kr {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.highlight .no {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.highlight .kt {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.highlight .mf {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .mh {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .il {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .mi {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .mo {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .m,
|
||||
.highlight .mb,
|
||||
.highlight .mx {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .sc {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .se {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .ss {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.highlight .sd {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .s2 {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .sb {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .sh {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .si {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .sx {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .s1 {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .s,
|
||||
.highlight .sa,
|
||||
.highlight .dl {
|
||||
color: #e6db74;
|
||||
}
|
||||
.highlight .na {
|
||||
color: #a6e22e;
|
||||
}
|
||||
.highlight .nc {
|
||||
color: #a6e22e;
|
||||
}
|
||||
.highlight .nd {
|
||||
color: #a6e22e;
|
||||
}
|
||||
.highlight .ne {
|
||||
color: #a6e22e;
|
||||
}
|
||||
.highlight .nf,
|
||||
.highlight .fm {
|
||||
color: #a6e22e;
|
||||
}
|
||||
.highlight .vc {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .nn {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .nl {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .ni {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .bp {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .vg {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .vi {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .nv,
|
||||
.highlight .vm {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .w {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .n,
|
||||
.highlight .py,
|
||||
.highlight .nx {
|
||||
color: #ffffff;
|
||||
background-color: #272822;
|
||||
}
|
||||
.highlight .ow {
|
||||
color: #f92672;
|
||||
}
|
||||
.highlight .nt {
|
||||
color: #f92672;
|
||||
}
|
||||
.highlight .k,
|
||||
.highlight .kv {
|
||||
color: #f92672;
|
||||
}
|
||||
.highlight .kn {
|
||||
color: #f92672;
|
||||
}
|
||||
.highlight .kp {
|
||||
color: #f92672;
|
||||
}
|
||||
.highlight .o {
|
||||
color: #f92672;
|
||||
}
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |