diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..785ad59 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Daniel Nitsikopoulos + +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. \ No newline at end of file diff --git a/README.md b/README.md index 6df81d7..fd75de2 100644 --- a/README.md +++ b/README.md @@ -1 +1,25 @@ # Adamantium + +Adamantium is my personal blog built with Hanami 2. + +It's based on the [Micropub](https://micropub.net/) spec for publishing posts of varying types. + +## Status + +This project is under active development and is light on tests. It was also started when Hanami 2 was still in beta, so contains some code that may not be needed in the current version of Hanami 2 (particularly the persistence and asset management code). I do plan on bringing that in line with what is in the release version of Hanami 2, though. + +## Running locally + +### Requirements +- Ruby +- Postgres + +### Steps +1. Provide a `.env` file that fills in all of the required settings in `config/settings.rb` +2. Run `script/setup` +3. Run `script/server` +4. Visit `http://localhost:2300` + +## License + +The source code is available under the MIT licence. But you may not copy the design or content of this site. diff --git a/app/templates/layouts/app.html.slim b/app/templates/layouts/app.html.slim index 7bf7afa..d844171 100644 --- a/app/templates/layouts/app.html.slim +++ b/app/templates/layouts/app.html.slim @@ -6,7 +6,7 @@ html meta name="theme-color" content="rgb(37, 99, 235)" - title #{context.content_for(:title)} Daniel Nitsikopoulos + title #{context.content_for(:title)} #{Hanami.app.settings.site_name} link rel="authorization_endpoint" href=Hanami.app.settings.micropub_authorization_endpoint link rel="token_endpoint" href=Hanami.app.settings.micropub_token_endpoint