From c80792b17d88661f1f0a566e347d513ff9509d06 Mon Sep 17 00:00:00 2001 From: KAMATAKI Yuya Date: Sun, 8 Oct 2023 21:47:18 +0900 Subject: [PATCH] Start a website with cobalt --- _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..85b6b55 --- /dev/null +++ b/_cobalt.yml @@ -0,0 +1,7 @@ + +site: + title: kamat's page + description: This is kamat's website! + base_url: http://rumginger.org +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!