summaryrefslogtreecommitdiff
path: root/index.html.j2
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-06-08 19:48:28 +0200
committerJulian T <julian@jtle.dk>2021-06-08 19:48:28 +0200
commitb4bea04224d5d418c148ea9f7badc8ad489e7a17 (patch)
tree79c7d1b8481e8780c60934e362d4e8153b844def /index.html.j2
Added image convertion and page generation script
Diffstat (limited to 'index.html.j2')
-rw-r--r--index.html.j250
1 files changed, 50 insertions, 0 deletions
diff --git a/index.html.j2 b/index.html.j2
new file mode 100644
index 0000000..ba58b70
--- /dev/null
+++ b/index.html.j2
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Jtle images</title>
+ <link rel="icon" href="/favicon.png">
+ <meta name="robots" content="noindex,nofollow">
+ <style>
+ img {
+ width: 50%;
+ }
+ .post {
+ background-color: lightgray;
+ margin-bottom: 20px;
+ padding: 10px;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Billeder taget på forskellige ferier etc, som jeg bruger til baggrund.</p>
+
+ {% if ctx.cgit is not none %}
+ <p>Klik på et billede for at få fuld opløsning.
+ Højere opløsning samt licens kan også findes her <a href="{{ cgit }}/tree">her</a>.</p>
+ {% endif %}
+
+ {% for img in images %}
+ <div class="post">
+ {% if img.taken is not none %}
+ <i>Taget den {{ img.taken }}</i>
+ {% endif %}
+ {% if img.description is not none %}
+ <p>{{ img.description }}</p>
+ {% endif %}
+ {% if img.fullurl is not none %}
+ <a href="{{ img.fullurl }}">
+ <img src="{{ img.scaledpath }}" />
+ </a>
+ {% else %}
+ <img src="{{ img.scaledpath }}" />
+ {% endif %}
+ </div>
+ {% endfor %}
+
+
+ {% if ctx.git is not none %}
+ <p>Bygget fra commit {{ ctx.git }}</p>
+ {% endif %}
+ </body>
+</html>