summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-06 19:33:51 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-06 19:33:51 +0200
commit536d364573fc203ea449bee33d66671f516984b0 (patch)
tree57a509bcd43ffeccfc9f6c3344fa5c8674419e9f
parentb02f618cac0a321f54ea6c3d97e48e4471c8645f (diff)
Initial commit of project migration.
Changes to be committed: new file: config.toml new file: content/blog/_index.md new file: content/blog/first.md new file: content/blog/second.md new file: description new file: templates/base.html new file: templates/blog-page.html new file: templates/blog.html new file: templates/index.html
-rw-r--r--config.toml16
-rw-r--r--content/blog/_index.md6
-rw-r--r--content/blog/first.md6
-rw-r--r--content/blog/second.md6
-rw-r--r--description1
-rw-r--r--templates/base.html17
-rw-r--r--templates/blog-page.html9
-rw-r--r--templates/blog.html13
-rw-r--r--templates/index.html8
9 files changed, 82 insertions, 0 deletions
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..4bd71ea
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,16 @@
+# The URL the site will be built for
+base_url = "https://alphara.art"
+
+# 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 = true
+
+[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..72bc989
--- /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"
++++
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/description b/description
new file mode 100644
index 0000000..b135000
--- /dev/null
+++ b/description
@@ -0,0 +1 @@
+This was my Zola Overview tutorial done.
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 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <title>MyBlog</title>
+</head>
+
+<body>
+ <section class="section">
+ <div class="container">
+ {% block content %} {% endblock %}
+ </div>
+ </section>
+</body>
+
+</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
new file mode 100644
index 0000000..f0f638e
--- /dev/null
+++ b/templates/blog-page.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="title">
+ {{ page.title }}
+</h1>
+<p class="subtitle"><strong>{{ page.date }}</strong></p>
+{{ page.content | safe }}
+{% endblock content %}
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..8e3cc52
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="title">
+ {{ section.title }}
+</h1>
+<ul>
+ <!-- If you are using pagination, section.pages will be empty. You need to use the paginator object -->
+ {% for page in section.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
+ {% endfor %}
+</ul>
+{% endblock content %}
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 %}
+<h1 class="title">
+ This is my blog made with Zola.
+</h1>
+<p>Click <a href="{{ get_url(path='@/blog/_index.md') }}">here</a> to see my posts.</p>
+{% endblock content %}