-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoticias.html
40 lines (40 loc) · 1.39 KB
/
noticias.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: default
title: Notas y coberturas
---
<section class="highlighted-news">
{% for highlight in site.noticias %}
{% if highlight.highlight %}
<article onclick="location.href='{{ highlight.url }}';">
<img src="{{highlight.picture}}" alt="{{highlight.header}}">
<div class="preview">
<h2><a href="{{ highlight.url }}">{{ highlight.header }}</a></h2>
<p>{{ highlight.pretext }}</p>
<a href="{{ highlight.url }}">{{ highlight.linktext }}</a>
{% if highlight.mentionPhotographer %}
<p style="margin-top: 12px;">Foto por {{ highlight.photographer }}</p>
{% endif %}
</div>
</article>
{% endif %}
{% endfor %}
</section>
<section class="regular-news">
{% for news in site.noticias reversed %}
{% if news.highlight == false %}
<article onclick="location.href='{{ news.url }}';">
<div class="img-container">
<img src="{{news.picture}}" alt="{{news.header}}">
</div>
<div class="preview">
<h2><a href="{{ news.url }}">{{ news.header }}</a></h2>
<p>{{ news.pretext }}</p>
<a href="{{ news.url }}">{{ news.linktext }}</a>
{% if news.mentionPhotographer %}
<p style="margin-top: 12px;">Foto por {{ news.photographer }}</p>
{% endif %}
</div>
</article>
{% endif %}
{% endfor %}
</section>