aboutsummaryrefslogtreecommitdiff
path: root/zola-static/templates
diff options
context:
space:
mode:
Diffstat (limited to 'zola-static/templates')
-rw-r--r--zola-static/templates/index.html18
-rw-r--r--zola-static/templates/project-list.html6
-rw-r--r--zola-static/templates/project-page.html3
3 files changed, 15 insertions, 12 deletions
diff --git a/zola-static/templates/index.html b/zola-static/templates/index.html
index fd4d508..3c83240 100644
--- a/zola-static/templates/index.html
+++ b/zola-static/templates/index.html
@@ -9,21 +9,13 @@
</ul>
</div>
<div class="index-section">
- <h2>Articles</h2>
- <ul>
- <li><a href="{{ get_url(path='@/blog/sdl-native-wayland.md') }}">Forcing SDL to use Wayland on Wayland</a></li>
- <li><a href="{{ get_url(path='@/blog/my-emacs-tips-and-tricks.md') }}">My Emacs Tips and Tricks</a></li>
- <li><a href="{{ get_url(path='@/blog/emacs-garbage-collection.md') }}">Solving Emacs Garbage Collection Stutters</a></li>
- </ul>
-</div>
-<div class="index-section">
<h2>Projects</h2>
<ul>
<li><a href="{{ get_url(path='@/projects/connection-machine.md') }}">Connection Machine Logic Simulator</a></li>
<li><a href="{{ get_url(path='@/projects/swenu.md') }}">Swenu Wayland Menu</a></li>
<li><a href="{{ get_url(path='@/projects/string-sniper.md') }}">Ghidra String Sniper</a></li>
- <li><a href="{{ get_url(path='@/projects/_index.md') }}">View More</a></li>
</ul>
+ <b><a href="{{ get_url(path='@/projects/_index.md') }}">View More</a></b>
</div>
<div class="index-section">
<h2>Links</h2>
@@ -32,5 +24,13 @@
<li><a href="https://portfolio.jackjamison.net">Old portfolio (haven't migrated here yet)</a></li>
</ul>
</div>
+<div class="index-section">
+ <h2>Articles</h2>
+ <ul>
+ <li><a href="{{ get_url(path='@/blog/sdl-native-wayland.md') }}">Forcing SDL to use Wayland on Wayland</a></li>
+ <li><a href="{{ get_url(path='@/blog/my-emacs-tips-and-tricks.md') }}">My Emacs Tips and Tricks</a></li>
+ <li><a href="{{ get_url(path='@/blog/emacs-garbage-collection.md') }}">Solving Emacs Garbage Collection Stutters</a></li>
+ </ul>
+</div>
<p class="footer-text"><b><a href="{{ get_url(path='@/blog/_index.md') }}">All articles sorted by date</a>&#8226<a href="{{ get_url(path='@/the-archive.md') }}">Archive</a></b></p>
{% endblock content %}
diff --git a/zola-static/templates/project-list.html b/zola-static/templates/project-list.html
index eb66dad..50a9677 100644
--- a/zola-static/templates/project-list.html
+++ b/zola-static/templates/project-list.html
@@ -5,11 +5,11 @@
<h1 class="title">
{{ 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>
+ <div class="index-section project-section">
+ <a href="{{ page.permalink | safe }}"><h2>{{ page.title }}</h2><img src="/images/projects/{{ page.extra.cover }}" alt="{{ page.title }}"></a>
+ </div>
{% endfor %}
-</ul>
{% endblock content %}
diff --git a/zola-static/templates/project-page.html b/zola-static/templates/project-page.html
index ac332ef..f152c2b 100644
--- a/zola-static/templates/project-page.html
+++ b/zola-static/templates/project-page.html
@@ -19,4 +19,7 @@
{% block content %}
<img src="/images/projects/{{ page.extra.cover }}" alt="{{ page.title }}">
{{ page.content | safe }}
+{% if page.extra.youtube_id %}
+<iframe class="youtube" src="https://www.youtube.com/embed/{{ page.extra.youtube_id }}" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
+{% endif %}
{% endblock content %}