start work moving to serene theme

This commit is contained in:
Aaron Honeycutt 2024-11-22 11:01:45 -07:00
parent e112d63d51
commit 06ec754229
78 changed files with 1552 additions and 140 deletions

17
templates/base.html Normal file
View file

@ -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
templates/blog-page.html Normal file
View file

@ -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 %}

43
templates/blog.html Normal file
View file

@ -0,0 +1,43 @@
{% extends "_base.html" %}
{% block page %}blog{% endblock page%}
{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %}
{% block title %}{{ section.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main class="layout-list">
{% if config.extra.blog_categorized %}
{% for category,posts in section.pages | sort(attribute="taxonomies.categories.0") | group_by(attribute="taxonomies.categories.0") %}
{% set category_name = category %}
{% if category is matching("^__[0-9]{2}__") %}
{% set category_name = category | split(pat="") | slice(start=7) | join(sep="") %}
{% endif %}
<div class="category">{{ category_name }}</div>
<div class="post-list categorized">
{% for post in posts %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endfor %}
{% else %}
<div class="post-list">
{% for post in section.pages %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endif %}
</main>
{% include "_footer.html" %}
</div>
{% endblock content %}

7
templates/index.html Normal file
View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
This is my blog made with Zola.
</h1>
{% endblock content %}

48
templates/projects.html Normal file
View file

@ -0,0 +1,48 @@
{% extends "_base.html" %}
{% block page %}projects{% endblock page%}
{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %}
{% block title %}{{ section.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main>
{% set data = load_data(path="content" ~ section.path ~ "data.toml", format="toml") %}
{% for proj in data.project %}
<div class="proj">
<div class="meta">
<div class="name">{{ proj.name }}</div>
<div class="tags">
{% for tag in proj.tags %}
<div><span>#</span>{{ tag }}</div>
{% endfor %}
</div>
<div class="links">
{% for link in proj.links -%}
<a href="{{ link.url }}" target="_blank" rel='noreferrer noopener'>
<span>[</span>{{ link.name }}<span>]</span>
</a>
{% endfor %}
</div>
</div>
<div class="tags-narrow">
{% for tag in proj.tags %}
<div><span>#</span>{{ tag }}</div>
{% endfor %}
</div>
<div class="content">
<div class="desc">{{ proj.desc | trim | markdown | safe }}</div>
{% if proj.img %}
<img src="{{ proj.img }}" alt="{{ proj.name }}" />
{% endif %}
</div>
</div>
{% endfor %}
</main>
{% include "_footer.html" -%}
</div>
{% endblock content %}