this repo has no description

basic layout

altagos.dev b4e58dcd 47733a3f

verified
+161 -3
+2 -3
.gitignore
··· 1 - **/_site 2 - **/_cache 3 - .env 1 + .zig-cache/ 2 + zig-out/
assets/favicon/apple-touch-icon.png

This is a binary file and will not be displayed.

assets/favicon/favicon-96x96.png

This is a binary file and will not be displayed.

assets/favicon/favicon.ico

This is a binary file and will not be displayed.

+5
assets/favicon/favicon.svg
··· 1 + <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%"><svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"> 2 + <rect x="0" y="0" width="100" height="100" style="fill: #87a987;"></rect> 3 + </svg><style>@media (prefers-color-scheme: light) { :root { filter: none; } } 4 + @media (prefers-color-scheme: dark) { :root { filter: none; } } 5 + </style></svg>
+21
assets/favicon/site.webmanifest
··· 1 + { 2 + "name": "MyWebSite", 3 + "short_name": "MySite", 4 + "icons": [ 5 + { 6 + "src": "/web-app-manifest-192x192.png", 7 + "sizes": "192x192", 8 + "type": "image/png", 9 + "purpose": "maskable" 10 + }, 11 + { 12 + "src": "/web-app-manifest-512x512.png", 13 + "sizes": "512x512", 14 + "type": "image/png", 15 + "purpose": "maskable" 16 + } 17 + ], 18 + "theme_color": "#ffffff", 19 + "background_color": "#ffffff", 20 + "display": "standalone" 21 + }
assets/favicon/web-app-manifest-192x192.png

This is a binary file and will not be displayed.

assets/favicon/web-app-manifest-512x512.png

This is a binary file and will not be displayed.

+45
build.zig
··· 1 + const std = @import("std"); 2 + const zine = @import("zine"); 3 + 4 + pub fn build(b: *std.Build) !void { 5 + const compile_stylesheet = b.step("stylesheet", "Compile altagos.css stylesheet from scss files"); 6 + compile_stylesheet.result_cached = false; 7 + std.debug.assert(try compile_stylesheet.addDirectoryWatchInput(b.path("style"))); 8 + 9 + const compile_stylesheet_cmd_out = b.run(&.{ 10 + "sass", 11 + "--no-source-map", 12 + "--no-color", 13 + "style/index.scss", 14 + }); 15 + const compile_stylesheet_cmd = b.addWriteFile("altagos.css", compile_stylesheet_cmd_out); 16 + const install_stylesheet = b.addInstallDirectory(.{ 17 + .source_dir = compile_stylesheet_cmd.getDirectory(), 18 + .install_dir = .prefix, 19 + .install_subdir = "style", 20 + }); 21 + install_stylesheet.step.dependOn(&compile_stylesheet_cmd.step); 22 + 23 + const stylesheet = zine.BuildAsset{ 24 + .name = "altagos.css", 25 + .lp = b.path("zig-out/style/altagos.css"), 26 + .install_path = "altagos.css", 27 + .install_always = true, 28 + }; 29 + compile_stylesheet.dependOn(&install_stylesheet.step); 30 + 31 + const website = zine.website(b, .{ 32 + .install_path = "website", 33 + .build_assets = &.{stylesheet}, 34 + }); 35 + website.step.dependOn(compile_stylesheet); 36 + b.getInstallStep().dependOn(&website.step); 37 + 38 + const serve = b.step("serve", "Start the Zine dev server"); 39 + const run_zine = zine.serve(b, .{ 40 + .build_assets = &.{stylesheet}, 41 + // .debug = .{ .scopes = &.{"serve"} }, 42 + }); 43 + run_zine.step.dependOn(&install_stylesheet.step); 44 + serve.dependOn(&run_zine.step); 45 + }
+16
build.zig.zon
··· 1 + .{ 2 + .name = .website, 3 + .version = "0.0.0", 4 + .fingerprint = 0x476f5de7ecfd4fa1, // Changing this has security and trust implications. 5 + .minimum_zig_version = "0.15.0-dev.1149+4e6a04929", 6 + .dependencies = .{ 7 + .zine = .{ 8 + .url = "git+https://github.com/awb-devs/zine?ref=main#7d84e095c9d324f5d2ced5c1d274bd6efa03e576", 9 + .hash = "zine-0.10.3-ou6nIHOKFgBB7tN40VFepW-PSgTuo00JgVcZ3RZzYvEX", 10 + }, 11 + }, 12 + .paths = .{ 13 + "build.zig", 14 + "build.zig.zon", 15 + }, 16 + }
+9
content/index.smd
··· 1 + --- 2 + .title = "Work in Progress", 3 + .author = "Jakob Speer", 4 + .date = @date("2025-07-20"), 5 + .layout = "root.shtml", 6 + .draft = false, 7 + --- 8 + 9 + ## Hello World
+20
layouts/root.shtml
··· 1 + <!DOCTYPE html> 2 + <html lang="en"> 3 + <head> 4 + <meta charset="UTF-8"> 5 + <title :text="$site.title"></title> 6 + <link rel="stylesheet" href="$build.asset('altagos.css').link()"> 7 + <!-- Favicon --> 8 + <link rel="icon" type="image/png" href="/favicon/favicon-96x96.png" sizes="96x96"> 9 + <link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg"> 10 + <link rel="shortcut icon" href="/favicon/favicon.ico"> 11 + <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"> 12 + <link rel="manifest" href="/favicon/site.webmanifest"> 13 + </head> 14 + <body> 15 + <div class="content"> 16 + <h1 :text="$page.title"></h1> 17 + <div :html="$page.content()"></div> 18 + </div> 19 + </body> 20 + </html>
+6
mise.toml
··· 1 + [tools] 2 + watchexec = "latest" 3 + zig = "master" 4 + 5 + [tasks.watch] 6 + run = "watchexec -q -r -e scss,zig 'zig build serve'"
+2
style/index.scss
··· 1 + // Layout 2 + @use "layout/base.scss";
+18
style/layout/base.scss
··· 1 + html, 2 + body { 3 + height: 100%; 4 + margin: 0; 5 + padding: 0; 6 + } 7 + 8 + body { 9 + display: flex; 10 + flex-direction: column; 11 + align-content: space-between; 12 + justify-content: space-between; 13 + 14 + margin: auto; 15 + max-width: 650px; 16 + 17 + line-height: 1.6; 18 + }
+17
zine.ziggy
··· 1 + Site { 2 + .title = "Altagos", 3 + .host_url = "https://altagos.dev", 4 + .content_dir_path = "content", 5 + .layouts_dir_path = "layouts", 6 + .assets_dir_path = "assets", 7 + .static_assets = [ 8 + // Favicon 9 + "favicon/apple-touch-icon.png", 10 + "favicon/favicon-96x96.png", 11 + "favicon/favicon.ico", 12 + "favicon/favicon.svg", 13 + "favicon/site.webmanifest", 14 + "favicon/web-app-manifest-192x192.png", 15 + "favicon/web-app-manifest-512x512.png", 16 + ], 17 + }