Skip to content

Commit a21ae21

Browse files
author
Fabian Morón Zirfas
committed
feat(gallery): more refactoring of gallery
1 parent f7af730 commit a21ae21

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

_source/_layouts/gallery-item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44
<section>
5-
<h1>{{page.title}}</h1>
5+
<h1 class="textshrink">{{page.title}}</h1>
66
<p>{{page.description}}</p>
77
{%- for author in page.authors -%}
88
{%- if author.url != null -%}

_source/gallery/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: admin
3+
layout: default
4+
title: gallery
5+
order: 6
6+
---
7+
8+
<h1>Gallery</h1>
9+
<section id="gallery-overview">
10+
{% for page in site.pages %}
11+
{% if page.layout == 'gallery-item' %}
12+
<a href="{{page.url}}">
13+
<div class="gallery-overview-item">
14+
<h2>{{page.title}}</h2>
15+
<img src="{{page.url}}/thumbnail.jpg" alt="{{page.title}} Thumbnail">
16+
<p>{{page.description}}</p>
17+
</div>
18+
</a>
19+
{% endif %}
20+
{% endfor %}
21+
</section>

_source/gallery/index.markdown

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)