Bläddra i källkod

Update templates to new image format

Danilo Gómez Gómez 5 år sedan
förälder
incheckning
f76187dec8
2 ändrade filer med 8 tillägg och 7 borttagningar
  1. 3 3
      layout/work.html
  2. 5 4
      layout/work/poster.html

+ 3 - 3
layout/work.html

@@ -2,12 +2,12 @@
 
 {% set work_selected = True %}
 {% set all_selected = False if no_all_selected else True %}
+{% set work_path = "work/all" %}
 
 {% block main %}
-{% for image in images('work/all') %}
+{% for image in images(work_path) %}
 	<figure>
-		<img src="{{ image.filenames[0] | static }}" alt="Ejemplo">
-		<!-- <svg width="1px" height="1px" style="background-color: gray"></svg> -->
+		<img class="tile" src="{{ image.main or image.filenames[0] | static }}">
 		<figcaption class="hbox">
 			<div class="caption">
 				<h1>{{ image.name }} / {{ image.year }}</h1>

+ 5 - 4
layout/work/poster.html

@@ -1,15 +1,16 @@
 {% extends "_work_no_all.html"%}
 
 {% set poster_selected = True %}
+{% set work_path = "work/poster" %}
 
 {% block main %}
-{% for _ in range(15) %}
+{% for image in images("work/poster") %}
 	<figure>
-		<svg width="1px" height="1.4px" style="background-color: gray"></svg>
+		<img class="tile" src="{{ image.main or image.filenames[0] | static }}">
 		<figcaption class="hbox">
 			<div class="caption">
-				<h1>Work Name Here / Year</h1>
-				poster
+				<h1>{{ image.name }} / {{ image.year }}</h1>
+				{{ image.category }}
 			</div>
 		</figcaption>
 	</figure>