all repos — nirvash @ 99c7b9f095eb72b69599b20696b7649e3d928653

modular CMS using the quartzgun library

update to quartzgun v0.2, add MIT license
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmLsa+gACgkQO3+8IhRO
Y5hF2g/9EsXelww40WwZtRD7+zeEx9nA+l/vSqWvkAX5DmcPJ/DGeV24dGsYmsUa
mcA0zYd4GUEcjvTJe9YRmuXa6TzhfT8vy1a0zj8CXvCIVqKIS29AEz+97vWhrEA+
mLgFXcHVPOyIBEdM/9A3KGKH6yEBsE8Kd8pw/mwj2sF8k6skQ/pWhBhawf2+rGft
v1zacV3NP0NWr6tjMiQEB4zrDmU72xW/I7r4SW77j2v35efOSl4SrjWsO1WZ+TTy
KUNHcEVrsh+JHSZYMum+FtNDJDTsmUyEIuBpNlQMttHKkIjYlkvnUPpX1zw4y9A6
LR564svaHBpDVWhpUEdI8CPsmzDsEbbTRBqptNk8IV0aQS7sDIFuSppu+YLISsJj
XmXrGJ9MH6tkR9CCXZrXzvyvTxVpSRwmOTaO7+kuhN0B8PX+xcZwZEq5/Poebq8h
XhXz77G0anClwi3Lt1ExS4hdGewmictPP2a/CNSdgAlMp4iybs7x52Xiknq15BH4
Gv2zs6JBlBRv5WMZDsxHpkbHcJcv+3Zks07EQPODHLkxVY9x8u3y8+zUm2ZgZy7p
EI6WzRBZ7Kjtm9mJTMqhDOh8DulQhVkgzLLu2vshNcgJA05w0/DF4IwQMHlf8lBk
zE0J2JJCYm//rwfUoyghuOIUXoZTMTiFhGBm4knhme1YB5p+Pdw=
=bFFV
-----END PGP SIGNATURE-----
commit

99c7b9f095eb72b69599b20696b7649e3d928653

parent

4328b79c445db2638e37eef10bd34ce48c6497c0

5 files changed, 15 insertions(+), 2 deletions(-)

jump to
A LICENSE

@@ -0,0 +1,7 @@

+Copyright 2022 Derek Stevens <nilix@nilfm.cc> + +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.
M README.mdREADME.md

@@ -61,3 +61,7 @@ - `CreatePage(slug, title, content string) error`: given all the proper arguments, create a new page in the backing store (eg filesystem, db)

- `SavePage(oldSlug, newSlug, title, content string) error`: given all the proper arguments, save a page to the backing store (eg filesystem, db) - `DeletePage(slug string) error`: given a slug, delete the corresponding page source and possibly its generated HTML, depending on the `Adapter` - `Build(buildOptions map[string][]string) BuildStatus`: takes a map of build option names to their values and builds the site, returning a `BuildStatus` object containing the success or failure as a boolean and the detailed status (eg, the console ouptut of the build process) + +## license + +`nirvash` is licensed under the [MIT license](./LICENSE).
M go.modgo.mod

@@ -2,6 +2,6 @@ module nilfm.cc/git/nirvash

go 1.17 -require nilfm.cc/git/quartzgun v0.1.2 +require nilfm.cc/git/quartzgun v0.2.0 require golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 // indirect
M go.sumgo.sum

@@ -27,3 +27,5 @@ nilfm.cc/git/quartzgun v0.1.1 h1:swJg3im4YsD64MnfJHa2Bxm0adGT/ArAMHLAPeEjuS0=

nilfm.cc/git/quartzgun v0.1.1/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto= nilfm.cc/git/quartzgun v0.1.2 h1:B0IN24Y1Bg2IVvKxXXVtTUNFdVL8h3k/r0+LFAyqtMI= nilfm.cc/git/quartzgun v0.1.2/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto= +nilfm.cc/git/quartzgun v0.2.0 h1:JJjkCbRLaMmfGLe5GQHWhBkkY6Is0roTMyWC76VtBPI= +nilfm.cc/git/quartzgun v0.2.0/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto=
M nirvash.gonirvash.go

@@ -48,7 +48,7 @@

rtr.Get("/login", renderer.Template( pathConcat(templateRoot, "login.html"))) - rtr.Post("/login", Authorize("/", udb, "/login?tryagain=1")) + rtr.Post("/login", Authorize("/", udb, "/login?tryagain=1", 84)) rtr.Get("/logout", Bunt("/", udb, "/login?tryagain=1"))