Add readme, license and fix site name

This commit is contained in:
2023-11-02 21:30:19 +11:00
parent efc3611897
commit 7d074c524b
3 changed files with 46 additions and 1 deletions

21
LICENSE Normal file
View File

@@ -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.

View File

@@ -1 +1,25 @@
# Adamantium # 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.

View File

@@ -6,7 +6,7 @@ html
meta name="theme-color" content="rgb(37, 99, 235)" 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="authorization_endpoint" href=Hanami.app.settings.micropub_authorization_endpoint
link rel="token_endpoint" href=Hanami.app.settings.micropub_token_endpoint link rel="token_endpoint" href=Hanami.app.settings.micropub_token_endpoint