repos
/ orchard main

orchard

mirror

Every site I host, in one repo, along with the Cloudflare Tunnel and Caddy that front them. It's all Go, Vite, and SQLite, and it runs on a desktop at home with nothing listening on an inbound port.

blogbuncaddycloudflare-tunneldockergogolanghomelabhtml-templatemonorepoself-hostedseosqlitestatic-sitetypstuptime-monitoringviteweb-analytics

1.5 KB · 45 lines · Go Raw History
 1package main
 2
 3import "strings"
 4
 5// Identity is hardcoded, never configured. This site has no credentials at all,
 6// so it needs no .env.
 7const (
 8	baseURL     = "https://blog.bythewood.me"
 9	siteName    = "Isaac Bythewood's Blog"
10	siteTagline = "Blog"
11	authorName  = "Isaac Bythewood"
12	githubUser  = "overshard"
13	analyticsID = "0d379e18-9ea7-4228-a8bf-82369c25ab84"
14)
15
16// Staging is true on any hostname but the real one; it drives the noindex, the
17// robots.txt Disallow and the analytics collector.
18var Staging = !strings.HasSuffix(baseURL, "//blog.bythewood.me")
19
20// FooterLink is one entry in a footer column.
21type FooterLink struct {
22	Label string
23	Href  string
24}
25
26var (
27	footerProjects = []FooterLink{
28		{Label: "Taproot", Href: "https://github.com/overshard/taproot"},
29		{Label: "Dark Furrow", Href: "https://github.com/overshard/darkfurrow.com"},
30		{Label: "Timelite", Href: "https://github.com/overshard/timelite"},
31		{Label: "Status", Href: "https://github.com/overshard/status"},
32		{Label: "Analytics", Href: "https://github.com/overshard/analytics"},
33	}
34
35	footerLinks = []FooterLink{
36		{Label: "Portfolio", Href: "https://isaacbythewood.com/"},
37		{Label: "GitHub", Href: "https://github.com/overshard"},
38		{Label: "LinkedIn", Href: "https://www.linkedin.com/in/ibythewood/"},
39		{Label: "Blog Analytics", Href: "https://analytics.bythewood.me/" + analyticsID},
40		{Label: "Blog Status", Href: "https://status.bythewood.me/3b7aec61-6397-4d8f-b1b4-1a4649f149cd"},
41	}
42)
43
44const sourceURL = "https://github.com/" + githubUser + "/orchard/tree/main/sites/blog.bythewood.me"