aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2021-12-22 16:38:35 -0500
committermjfernez <mjf@mjfer.net>2021-12-22 16:38:35 -0500
commite4b7179c121473be2e53999cc50933521498c7a9 (patch)
tree36d42bef404caca4bb91d2f70f01dd5f020d4d8e /templates/base.html
parent5265b6ffb405f019647fd28ede8458fd6ab40dc5 (diff)
downloadezcms-e4b7179c121473be2e53999cc50933521498c7a9.tar.gz
Removed "/site" appendage. CSS fixes
This commit removes the "/site" appended to every directory and solved the problem of redirecting links correctly by setting 'parent_dir' in the main view context to point to '/' by default. This also changes how titles appear to conform to my sensibilities.
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index 2515795..ec0a41a 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -9,7 +9,8 @@
hacking, forensics, tor, anonymity, internet, society, luddite,
futurism, lulz, fun, poetry, games, vidya, thoughts, random,
homepage, email server, web server, sound, fury, shakespeare,
- nothing, writing, audio, classical music, video game music"/>
+ nothing, writing, audio, classical music, video game music,
+ mjfernez, mjfernet, mike, fernez, mikefernez, michael"/>
<meta name="author" content="mjfernez">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{% block css%}
@@ -23,19 +24,19 @@
<div class="navbar">
<b>|</b> <!-- This makes the bar symmetrical -->
{% for dir in navbar %}
- <b> <a href="/site/{{ dir }}">{{ dir }}/</a> |</b>
+ <b> <a href="/{{ dir }}">{{ dir }}/</a> |</b>
{% endfor %}
<!-- Add icons here -->
<a href="/feed.xml" target="_blank" rel="noopener noreferrer">
<img class="icon" src="/static/rss.svg"></a>&nbsp;
<a href="mailto:mjf@mjfer.net"><img class="icon" src="/static/email.svg"></a>
</div>
- <h2>{{ title }}</h2>
+ <h2 class="center">{{ title }}</h2>
<div class="content">
{% block content %}
{% endblock %}
<h3 class="center">{{ errors }}</h3>
- {% if parent_dir != '/site/' %}
+ {% if parent_dir %}
<h3 class="center"><a href="{{ parent_dir }}">Go up to parent folder ({{ parent_dir }})</a></h3>
{% endif %}
</div>