From 5c21b9370933e3eef846102035ae6b9063918182 Mon Sep 17 00:00:00 2001 From: Erin Nova Date: Wed, 27 Apr 2022 12:42:40 -0400 Subject: [PATCH] Initialize cobalt site --- _cobalt.yml | 7 +++++++ _defaults/pages.md | 10 ++++++++++ _defaults/posts.md | 10 ++++++++++ _layouts/default.liquid | 13 +++++++++++++ index.md | 10 ++++++++++ posts/post-1.md | 10 ++++++++++ 6 files changed, 60 insertions(+) create mode 100644 _cobalt.yml create mode 100644 _defaults/pages.md create mode 100644 _defaults/posts.md create mode 100644 _layouts/default.liquid create mode 100644 index.md create mode 100644 posts/post-1.md diff --git a/_cobalt.yml b/_cobalt.yml new file mode 100644 index 0000000..7bf3e02 --- /dev/null +++ b/_cobalt.yml @@ -0,0 +1,7 @@ + +site: + title: cobalt blog + description: Blog Posts Go Here + base_url: http://example.com +posts: + rss: rss.xml diff --git a/_defaults/pages.md b/_defaults/pages.md new file mode 100644 index 0000000..ad063cb --- /dev/null +++ b/_defaults/pages.md @@ -0,0 +1,10 @@ +--- +layout: default.liquid +--- +## Blog! + +{% for post in collections.posts.pages %} +#### {{post.title}} + +[{{ post.title }}]({{ post.permalink }}) +{% endfor %} diff --git a/_defaults/posts.md b/_defaults/posts.md new file mode 100644 index 0000000..cf88955 --- /dev/null +++ b/_defaults/posts.md @@ -0,0 +1,10 @@ +--- +layout: default.liquid + +title: First Post +is_draft: true +--- + +# This is our first Post! + +Welcome to the first post ever on cobalt.rs! diff --git a/_layouts/default.liquid b/_layouts/default.liquid new file mode 100644 index 0000000..8b79e63 --- /dev/null +++ b/_layouts/default.liquid @@ -0,0 +1,13 @@ + + + + + {{ page.title }} + + +
+

{{ page.title }}

+ {{ page.content }} +
+ + diff --git a/index.md b/index.md new file mode 100644 index 0000000..ad063cb --- /dev/null +++ b/index.md @@ -0,0 +1,10 @@ +--- +layout: default.liquid +--- +## Blog! + +{% for post in collections.posts.pages %} +#### {{post.title}} + +[{{ post.title }}]({{ post.permalink }}) +{% endfor %} diff --git a/posts/post-1.md b/posts/post-1.md new file mode 100644 index 0000000..cf88955 --- /dev/null +++ b/posts/post-1.md @@ -0,0 +1,10 @@ +--- +layout: default.liquid + +title: First Post +is_draft: true +--- + +# This is our first Post! + +Welcome to the first post ever on cobalt.rs!