From 57fea6b21594a035adbe68e35d29424f9efe69b7 Mon Sep 17 00:00:00 2001 From: Atlas Cove Date: Wed, 11 May 2022 20:28:32 +0100 Subject: [PATCH] work on some files --- .editorconfig | 4 ++-- config.toml | 17 +++++++++++++---- templates/index.html | 28 +++++++++++++++++++++++++++- templates/shortcodes/style.html | 8 ++++++++ 4 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 templates/shortcodes/style.html diff --git a/.editorconfig b/.editorconfig index 6c0764e..4246d9f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,6 @@ root=true [*] charset=utf-8 -end_of_line=cr -[*.html] +end_of_line=lf +[**.html] indent_size=0 diff --git a/config.toml b/config.toml index 8b48667..f6df860 100644 --- a/config.toml +++ b/config.toml @@ -1,16 +1,25 @@ # The URL the site will be built for base_url = "https://atlas48.sdf.org/" - # 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 - +title = "Atlas Cove's Blog" [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_syntaxes = ["extend"] +render_emoji = true +highlight_theme = "visual-studio-dark" [extra] # Put all your custom variables here +[[extra.links]] +name = "Blog Home" +link = "/" +[[extra.links]] +name = "Docstore" +link = "https://atlas48.neocities.org/" +[[extra.links]] +name = "Social Media" +link = "https://atlas48.neocities.org/links.html" diff --git a/templates/index.html b/templates/index.html index d3c8bfc..c4e2852 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1 +1,27 @@ -{%- import "macros.html" as m -%} {% if title in page %} {{ page.title }} {% else %} {{ extra.name }} — {{ extra.description }} {% endif %} {% if site.highlighter %} {% endif %} {% block content %} {{ page.content }} {% endblock %} \ No newline at end of file +{# Welcome to the main page! #} + + + +{{ config.title }} +{% style() %} +h1 { size:5em; } +{% end %} + + +
+

{{ config.title }}

+{%- for i in config.extra.links %} +{{ i.title }} +{%- endfor -%} +
+
+ +

Atlas48

+

{# TODO: add "about me" section #}

+
    +{% for page in paginator.pages %} +
  1. {{ post_macros::title(page=page) }}
  2. +{% endfor %} +
+ + diff --git a/templates/shortcodes/style.html b/templates/shortcodes/style.html new file mode 100644 index 0000000..88cdc2a --- /dev/null +++ b/templates/shortcodes/style.html @@ -0,0 +1,8 @@ +