Skip to content

Commit 50fc610

Browse files
committed
Add theme
1 parent 1b08b93 commit 50fc610

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

pelicanconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
PLUGINS = ("linkclass",)
4343

4444
# Theme
45-
THEME = "simple"
45+
THEME = "theme/"
4646
# TODO: LINKS/SOCIAL
4747
LINKS = (
4848
("Pelican", "https://getpelican.com/"),

theme/templates/base.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{% extends "!simple/base.html" %}
2+
3+
{% block nav %}
4+
<nav><ul>
5+
NAV
6+
{% for title, link in MENUITEMS %}
7+
<li><a href="{{ link }}">{{ title }}</a></li>
8+
{% endfor %}
9+
{% if DISPLAY_PAGES_ON_MENU %}
10+
{% for p in pages %}
11+
<li><a href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
12+
{% endfor %}
13+
{% endif %}
14+
{% if DISPLAY_CATEGORIES_ON_MENU %}
15+
{% for cat, null in categories %}
16+
<li><a href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
17+
{% endfor %}
18+
{% endif %}
19+
{% endblock %}

0 commit comments

Comments
 (0)