diff --git a/.tool-versions b/.tool-versions index aa5a120..262d702 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -gleam 1.0.0 +gleam 1.1.0 nodejs 20.10.0 diff --git a/Caddyfile b/Caddyfile index 5e74e8a..c845e88 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,7 +4,7 @@ } http://localhost:61055 { - handle_path /gloss_blog* { + handle_path /scriptorium_blog* { root * ./public file_server } diff --git a/LICENSE.txt b/LICENSE.txt index 4d6e9b2..3fb5802 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Gloss demo blog +Scriptorium demo blog Copyright © 2024 Mikko Ahlroth This program is free software: you can redistribute it and/or modify diff --git a/README.md b/README.md index 5c3edc8..efb05bd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# gloss_blog +# scriptorium_blog -This is a demo blog for the [Gloss](https://hexdocs.pm/gloss) blog generator. +This is a demo blog for the [Scriptorium](https://hexdocs.pm/scriptorium) blog generator. Type `gleam run` to generate the blog. diff --git a/data/menu b/data/menu index 5806b47..f127e03 100644 --- a/data/menu +++ b/data/menu @@ -1,5 +1,5 @@ -https://hex.pm/packages/gloss Hex -https://hexdocs.pm/gloss HexDocs -https://gitlab.com/Nicd/gloss GitLab -/gloss_blog/guide.html User's Guide -https://gitlab.com/Nicd/gloss_blog This blog's source +https://hex.pm/packages/scriptorium Hex +https://hexdocs.pm/scriptorium HexDocs +https://gitlab.com/Nicd/scriptorium GitLab +/scriptorium_blog/guide.html User's Guide +https://gitlab.com/Nicd/scriptorium_blog This blog's source diff --git a/data/pages/404.md b/data/pages/404.md index 4fab000..85bd8f1 100644 --- a/data/pages/404.md +++ b/data/pages/404.md @@ -1,4 +1,4 @@ Page Not Found Try some other page? Or file an issue in the -[blog repository](https://gitlab.com/nicd/gloss_blog). +[blog repository](https://gitlab.com/nicd/scriptorium_blog). diff --git a/data/pages/guide.md b/data/pages/guide.md index 2511ac6..133b03f 100644 --- a/data/pages/guide.md +++ b/data/pages/guide.md @@ -1,3 +1,3 @@ -Gloss User's Guide +Scriptorium User's Guide Yay. diff --git a/data/posts/2024-04-14-hello-world.md b/data/posts/2024-04-14-hello-world.md index 06991f9..37a47c0 100644 --- a/data/posts/2024-04-14-hello-world.md +++ b/data/posts/2024-04-14-hello-world.md @@ -1,6 +1,6 @@ Hello, world! time: 15:25 Europe/Helsinki -This is the [Gloss](https://hexdocs.pm/gloss) demo blog. This blog will contain news about -Gloss, and the user's guide. It also works as a demonstration of a simple blog setup. You can -find this blog's code also on [GitLab](https://gitlab.com/Nicd/gloss_blog). +This is the [Scriptorium](https://hexdocs.pm/scriptorium) demo blog. This blog will contain news about +Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can +find this blog's code also on [GitLab](https://gitlab.com/Nicd/scriptorium_blog). diff --git a/gleam.toml b/gleam.toml index 0cc6ed2..1c2134d 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,4 +1,4 @@ -name = "gloss_blog" +name = "scriptorium_blog" version = "1.0.0" target = "javascript" @@ -15,4 +15,4 @@ target = "javascript" [dependencies] gleam_stdlib = "~> 0.34 or ~> 1.0" -gloss = { path = "../gloss" } +scriptorium = { path = "../scriptorium" } diff --git a/manifest.toml b/manifest.toml index 5d2f37e..ee84a52 100644 --- a/manifest.toml +++ b/manifest.toml @@ -9,7 +9,7 @@ packages = [ { name = "gleam_json", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "8B197DD5D578EA6AC2C0D4BDC634C71A5BCA8E7DB5F47091C263ECB411A60DF3" }, { name = "gleam_otp", version = "0.10.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "0B04FE915ACECE539B317F9652CAADBBC0F000184D586AAAF2D94C100945D72B" }, { name = "gleam_stdlib", version = "0.36.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "C0D14D807FEC6F8A08A7C9EF8DFDE6AE5C10E40E21325B2B29365965D82EB3D4" }, - { name = "gloss", version = "1.0.0", build_tools = ["gleam"], requirements = ["bigi", "gleam_javascript", "gleam_stdlib", "lustre", "lustre_ssg", "ranged_int"], source = "local", path = "../gloss" }, + { name = "scriptorium", version = "1.0.0", build_tools = ["gleam"], requirements = ["bigi", "gleam_javascript", "gleam_stdlib", "lustre", "lustre_ssg", "ranged_int"], source = "local", path = "../scriptorium" }, { name = "jot", version = "0.3.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "jot", source = "hex", outer_checksum = "574A2DACA106E9B4826C9F3F2D3911844C7826D554C08E404696CC16F85E0392" }, { name = "lustre", version = "4.1.7", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_json", "gleam_otp", "gleam_stdlib"], otp_app = "lustre", source = "hex", outer_checksum = "64F5D7E4DF51280185F70296ACB7D3DCC9B5DA09EFC5257F0E5601846DFBEF23" }, { name = "lustre_ssg", version = "0.5.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "jot", "lustre", "simplifile", "tom"], otp_app = "lustre_ssg", source = "hex", outer_checksum = "F208FC79C25AE70976AEA2BA4262760BCC5C807E637742FEF66F0692150039C6" }, @@ -21,4 +21,4 @@ packages = [ [requirements] gleam_stdlib = { version = "~> 0.34 or ~> 1.0" } -gloss = { path = "../gloss" } +scriptorium = { path = "../scriptorium" } diff --git a/public/2024/04/14/hello-world.html b/public/2024/04/14/hello-world.html index dbe0252..91375f5 100644 --- a/public/2024/04/14/hello-world.html +++ b/public/2024/04/14/hello-world.html @@ -1,5 +1,5 @@ -Hello, world! · Gloss Blog

Hello, world!

Posted on .

This is the Gloss demo blog. This blog will contain news about -Gloss, and the user's guide. It also works as a demonstration of a simple blog setup. You can -find this blog's code also on GitLab.

-
\ No newline at end of file +Hello, world! · Scriptorium Blog

Hello, world!

Posted on .

This is the Scriptorium demo blog. This blog will contain news about +Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can +find this blog's code also on GitLab.

+
\ No newline at end of file diff --git a/public/404.html b/public/404.html index fc55a5c..9dfd559 100644 --- a/public/404.html +++ b/public/404.html @@ -1,4 +1,4 @@ -Page Not Found · Gloss Blog

Page Not Found

Try some other page? Or file an issue in the -blog repository.

-
\ No newline at end of file +Page Not Found · Scriptorium Blog

Page Not Found

Try some other page? Or file an issue in the +blog repository.

+
\ No newline at end of file diff --git a/public/archive/2024.html b/public/archive/2024.html index 9c191a0..fd4bfac 100644 --- a/public/archive/2024.html +++ b/public/archive/2024.html @@ -1,5 +1,5 @@ -Archives for 2024 · Gloss Blog

Hello, world!

Posted on .

This is the Gloss demo blog. This blog will contain news about -Gloss, and the user's guide. It also works as a demonstration of a simple blog setup. You can -find this blog's code also on GitLab.

-
\ No newline at end of file +Archives for 2024 · Scriptorium Blog

Hello, world!

Posted on .

This is the Scriptorium demo blog. This blog will contain news about +Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can +find this blog's code also on GitLab.

+
\ No newline at end of file diff --git a/public/archive/2024/04.html b/public/archive/2024/04.html index 2cfaed2..6205a52 100644 --- a/public/archive/2024/04.html +++ b/public/archive/2024/04.html @@ -1,5 +1,5 @@ -Archives for April 2024 · Gloss Blog

Hello, world!

Posted on .

This is the Gloss demo blog. This blog will contain news about -Gloss, and the user's guide. It also works as a demonstration of a simple blog setup. You can -find this blog's code also on GitLab.

-
\ No newline at end of file +Archives for April 2024 · Scriptorium Blog

Hello, world!

Posted on .

This is the Scriptorium demo blog. This blog will contain news about +Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can +find this blog's code also on GitLab.

+
\ No newline at end of file diff --git a/public/feed.xml b/public/feed.xml index 2953cb1..a565cea 100644 --- a/public/feed.xml +++ b/public/feed.xml @@ -1,4 +1,4 @@ -Gloss Blog2024-04-19T20:49:00.908Zhttps://nicd.gitlab.io/gloss_blogMikko Ahlrothmikko@ahlroth.fihttps://social.ahlcode.fi/@nicdGloss© Mikko AhlrothHello, world!https://nicd.gitlab.io/gloss_blog/2024/04/14/hello-world.html2024-04-14T15:25:00.000+03:00<p>This is the <a href="https://hexdocs.pm/gloss">Gloss</a> demo blog. This blog will contain news about -Gloss, and the user&#39;s guide. It also works as a demonstration of a simple blog setup. You can -find this blog&#39;s code also on <a href="https://gitlab.com/Nicd/gloss_blog">GitLab</a>.</p> +Scriptorium Blog2024-04-20T20:08:17.190Zhttps://nicd.gitlab.io/scriptorium_blogMikko Ahlrothmikko@ahlroth.fihttps://social.ahlcode.fi/@nicdScriptorium© Mikko AhlrothHello, world!https://nicd.gitlab.io/scriptorium_blog/2024/04/14/hello-world.html2024-04-14T15:25:00.000+03:00<p>This is the <a href="https://hexdocs.pm/scriptorium">Scriptorium</a> demo blog. This blog will contain news about +Scriptorium, and the user&#39;s guide. It also works as a demonstration of a simple blog setup. You can +find this blog&#39;s code also on <a href="https://gitlab.com/Nicd/scriptorium_blog">GitLab</a>.</p> \ No newline at end of file diff --git a/public/guide.html b/public/guide.html index a541bb4..7fa923d 100644 --- a/public/guide.html +++ b/public/guide.html @@ -1,3 +1,3 @@ -Gloss User's Guide · Gloss Blog

Gloss User's Guide

Yay.

-
\ No newline at end of file +Scriptorium User's Guide · Scriptorium Blog

Scriptorium User's Guide

Yay.

+
\ No newline at end of file diff --git a/public/index.html b/public/index.html index a263cfa..be8c8c0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,5 @@ -Gloss Blog

Hello, world!

Posted on .

This is the Gloss demo blog. This blog will contain news about -Gloss, and the user's guide. It also works as a demonstration of a simple blog setup. You can -find this blog's code also on GitLab.

-
\ No newline at end of file +Scriptorium Blog

Hello, world!

Posted on .

This is the Scriptorium demo blog. This blog will contain news about +Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can +find this blog's code also on GitLab.

+
\ No newline at end of file diff --git a/src/gloss_blog.gleam b/src/scriptorium_blog.gleam similarity index 76% rename from src/gloss_blog.gleam rename to src/scriptorium_blog.gleam index 7a993a4..3b1bf34 100644 --- a/src/gloss_blog.gleam +++ b/src/scriptorium_blog.gleam @@ -1,15 +1,15 @@ import gleam/result import gleam/option import gleam/io -import gloss/builder -import gloss/config.{type Configuration, Configuration} -import gloss/defaults +import scriptorium/builder +import scriptorium/config.{type Configuration, Configuration} +import scriptorium/defaults pub fn main() { let config = defaults.default_config( - "Gloss Blog", - "https://nicd.gitlab.io/gloss_blog", + "Scriptorium Blog", + "https://nicd.gitlab.io/scriptorium_blog", "en", config.Author( "Mikko Ahlroth",