Updated module path
This commit is contained in:
parent
8f6682088e
commit
4fe7787ad3
10
go.mod
10
go.mod
@ -1,10 +1,10 @@
|
|||||||
module git.akyoto.dev/web/akyoto.dev
|
module git.urbach.dev/web/urbach.dev
|
||||||
|
|
||||||
go 1.23
|
go 1.24
|
||||||
|
|
||||||
require (
|
require (
|
||||||
git.akyoto.dev/go/markdown v0.0.0-20240403191359-809b89d689ab
|
git.urbach.dev/go/markdown v0.0.0-20250225155104-0b31c9f8886d
|
||||||
git.akyoto.dev/go/web v0.0.0-20250214212829-a4177508f180
|
git.urbach.dev/go/web v0.0.0-20250225154809-4b3560d0cff1
|
||||||
)
|
)
|
||||||
|
|
||||||
require git.akyoto.dev/go/router v0.1.4 // indirect
|
require git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429 // indirect
|
||||||
|
16
go.sum
16
go.sum
@ -1,8 +1,8 @@
|
|||||||
git.akyoto.dev/go/assert v0.1.3 h1:QwCUbmG4aZYsNk/OuRBz1zWVKmGlDUHhOnnDBfn8Qw8=
|
git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf h1:BQWa5GKNUsA5CSUa/+UlFWYCEVe3IDDKRbVqBLK0mAE=
|
||||||
git.akyoto.dev/go/assert v0.1.3/go.mod h1:0GzMaM0eURuDwtGkJJkCsI7r2aUKr+5GmWNTFPgDocM=
|
git.urbach.dev/go/assert v0.0.0-20250225153414-fc1f84f19edf/go.mod h1:y9jGII9JFiF1HNIju0u87OyPCt82xKCtqnAFyEreCDo=
|
||||||
git.akyoto.dev/go/markdown v0.0.0-20240403191359-809b89d689ab h1:GZg9Plrluv2Ga0e7MWkWhaFM4lLDpi8YKsq0EZVuufM=
|
git.urbach.dev/go/markdown v0.0.0-20250225155104-0b31c9f8886d h1:o6LxYEZiUues7bO94mIETmg+mwc8Y4/GjVPOV0dLoCc=
|
||||||
git.akyoto.dev/go/markdown v0.0.0-20240403191359-809b89d689ab/go.mod h1:C2FgTC0J3qOGYgcC5JAMvu7mSunvvcXravTY8AbGgC0=
|
git.urbach.dev/go/markdown v0.0.0-20250225155104-0b31c9f8886d/go.mod h1:DriKQWLREr5lrEg9oXAPg2WMZarumQNLCukfndz9QY4=
|
||||||
git.akyoto.dev/go/router v0.1.4 h1:ZL5HPl4aNn4QKihf3VVs0Mm9R6ZGn2StAHGRQxjEbws=
|
git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429 h1:VaFZujqHv30JGFZkfDEVE8kEqr3BaBSm+zy8TfMB6vw=
|
||||||
git.akyoto.dev/go/router v0.1.4/go.mod h1:rbHbkLJlQOafuOuvBalO3O8E0JtMFPT3zzTKX3h9T08=
|
git.urbach.dev/go/router v0.0.0-20250225153839-20945fb42429/go.mod h1:jIdUMhSrZ9FepXzVWdMvYvhE4FfYhKOWJyw8lw5KOPk=
|
||||||
git.akyoto.dev/go/web v0.0.0-20250214212829-a4177508f180 h1:tMZAXAJxjvcSjcgqflnvAR1urbQ0cVMmQOKURUHo0nk=
|
git.urbach.dev/go/web v0.0.0-20250225154809-4b3560d0cff1 h1:ohYHa+P3otlKgV8uOELMCE7hsRNu/R29FGc6mE4K1GA=
|
||||||
git.akyoto.dev/go/web v0.0.0-20250214212829-a4177508f180/go.mod h1:oB/+nfWbAsBXYhV+TidUjmxdbyGpU7pODdo95bYaRVc=
|
git.urbach.dev/go/web v0.0.0-20250225154809-4b3560d0cff1/go.mod h1:/aXfZPmBvT9Vb7z+Mqj/mrGB0KTUOwaMaL3Lra/wY04=
|
||||||
|
6
main.go
6
main.go
@ -3,9 +3,9 @@ package main
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/web/akyoto.dev/server/middleware"
|
"git.urbach.dev/web/urbach.dev/server/middleware"
|
||||||
"git.akyoto.dev/web/akyoto.dev/server/pages"
|
"git.urbach.dev/web/urbach.dev/server/pages"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
:root {
|
:root {
|
||||||
--main-hue: 40;
|
--hue: 220;
|
||||||
--main-saturation: 100%;
|
--body-color: hsl(var(--hue), 20%, 12%);
|
||||||
--main-color: hsl(var(--main-hue), var(--main-saturation), 70%);
|
--text-color: hsl(var(--hue), 20%, 77%);
|
||||||
--link-color: hsl(var(--main-hue), var(--main-saturation), 75%);
|
--main-color: hsl(calc(var(--hue) + 180), 100%, 75%);
|
||||||
--header-color: hsl(0, 0%, 100%);
|
--header-color: hsl(0, 0%, 100%);
|
||||||
--text-color: hsl(0, 0%, 77%);
|
|
||||||
--grey-color: hsl(0, 0%, 61%);
|
--grey-color: hsl(0, 0%, 61%);
|
||||||
--highlight-color: hsla(0, 0%, 100%, 0.05);
|
--highlight-color: hsla(0, 0%, 100%, 0.05);
|
||||||
--body-color: hsl(220, 5%, 12%);
|
--font-family: system-ui, sans-serif;
|
||||||
--font-family: "Segoe UI", system-ui;
|
|
||||||
--font-family-mono: monospace;
|
--font-family-mono: monospace;
|
||||||
--font-size: 18px;
|
--font-size: 18px;
|
||||||
--line-height: 1.6;
|
--line-height: 1.6;
|
||||||
@ -30,18 +28,18 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
color: var(--text-color);
|
||||||
|
background-color: var(--body-color);
|
||||||
|
font-family: var(--font-family);
|
||||||
|
font-size: var(--font-size);
|
||||||
|
line-height: var(--line-height);
|
||||||
|
letter-spacing: var(--letter-spacing);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
font-family: var(--font-family);
|
|
||||||
font-size: var(--font-size);
|
|
||||||
line-height: var(--line-height);
|
|
||||||
letter-spacing: var(--letter-spacing);
|
|
||||||
color: var(--text-color);
|
|
||||||
background-color: var(--body-color);
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
tab-size: 4;
|
tab-size: 4;
|
||||||
}
|
}
|
||||||
@ -55,7 +53,7 @@ article {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--link-color);
|
color: var(--main-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,11 +204,11 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.keyword {
|
.keyword {
|
||||||
color: var(--link-color);
|
color: var(--main-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.function {
|
.function {
|
||||||
color: var(--link-color);
|
color: var(--main-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.builtin {
|
.builtin {
|
||||||
|
@ -3,8 +3,8 @@ package app
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/go/web/send"
|
"git.urbach.dev/go/web/send"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Render(ctx web.Context, head string, body string) error {
|
func Render(ctx web.Context, head string, body string) error {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.akyoto.dev/go/markdown"
|
"git.urbach.dev/go/markdown"
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RenderPost(ctx web.Context, id string) error {
|
func RenderPost(ctx web.Context, id string) error {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.akyoto.dev/go/markdown"
|
"git.urbach.dev/go/markdown"
|
||||||
)
|
)
|
||||||
|
|
||||||
func loadProjects(directory string) []string {
|
func loadProjects(directory string) []string {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func HSTS(ctx web.Context) error {
|
func HSTS(ctx web.Context) error {
|
||||||
|
@ -3,7 +3,7 @@ package middleware
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Recover(ctx web.Context) error {
|
func Recover(ctx web.Context) error {
|
||||||
|
@ -3,7 +3,7 @@ package middleware
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RedirectTrailingSlashes(ctx web.Context) error {
|
func RedirectTrailingSlashes(ctx web.Context) error {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/web/akyoto.dev/server/app"
|
"git.urbach.dev/web/urbach.dev/server/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Blog(ctx web.Context) error {
|
func Blog(ctx web.Context) error {
|
||||||
@ -32,5 +32,5 @@ func Blog(ctx web.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
html.WriteString(`</ul>`)
|
html.WriteString(`</ul>`)
|
||||||
return app.Render(ctx, "<title>akyoto.dev</title>", html.String())
|
return app.Render(ctx, "<title>urbach.dev</title>", html.String())
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/web/akyoto.dev/server/app"
|
"git.urbach.dev/web/urbach.dev/server/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Frontpage(ctx web.Context) error {
|
func Frontpage(ctx web.Context) error {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package pages
|
package pages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.akyoto.dev/go/web"
|
"git.urbach.dev/go/web"
|
||||||
"git.akyoto.dev/web/akyoto.dev/server/app"
|
"git.urbach.dev/web/urbach.dev/server/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Post(ctx web.Context) error {
|
func Post(ctx web.Context) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user