Moving to custom theme.
This commit is contained in:
parent
1a61de3be5
commit
1f207f96fd
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
|||||||
[submodule "themes/zola.386"]
|
|
||||||
path = themes/zola.386
|
|
||||||
url = https://github.com/lopes/zola.386.git
|
|
31
config.toml
31
config.toml
@ -1,34 +1,27 @@
|
|||||||
# The URL the site will be built for
|
|
||||||
base_url = "https://atlas48.sdf.org/"
|
base_url = "https://atlas48.sdf.org/"
|
||||||
# Whether to automatically compile all Sass files in the sass directory
|
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
# Whether to build a search index to be used later on by a JavaScript library
|
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
title = "Atlas Cove's Blog"
|
title = "Atlas Cove's Blog"
|
||||||
theme = "zola.386"
|
|
||||||
[markdown]
|
[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
|
highlight_code = true
|
||||||
extra_syntaxes = ["extend"]
|
extra_syntaxes = ["extend"]
|
||||||
render_emoji = true
|
render_emoji = true
|
||||||
highlight_theme = "visual-studio-dark"
|
highlight_theme = "visual-studio-dark"
|
||||||
[[zola386_menu]]
|
|
||||||
name = "Home"
|
|
||||||
path = "/"
|
|
||||||
[[zola386_menu]]
|
|
||||||
name = "Docstore"
|
|
||||||
path = "https://atlas48.neocities.org/"
|
|
||||||
[[zola386_menu]]
|
|
||||||
name = "Social Media"
|
|
||||||
path = "https://atlas48.neocities.org/links.html"
|
|
||||||
[[taxonomies]]
|
|
||||||
name="catagories"
|
|
||||||
rss=true
|
|
||||||
[[taxonomies]]
|
[[taxonomies]]
|
||||||
name="tags"
|
name="tags"
|
||||||
rss=true
|
rss=true
|
||||||
|
[[taxonomies]]
|
||||||
|
name="catagories"
|
||||||
|
rss=true
|
||||||
[extra]
|
[extra]
|
||||||
# Put all your custom variables here
|
|
||||||
author="Atlas Cove"
|
author="Atlas Cove"
|
||||||
keywords=[]
|
keywords=[]
|
||||||
|
[[extra.links]]
|
||||||
|
name = "Home"
|
||||||
|
path = "/"
|
||||||
|
[[extra.links]]
|
||||||
|
name = "Docstore"
|
||||||
|
path = "https://atlas48.neocities.org/"
|
||||||
|
[[extra.links]]
|
||||||
|
name = "Social Media"
|
||||||
|
path = "https://atlas48.neocities.org/links.html"
|
||||||
|
6
content/_index.md
Normal file
6
content/_index.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
+++
|
||||||
|
title = "List of blog posts"
|
||||||
|
sort_by = "date"
|
||||||
|
template = "index.tera"
|
||||||
|
page_template = "page.tera"
|
||||||
|
+++
|
@ -1,3 +0,0 @@
|
|||||||
User-agent: *
|
|
||||||
Allow: /
|
|
||||||
Sitemap: {{ get_url(path="sitemap.xml") }}
|
|
26
templates/base.tera
Normal file
26
templates/base.tera
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{% import "macros.tera" as m -%}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>{{ "Atlas48@SDF: " ~ page.title }}</title>
|
||||||
|
<style>
|
||||||
|
{% if page.style %}
|
||||||
|
@import {{ page.style }};
|
||||||
|
{% else %}
|
||||||
|
@import "main.css";
|
||||||
|
{% endif %}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
{% for i in extra.links %}
|
||||||
|
<a href="{{ i.path }}">{{ i.name }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
{% block content %} {% endblock %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
</html>
|
4
templates/index.tera
Normal file
4
templates/index.tera
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{%- extends "base.html" -%}
|
||||||
|
{%- block content -%}
|
||||||
|
<p>Hello World!</p>
|
||||||
|
{%- endblock -%}
|
0
templates/macros.tera
Normal file
0
templates/macros.tera
Normal file
5
templates/page.tera
Normal file
5
templates/page.tera
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{%- extends "base.html" -%}
|
||||||
|
{%- block content -%}
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
<p id="date">{{ page.date }}
|
||||||
|
{%- endblock -%}
|
@ -1 +0,0 @@
|
|||||||
Subproject commit d9c9726435d1347341f2171f9aa751291f1db93d
|
|
Loading…
Reference in New Issue
Block a user