-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whether showing 2 or all press items, it should use same layout for v…
…isual consistency and maintenance
- Loading branch information
Showing
3 changed files
with
37 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
<h2 class="txt-2"> Recent mentions in the Press</h2> | ||
<a href="/press">All Press Mentions</a> | ||
{% assign english_berlin_press = site.data.berlin_press | where:"lang", site.lang %} | ||
{% assign posts = site.data.press | concat: english_berlin_press | sort: 'date' | reverse %} | ||
{% for post in posts | limit: 2 %} | ||
<div class="action"> | ||
<b><time datetime="{{ press.date | date: '%Y-%m-%d' }}">{{ post.date | date: '%-d %B %Y' }}</time></b> | ||
<p> | ||
<b>{{post.title}}</b> via {{post.media}} | ||
<sup><a href="{{post.url}}">[1]</a></sup> | ||
</p> | ||
</div> | ||
{% endfor %} | ||
<ul> | ||
{% assign limit = include.limit %} | ||
{% assign berlin_press = site.data.berlin_press | where:"lang",site.lang %} | ||
{% assign posts = site.data.press | concat: berlin_press | sort: 'date' | reverse %} | ||
{% for post in posts limit: limit %} | ||
<article class="marg-b-4 flex items-center"> | ||
<div class="bg-black circ p-3 marg-r-3 lh-1"> | ||
<svg | ||
focusable="false" | ||
class="press-icon" | ||
xmlns="http://www.w3.org/2000/svg" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
x="0px" | ||
y="0px" | ||
viewBox="0 0 512 512" | ||
xml:space="preserve"><g><path d="m464.867 64.266h-81.4v-49.266c0-8.284-6.716-15-15-15h-353.467c-8.284 0-15 6.716-15 15v417.733c0 43.708 35.559 79.267 79.267 79.267 0 0 249.182.001 353.467.001 43.777-.001 79.266-35.49 79.266-79.268v-321.334c0-25.989-21.144-47.133-47.133-47.133zm-43.936 30c-2.1 5.388-3.197 11.176-3.197 17.134v49.267h-34.267v-66.4h37.464zm-341.664 387.733c-27.166 0-49.267-22.1-49.267-49.266v-402.733h323.467v402.733c0 18.625 6.44 35.737 17.193 49.266zm402.733-49.266c0 27.21-22.057 49.267-49.267 49.267-21.978 0-40.588-14.394-46.934-34.267h46.934c8.284 0 15-6.716 15-15s-6.716-15-15-15h-49.267v-34.267h49.267c8.284 0 15-6.716 15-15s-6.716-15-15-15h-49.267v-34.267h49.267c8.284 0 15-6.716 15-15s-6.716-15-15-15h-49.267v-34.267h49.267c8.284 0 15-6.716 15-15s-6.716-15-15-15h-49.267v-34.267h49.267c8.284 0 15-6.716 15-15v-64.265c0-9.359 7.567-17.134 17.133-17.134 9.447 0 17.133 7.687 17.133 17.134v321.333z"/><path d="m304.2 64.266h-224.933c-8.284 0-15 6.716-15 15s6.716 15 15 15h224.933c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m304.2 289.199h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m159.6 289.199h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m304.2 417.733h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m159.6 417.733h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m304.2 353.466h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m159.6 353.466h-80.333c-8.284 0-15 6.716-15 15s6.716 15 15 15h80.333c8.284 0 15-6.716 15-15s-6.716-15-15-15z"/><path d="m304.2 128.532h-224.933c-8.284 0-15 6.716-15 15v96.4c0 8.284 6.716 15 15 15h224.933c8.284 0 15-6.716 15-15v-96.4c0-8.284-6.716-15-15-15zm-15 96.401h-194.933v-66.4h194.933z"/></g></svg> | ||
</div> | ||
<div> | ||
<div> | ||
{{post.media}} — | ||
<time datetime="{{ post.date | date: '%Y-%m-%d' }}"> | ||
{{ post.date | localize: site.lang, '%-d %B %Y' }} | ||
</time> | ||
</div> | ||
<h2> | ||
<a href="{{ post.url }}"> | ||
{{ post.title }} | ||
</a> | ||
</h2> | ||
</div> | ||
</article> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters