summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/image.html9
-rw-r--r--app/templates/index.html6
2 files changed, 3 insertions, 12 deletions
diff --git a/app/templates/image.html b/app/templates/image.html
deleted file mode 100644
index c070faf..0000000
--- a/app/templates/image.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-<head>
- <title>Item Details</title>
- <link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet">
-</head>
-<body>
- <h1><a href="{{ url_for('read_item', id=id) }}">Item ID: {{ id }}</a></h1>
-</body>
-</html> \ No newline at end of file
diff --git a/app/templates/index.html b/app/templates/index.html
index 991088a..a489c5e 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://dbolger.dev/assets/css/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
- <link rel="stylesheet" href="{{ url_for('static', path='index.css') }}">
+ <link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
<title>Dylan's Photo Blog</title>
</head>
@@ -31,8 +31,8 @@
<main class="gallery">
{% for img in images %}
<div class="gallery-item">
- <a href="{{ url_for('photos', path=img) }}">
- <img src="{{ url_for('photos', path=img) }}" alt="" loading="lazy">
+ <a href="{{ url_for('static', filename=img) }}">
+ <img src="{{ url_for('static', filename=img) }}" alt="" loading="lazy">
</a>
</div>
{% endfor %}