diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..5f1a4a6 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "https://solaris-games.github.io/devblog/" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..ca5be15 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = "List of blog posts" +sort_by = "date" +template = "blog.html" +page_template = "blog-page.html" ++++ \ No newline at end of file diff --git a/content/blog/first.md b/content/blog/first.md new file mode 100644 index 0000000..a1d1130 --- /dev/null +++ b/content/blog/first.md @@ -0,0 +1,6 @@ ++++ +title = "My first post" +date = 2019-11-27 ++++ + +This is my first blog post. diff --git a/content/blog/second.md b/content/blog/second.md new file mode 100644 index 0000000..04db092 --- /dev/null +++ b/content/blog/second.md @@ -0,0 +1,6 @@ ++++ +title = "My second post" +date = 2019-11-28 ++++ + +This is my second blog post. diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..59eaaae --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + + MyBlog + + + +
+
+ {% block content %} {% endblock %} +
+
+ + + diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..506d224 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ page.title }} +

+

{{ page.date }}

+{{ page.content | safe }} +{% endblock content %} \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..1f931bb --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ section.title }} +

+ +{% endblock content %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..3a46836 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block content %} +

+ This is my blog made with Zola. +

+

Click here to see my posts.

+{% endblock content %}