simple shortcodes

This commit is contained in:
lynxize 2024-11-12 21:06:52 -07:00
parent 1d39002bb5
commit ba252d7d6a
10 changed files with 209 additions and 9 deletions

View file

@ -2,17 +2,43 @@
<html lang="en">
<head>
<title>lynxize</title>
<meta name="description" content="Very WIP personal site v2">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lynxize</title>
<meta name="color-scheme" content="dark light" />
<link rel="stylesheet" type="text/css" href="/main.css">
</head>
<body>
<section class="section">
<div class="container">
<header>
<nav>
<a href="/">/home</a>
<a href="/about">/about</a>
<a href="/blog">/blog</a>
</nav>
</header>
<div id="new-site-warning">
Hey! This is a new version of my site rewritten from scratch!
I still don't really know what I'm doing with web dev, and this is still <i>very</i> WIP.
Stuff is still very broken/incomplete relative to the old site, but I'm working on it! (Hopefully)
</div>
<div class="content">
{% block content %} {% endblock %}
</div>
</section>
</body>
<footer>
<div>
<hr>
&copy lynxize 2024
-
<a href="https://github.com/lynxize/">GitHub</a>
|
<a rel="me" href="https://mastodon.lynxize.dev/@emilia">Mastodon</a>
</div>
</footer>
</body>
</html>

View file

@ -5,10 +5,8 @@
{{ 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>
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

View file

@ -2,7 +2,17 @@
{% block content %}
<h1 class="title">
This is my blog made with Zola.
New Website!! (WIP)
</h1>
Professional waster of time, purveyor of useless activities, and chronic avoider of productivity.
<!-- br brr brrrrr (bad) -->
<br>
<br>
I write bad code for fun and play games
<br>
<br>
<a href="/about">More about me</a>.
<p><a href="{{ get_url(path='@/blog/_index.md') }}">Posts</a>.</p>
{% endblock content %}

View file

@ -0,0 +1,4 @@
<figure>
<img src="{{ src }}" {% if alt %} alt="{{ alt }}"{% endif %}>
<figcaption>{{ caption }}</figcaption>
</figure>

View file

@ -0,0 +1,3 @@
<div class="insert-important">
{{ body | markdown | safe }}
</div>

View file

@ -0,0 +1,3 @@
<div class="insert-note">
{{ body | markdown | safe }}
</div>

View file

@ -0,0 +1,3 @@
<div class="insert-warning">
{{ body | markdown | safe }}
</div>