-
Notifications
You must be signed in to change notification settings - Fork 1
/
links.html.njk
34 lines (30 loc) · 893 Bytes
/
links.html.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
---
title: 'Links'
layout: default
permalink: /links/index.html
---
<style type="text/css">
{% include "links.css" %}
</style>
<img alt="avatar" class="profile-pic u-photo" src="https://secure.gravatar.com/avatar/17d306899b5f20953440eca1d65d34e0?s=512" height="128" width="128" crossorigin="anonymous"/>
<p>{{ links.description }}</p>
<ul class="pinned-links">
{% for link in links.featured %}
<li>
<a href="{{link.url}}" class="btn-link">{{link.title}}</a>
</li>
{% endfor %}
</ul>
<h3>Recently Saved Links</h3>
<ul class="recent-links">
{%- for link in collections.links | reverse %}
{%- if loop.index < 10 %}
{%- set reference = link.data.responseData %}
<li>
<a href="{% if link.templateContent %}{{link.url}}{% else %}{{reference.url}}{% endif %}">
{{reference.plaintextSummary}}
</a>
</li>
{%- endif %}
{%- endfor %}
</ul>