Skip to content

Commit

Permalink
Initial content
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacialCircumstances committed May 16, 2024
1 parent c6d7558 commit b96873c
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "List of blog posts"
sort_by = "date"
template = "blog.html"
page_template = "blog-page.html"
+++
6 changes: 6 additions & 0 deletions content/blog/first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "My first post"
date = 2019-11-27
+++

This is my first blog post.
6 changes: 6 additions & 0 deletions content/blog/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "My second post"
date = 2019-11-28
+++

This is my second blog post.
17 changes: 17 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -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>
9 changes: 9 additions & 0 deletions templates/blog-page.html
Original file line number Diff line number Diff line change
@@ -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 %}
13 changes: 13 additions & 0 deletions templates/blog.html
Original file line number Diff line number Diff line change
@@ -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 %}
8 changes: 8 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit b96873c

Please sign in to comment.