mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
38 lines
965 B
HTML
38 lines
965 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ title }} - Photo Grid</title>
|
|
<style>
|
|
.photo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
grid-gap: 16px;
|
|
padding: 16px;
|
|
}
|
|
.photo-grid img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>{{ title }}</h1>
|
|
<nav>
|
|
{% for crumb in breadcrumbs %}
|
|
<a href="{{ crumb.url }}">{{ crumb.name }}</a>
|
|
{% if not loop.last %} > {% endif %}
|
|
{% endfor %}
|
|
</nav>
|
|
<div class="photo-grid">
|
|
{% for image in images %}
|
|
<a href="{{ image }}">
|
|
<img src="{{ image }}" alt="Photo">
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</body>
|
|
</html>
|