Something went wrong. Try again.
Reference implementation for HTTP/Minima;
Something went wrong. Try again.
2.0 kB · 66 lines
HTML
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667<!DOCTYPE html><html lang="{{.Lang}}"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{{.Title}}</title> <!-- OpenGraph --> <meta property="og:title" content="{{.Title}}"> <meta property="og:type" content="article"> {{if .URL}}<meta property="og:url" content="{{.URL}}">{{end}} {{if .Description}}<meta property="og:description" content="{{.Description}}">{{end}} <meta property="og:locale" content="{{.Lang}}"> {{if .Author}}<meta name="author" content="{{.Author}}">{{end}} <style> :root { --text: #1a1a1a; --bg: #fefefe; --link: #0066cc; --code-bg: #f4f4f4; } @media (prefers-color-scheme: dark) { :root { --text: #e0e0e0; --bg: #1a1a1a; --link: #6db3f2; --code-bg: #2d2d2d; } } * { box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; font-size: 18px; line-height: 1.6; color: var(--text); background: var(--bg); max-width: 65ch; margin: 0 auto; padding: 2rem 1rem; } h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin-top: 1.5em; } a { color: var(--link); } pre, code { font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 0.9em; background: var(--code-bg); } pre { padding: 1rem; overflow-x: auto; } code { padding: 0.1em 0.3em; border-radius: 3px; } pre code { padding: 0; background: none; } blockquote { border-left: 3px solid var(--link); margin-left: 0; padding-left: 1rem; font-style: italic; } img { max-width: 100%; height: auto; } hr { border: none; border-top: 1px solid var(--text); opacity: 0.2; } table { border-collapse: collapse; width: 100%; } th, td { border: 1px solid var(--text); padding: 0.5rem; text-align: left; } th { opacity: 0.8; } </style></head><body>{{.Content}}</body></html>