From 849f6543c82b96d7063ea51af7d9674ce8a255cd Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Wed, 22 Jan 2025 19:55:18 -0500 Subject: [PATCH] Move BlogMeta class to own file --- lib/DB/BlogMeta.rakumod | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/DB/BlogMeta.rakumod diff --git a/lib/DB/BlogMeta.rakumod b/lib/DB/BlogMeta.rakumod new file mode 100644 index 0000000..032e5da --- /dev/null +++ b/lib/DB/BlogMeta.rakumod @@ -0,0 +1,10 @@ +use v6.e.PREVIEW; + +use JSON::Class:auth; + +# Top level metadata for the blog +unit class BlogMeta is json(:pretty); #| The title of the blog + +has Str:D $.title is required; +#| The tagline of the blog +has Str:D $.tagline is required;