M README.md => README.md +3 -0
@@ 1,5 1,8 @@
# liljamo.dev
+## Notes
+* Projects are sorted by their `weight`, defined in the section `_index.md` files.
+
## License
The content of this project is licensed under the [Creative Commons Attribution-NoDerivs 4.0 International license](https://creativecommons.org/licenses/by-nd/4.0/), and the underlying source code used to format and display that content is licensed under the [AGPL 3.0 license](LICENSE.md).
M config.toml => config.toml +31 -6
@@ 1,16 1,41 @@
-# The URL the site will be built for
base_url = "https://liljamo.dev"
-# Whether to automatically compile all Sass files in the sass directory
-compile_sass = false
+title = "liljamo projects"
+description = "showcase and devlog site for personal projects"
+
+# default author
+author = "Jonni Liljamo <jonni@liljamo.com>"
+
+default_language = "en"
+# theme = "" # none
-# Whether to build a search index to be used later on by a JavaScript library
+output_dir = "public"
+preserve_dotfiles_in_output = false
+compile_sass = false
+minify_html = false
build_search_index = false
+ignored_content = []
+
+generate_feed = true
+feed_filename = "atom.xml"
+# feed_limit = 20 # unlimited when not set
+
+taxonomies = []
+
[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_and_themes = []
+highlight_theme = "ayu-light"
+
+render_emoji = false
+
+external_links_target_blank = false
+external_links_no_follow = false
+external_links_no_referrer = false
+
+# might be bad, feel free to change if it ain't maketh shit dope
+smart_punctuation = true
[extra]
# Put all your custom variables here
A content/_index.md => content/_index.md +5 -0
@@ 0,0 1,5 @@
++++
+title = "Index"
+sort_by = "date"
+template = "index.html"
++++
A content/one/2023-11-20-001.md => content/one/2023-11-20-001.md +9 -0
@@ 0,0 1,9 @@
++++
+slug = "001"
+title = "log 1: I did a thing"
+
+# 'page.date' is in filename
+updated = "2023-11-20"
++++
+
+This is log content.
A content/one/_index.md => content/one/_index.md +8 -0
@@ 0,0 1,8 @@
++++
+weight = 10
+
+title = "Test One"
+sort_by = "date"
+template = "project.html"
+page_template = "log.html"
++++
A content/two/_index.md => content/two/_index.md +8 -0
@@ 0,0 1,8 @@
++++
+weight = 20
+
+title = "Test Two"
+sort_by = "date"
+template = "project.html"
+page_template = "log.html"
++++
M templates/index.html => templates/index.html +6 -0
@@ 2,4 2,10 @@
{% block content %}
<p class="text-slate-900">balls</p>
+
+{% for section_path in section.subsections %}
+{% set section = get_section(path=section_path) %}
+<a href={{ section.permalink }}>{{ section.title }}</a>
+{% endfor %}
+
{% endblock content %}
A templates/log.html => templates/log.html +5 -0
@@ 0,0 1,5 @@
+{% extends "layouts/base.html" %}
+
+{% block content %}
+<p>{{ page.title }}</p>
+{% endblock content %}
A templates/project.html => templates/project.html +13 -0
@@ 0,0 1,13 @@
+{% extends "layouts/base.html" %}
+
+{% block content %}
+<p>{{ section.title }}</p>
+
+{% if section.pages %}
+<p>has logs</p>
+{% for page in section.pages %}
+<a href={{ page.permalink }}>{{ page.title }}</a>
+{% endfor %}
+{% endif %}
+
+{% endblock content %}