-
Notifications
You must be signed in to change notification settings - Fork 8
/
publicity.njk
35 lines (32 loc) · 1011 Bytes
/
publicity.njk
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
---
title: Publicity
layout: layouts/base.njk
pagination:
data: publicity
size: 10
alias: items
permalink: "/publicity/{{ pagination.pageNumber + 1 }}/index.html"
eleventyNavigation:
key: כותבים עלינו
order: 2
---
<h1>כותבים עלינו</h1>
{% for story in pagination.items %}
{% set mult = story.links.length > 1 %}
<h2>{{ story.topic }}</h2>
<p>קראו עוד באתר{{ 'י' if mult }}</p>{% if mult %}
<ul>{% endif %}{% for link in story.links %}{% if mult %}
<li>{% endif %}
<a href="{{ link.url | url }}" rel="noreferrer nofollow" target="_blank">{{ link.site }}</a>{% if mult %}
</li>{% endif %}{% endfor %}{% if mult %}
</ul>{% endif %}
{% endfor %}
<rh-pagination>
<span slot="go-to-page">עבור לדף</span>
<ol>{% for href in pagination.hrefs %}
<li>
<a href="{{ href | url }}"{% if loop.index == pagination.pageNumber %}
data-page="current"{% endif %}>{{ loop.index }}</a>
</li>{% endfor %}
</ol>
</rh-pagination>