diff --git a/src/app.cr b/src/app.cr index 15afde1..1d7e49b 100644 --- a/src/app.cr +++ b/src/app.cr @@ -3,6 +3,7 @@ require "./shards" # Load the asset manifest Lucky::AssetHelpers.load_manifest "public/mix-manifest.json" +require "./version" require "../config/server" require "../config/**" require "./app_database" diff --git a/src/components/shared/layout_footer.cr b/src/components/shared/layout_footer.cr index b3f1541..45437ba 100644 --- a/src/components/shared/layout_footer.cr +++ b/src/components/shared/layout_footer.cr @@ -3,7 +3,12 @@ class Shared::LayoutFooter < BaseComponent section do footer do para do - a "Source code", href: "https://sr.ht/~edwardloveall/scribe" + span do + a "Source code", href: "https://sr.ht/~edwardloveall/scribe" + end + span do + text "Version: #{Scribe::VERSION}" + end end end end diff --git a/src/css/app.css b/src/css/app.css index 23a9d69..a87e8c7 100644 --- a/src/css/app.css +++ b/src/css/app.css @@ -30,3 +30,7 @@ figure iframe { background: rgba(221, 221, 221, 0.3); } } + +footer p span { + margin-right: 1em; +} diff --git a/src/version.cr b/src/version.cr new file mode 100644 index 0000000..a369ddd --- /dev/null +++ b/src/version.cr @@ -0,0 +1,3 @@ +module Scribe + VERSION = "2022-01-04" +end