commit 96aa1830806444f26ce7d26eb3844d2ed9d1a31c Author: Alex Palaistras Date: Sat Oct 29 15:37:43 2022 +0100 Initial commit for entire workspace diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8dd6d56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +.hugo_build.lock diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..69d0014 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 Alex Palaistras + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..0cc5432 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Go Module Registry for go.deuill.org + +This repository contains the source code and accompanying support files for a simple Go Module +registry (as required by `go get` et al.), built on Hugo. Entries are defined as special Markdown +files in the `content` directory. + +## License + +All code in this repository is covered by the terms of the MIT License, the full text of which can be found in the LICENSE file. diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..95834cb --- /dev/null +++ b/config.yaml @@ -0,0 +1,4 @@ +baseURL: https://go.deuill.org +languageCode: en-us +title: Go Modules on go.deuill.org +theme: go-mod diff --git a/content/informbot.md b/content/informbot.md new file mode 100644 index 0000000..4db84b3 --- /dev/null +++ b/content/informbot.md @@ -0,0 +1,10 @@ +--- +title: Informbot +description: A Chat Bot for Inform 7 Stories, Built in Go +module: + path: go.deuill.org/informbot +repository: + type: git + http_url: https://git.deuill.org/deuill/informbot + clone_url: https://git.deuill.org/deuill/informbot.git +--- diff --git a/themes/go-mod/LICENSE b/themes/go-mod/LICENSE new file mode 100644 index 0000000..69d0014 --- /dev/null +++ b/themes/go-mod/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 Alex Palaistras + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/go-mod/layouts/404.html b/themes/go-mod/layouts/404.html new file mode 100644 index 0000000..2f49ce4 --- /dev/null +++ b/themes/go-mod/layouts/404.html @@ -0,0 +1,30 @@ + + + + + Not found :( + + + +
+

Not found

+

(404 Not Found)

+

Sorry, but the page you were trying to view does not exist.

+ + + + Home + + + + + Go Back + + + + + Try Again + +
+ + diff --git a/themes/go-mod/layouts/_default/list.html b/themes/go-mod/layouts/_default/list.html new file mode 100644 index 0000000..4bfbff1 --- /dev/null +++ b/themes/go-mod/layouts/_default/list.html @@ -0,0 +1,2 @@ +{{partial "header.html" .}} +{{partial "footer.html" .}} diff --git a/themes/go-mod/layouts/_default/single.html b/themes/go-mod/layouts/_default/single.html new file mode 100644 index 0000000..54ecc40 --- /dev/null +++ b/themes/go-mod/layouts/_default/single.html @@ -0,0 +1,15 @@ +{{partial "header.html" .}} + +
+

{{.Title}}

+
+
Install
+
go install {{.Params.module.path}}@latest
+
Documentation
+
https://pkg.go.dev/{{.Params.module.path}}
+
Code
+
{{.Params.repository.http_url}}
+
+
+ +{{partial "footer.html" .}} diff --git a/themes/go-mod/layouts/_default/summary.html b/themes/go-mod/layouts/_default/summary.html new file mode 100644 index 0000000..b3d9d84 --- /dev/null +++ b/themes/go-mod/layouts/_default/summary.html @@ -0,0 +1,3 @@ +
+

{{.Title}} ·

+
diff --git a/themes/go-mod/layouts/index.html b/themes/go-mod/layouts/index.html new file mode 100644 index 0000000..7382251 --- /dev/null +++ b/themes/go-mod/layouts/index.html @@ -0,0 +1,10 @@ +{{partial "header.html" .}} + +
+

{{.Site.Title}}

+{{range .Site.RegularPages}} +{{.Render "summary"}} +{{end}} +
+ +{{partial "footer.html" .}} diff --git a/themes/go-mod/layouts/partials/footer.html b/themes/go-mod/layouts/partials/footer.html new file mode 100644 index 0000000..7fb2bd6 --- /dev/null +++ b/themes/go-mod/layouts/partials/footer.html @@ -0,0 +1,2 @@ + + diff --git a/themes/go-mod/layouts/partials/header.html b/themes/go-mod/layouts/partials/header.html new file mode 100644 index 0000000..4381bd4 --- /dev/null +++ b/themes/go-mod/layouts/partials/header.html @@ -0,0 +1,13 @@ + + + + + + {{if .IsHome}}Go Modules{{else}}{{.Title}}{{end}} · {{.Site.Title}} + + + {{ if and (.IsPage) (.Params.module) (.Params.repository) }}{{ end }} + + + + diff --git a/themes/go-mod/static/css/main.css b/themes/go-mod/static/css/main.css new file mode 100644 index 0000000..63cb40c --- /dev/null +++ b/themes/go-mod/static/css/main.css @@ -0,0 +1,85 @@ +html { + background: #f0f0f0; + color: #333; +} + +body { + margin: 0; + padding: 0; +} + +h1 { + font-size: 2rem; + margin: 0 0 1rem 0; +} + +h1 aside, +h2 aside { + color: #999; + display: inline; + font-size: 1.2rem; + font-weight: normal; +} + +p { + margin: 1rem 0; +} + +a { + background: #333; + color: #f0f0f0; + padding: 0.25rem 0.5rem; + text-decoration: none; + transition: background .2s ease; +} + +a:hover { + background: #c82829; +} + +main { + margin: 5rem auto 0; + max-width: 50rem; + position: relative; + text-align: center; +} + +main section, +main dl { + text-align: left; +} + +dl dt { + font-size: 1.2rem; + font-weight: bold; +} + +dl dd pre, +dl dd a { + display: inline-block; + margin: 0.5rem 0; +} + +.button { + display: inline-block; + width: 6rem; +} + +.button a { + outline: none; + text-decoration: none; +} + +.button .icon { + background: none; + color: #666; + cursor: pointer; + display: block; + font-size: 3rem; + font-style: normal; + margin: 0 auto -0.5rem; +} + +.button .description { + font-size: 0.8rem; +} diff --git a/themes/go-mod/theme.toml b/themes/go-mod/theme.toml new file mode 100644 index 0000000..1c87e49 --- /dev/null +++ b/themes/go-mod/theme.toml @@ -0,0 +1,12 @@ +name = "Go Mod" +license = "MIT" +licenselink = "https://git.deuill.org/deuill/go.deuill.org/blob/trunk/themes/go-mod/LICENCE" +description = "A landing page for serving Go modules" +homepage = "http://go.deuill.org" +tags = [] +features = [] +min_version = "0.41.0" + +[author] +name = "Alex Palaistras" +homepage = "https://deuill.org"