[Git][reproducible-builds/reproducible-website][master] Add slugs to resources page. Thanks to Mattia for the idea.
Chris Lamb
gitlab at salsa.debian.org
Thu Jun 21 16:25:21 CEST 2018
Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website
Commits:
d715c61d by Chris Lamb at 2018-06-21T15:25:11+01:00
Add slugs to resources page. Thanks to Mattia for the idea.
- - - - -
1 changed file:
- resources.html
Changes:
=====================================
resources.html
=====================================
--- a/resources.html
+++ b/resources.html
@@ -25,8 +25,9 @@ order: 2
<div class="eight columns text">
<dl class="talks">
{% for x in site.data.presentations %}
- <dt>
- <em>{{ x.title }}</em><br/>
+ {% assign slug = x.title | append: "-" | append: x.event.date | slugify %}
+ <dt id="{{ slug }}">
+ <em>{{ x.title }}</em> <a href="#{{ slug }}">¶</a><br/>
by {{ x.presented_by }}<br/>
<a href="{{ x.event.url }}">{{ x.event.name }}</a>
• {{ x.event.location }}
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/d715c61d69e682cc1c7e696f9997171f65467fee
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/d715c61d69e682cc1c7e696f9997171f65467fee
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180621/1129e40c/attachment.html>
More information about the rb-commits
mailing list