diff options
| author | yuzu-eva <stevenhu@web.de> | 2024-10-25 21:46:28 +0200 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2024-10-25 21:46:28 +0200 |
| commit | 15fc4c739ae07421c0ce1bed9fc05403312a2e86 (patch) | |
| tree | 57654afde34a3974288d7e5a10f9e2a18d6f4d2d /templates | |
| parent | c06148152be80a6536cfe59f7ffe7356bdf75f3c (diff) | |
added about page, changed css, added navbar
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/about.html.j2 | 4 | ||||
| -rw-r--r-- | templates/index.html.j2 | 2 | ||||
| -rw-r--r-- | templates/template.html.j2 | 52 | ||||
| -rw-r--r-- | templates/thought.html.j2 | 4 | ||||
| -rw-r--r-- | templates/thoughts.html.j2 | 5 |
5 files changed, 58 insertions, 9 deletions
diff --git a/templates/about.html.j2 b/templates/about.html.j2 new file mode 100644 index 0000000..8ebc3d7 --- /dev/null +++ b/templates/about.html.j2 @@ -0,0 +1,4 @@ +{% extends "template.html.j2" %} +{% block content %} + {{ content|safe }} +{% endblock %}
\ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 8257ab2..fa4873e 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -1,4 +1,4 @@ {% extends "template.html.j2" %} {% block content %} - {{ content }} + {{ content|safe }} {% endblock %} diff --git a/templates/template.html.j2 b/templates/template.html.j2 index 96f7f9d..4753dfd 100644 --- a/templates/template.html.j2 +++ b/templates/template.html.j2 @@ -2,14 +2,54 @@ <html lang="en"> <head> <link rel='stylesheet' href="{{ prefix }}styles/style.css"> - <title>{{ title }}</title> + <link rel="icon" type="image/png" href="{{ prefix }}images/favicon-32x32.png" sizes="32x32" /> + <link rel="icon" type="image/png" href="{{ prefix }}images/favicon-16x16.png" sizes="16x16" /> + <title>cafebabe.gay :: {{ title }}</title> + + <meta content="{{ title }}" property="og:title" /> + <meta content="https://cafebabe.gay" property="og:url" /> </head> <body> - <div id='wrapper'> - <div id='content'> - {% block content %} - {% endblock %} - </div> + <div id="wrapper"> + <header> + <div id="headerflex"> + <div id="headers"> + <a href="/" id="the_title"><h1>{{ title }}</h1></a> + <nav id="navbar"> + <ul> + <li> + <a href="{{ prefix }}index.html">home</a> + </li> + <li> + <a href="{{ prefix }}thoughts.html">thoughts</a> + </li> + <li> + <a href="{{ prefix }}about.html">about me</a> + </li> + </ul> + </nav> + </div> + </div> + </header> + <div id="content"> + {% block content %} + {% endblock %} + </div> + <footer> + <p>This website does not contain any javascript and will always remain javascript-free.</p> + <div id="footer_banners"> + <p> + <a href="https://jigsaw.w3.org/css-validator/check/referer"> + <img style="border:0;width:88px;height:31px" + src="{{ prefix }}images/vcss-blue.gif" + alt="Valid CSS!" /> + </a> + </p> + <a href="https://www.debian.org/"> + <img src="{{ prefix }}images/powerdebian.gif" alt="Powered By Debian"> + </a> + </div> + </footer> </div> </body> </html> diff --git a/templates/thought.html.j2 b/templates/thought.html.j2 new file mode 100644 index 0000000..fa4873e --- /dev/null +++ b/templates/thought.html.j2 @@ -0,0 +1,4 @@ +{% extends "template.html.j2" %} +{% block content %} + {{ content|safe }} +{% endblock %} diff --git a/templates/thoughts.html.j2 b/templates/thoughts.html.j2 index 17b2797..69734fa 100644 --- a/templates/thoughts.html.j2 +++ b/templates/thoughts.html.j2 @@ -1,5 +1,6 @@ {% extends "template.html.j2" %} {% block content %} - <a href='../index.html'>Back to main page</a> - {{ content }} + <div id="thoughts_list"> + {{ content|safe }} + </div> {% endblock %} |
