commit 5d6f929cc494ab96613c0f68106a94819fdff1f8 Author: Stephen Waits Date: Tue Oct 7 15:40:11 2025 -0700 feat: builderscode 1.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..792daf4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +public/ +.hugo_build.lock +resources/_gen/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..65843ae --- /dev/null +++ b/LICENSE @@ -0,0 +1,16 @@ +Creative Commons Zero v1.0 Universal (CC0 1.0) + +Copyright (c) 2025 Stephen Waits + +To the extent possible under law, Stephen Waits has waived all copyright and related or neighboring rights to Builder's Code of Conduct. + +This work is published from: United States + +You are free to: +- Share — copy and redistribute the material in any medium or format +- Adapt — remix, transform, and build upon the material for any purpose, even commercially +- No attribution required + +This software is provided "as is", without warranty of any kind. + +Full license text: https://creativecommons.org/publicdomain/zero/1.0/legalcode diff --git a/README.md b/README.md new file mode 100644 index 0000000..c224505 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Builder's Code of Conduct + +A Code of Conduct for people who build things. + +Live site: [builderscode.org](https://builderscode.org) + +## Development + +```bash +hugo serve --port 8080 +``` + +## Deployment + +Configured for Netlify. Push to main branch to deploy. + +## License + +CC0 1.0 Universal - Public Domain Dedication diff --git a/content/versions/1.0.md b/content/versions/1.0.md new file mode 100644 index 0000000..8b7bcdb --- /dev/null +++ b/content/versions/1.0.md @@ -0,0 +1,51 @@ +# Builder's Code v1.0 + +A Code of Conduct for people who build things. + +--- + +## The Rule + +**Stay professional. Stay technical.** + +## Expected + +- Contribute constructively. +- Respect others' time and work. +- Focus on the work and its technical merit. + +## Not Welcome + +- Harassment, name-calling, or personal attacks. +- Trolling, spamming, or derailing discussions. +- Discussions about contributors rather than their contributions. + +## Enforcement + +Violations result in: + +1. **Warning** - First offense. +2. **Temporary suspension** - Repeated or serious violations. +3. **Permanent ban** - Continued violations. + +Maintainers can remove, block, or ban anyone who disrupts the project. + +--- + +## Adopting Builder's Code of Conduct + +To adopt this for your project, add to your README: + +``` +This project follows the [Builder's Code of Conduct](https://builderscode.org). +``` + +Or copy this to `CODE_OF_CONDUCT.md` in your project root. + +--- + +## License + +This work is dedicated to the public domain under [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/). + +You may use, modify, and distribute this freely without attribution. diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..ce4a8a9 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,7 @@ +baseURL = 'https://builderscode.org/' +languageCode = 'en-us' +title = "Builder's Code of Conduct" +disableKinds = ['taxonomy', 'term', 'RSS'] + +[params] + description = "A Code of Conduct for people who build things" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..f847c1e --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,240 @@ + + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + {{ with .Description }}{{ end }} + {{ with .Site.Params.description }}{{ end }} + + + + + {{ block "main" . }}{{ end }} +

Licensed under CC0 1.0 • Copyright © 2025 Stephen Waits

+ + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..831506a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,9 @@ +{{ define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end }} + +{{ define "main" }} +
+ + {{ .Content }} +
+ +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..62ef7aa --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,10 @@ +{{ define "title" }}{{ .Site.Title }}{{ end }} + +{{ define "main" }} + {{ $latest := index (where .Site.RegularPages "Section" "versions").ByDate.Reverse 0 }} +
+ + {{ $latest.Content }} +
+ +{{ end }} diff --git a/layouts/versions/list.html b/layouts/versions/list.html new file mode 100644 index 0000000..11a4c66 --- /dev/null +++ b/layouts/versions/list.html @@ -0,0 +1,26 @@ +{{ define "title" }}Versions | {{ .Site.Title }}{{ end }} + +{{ define "main" }} +

Versions

+

The homepage always shows the latest version. Previous versions are archived here.

+ +

Current

+ + + {{ if gt (len .Pages) 1 }} +

Archive

+ + {{ else }} +

Archive

+

No previous versions yet.

+ {{ end }} + + +{{ end }} diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..f2bdb7f --- /dev/null +++ b/netlify.toml @@ -0,0 +1,9 @@ +[build] + publish = "public" + command = "hugo --gc --minify" + +[build.environment] + HUGO_VERSION = "0.150.1" + +[context.production.environment] + HUGO_ENV = "production"