Skip to content

Commit ec7fb36

Browse files
kouloumosbitschmidty
authored andcommitted
Podcasts: extract podcast note from recap reference logic
extract the timestamp and trascript links in individual file
1 parent df91dea commit ec7fb36

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

_includes/functions/podcast-note.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(<a title="Play this segment of the podcast" onClick="seek('{{reference.timestamp}}')" class="seek">{{reference.timestamp}}</a><noscript>{{reference.timestamp}}</noscript>)
2+
<a href="{{page.reference}}{{reference.slug}}">
3+
<i class="fa fa-link" title="Link to related content"></i>
4+
</a>
5+
{% if reference.has_transcript_section %}
6+
<a href="{{reference.slug}}-transcript">
7+
<i class="fa fa-file-text-o" title="Read this segment of the transcription"></i>
8+
</a>
9+
{% endif %}

_includes/newsletter-references.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,7 @@
1414
<p>
1515
<a href="{{ podcast_slug }}" class="anchor-list-link">●</a>
1616
{{ reference.title }}
17-
(<a title="Play this segment of the podcast" onClick="seek('{{reference.timestamp}}')" class="seek">{{reference.timestamp}}</a><noscript>{{reference.timestamp}}</noscript>)
18-
<a href="{{page.reference}}{{reference.slug}}">
19-
<i class="fa fa-link" title="Link to related content"></i>
20-
</a>
21-
<!--<a onClick="seek('{{include.timestamp}}')" class="seek"><i class="fa
22-
fa-headphones" title="Play this segment of the podcast"></i></a>-->
23-
{% if reference.has_transcript_section %}
24-
<a href="{{reference.slug}}-transcript">
25-
<i class="fa fa-file-text-o" title="Read this segment of the transcription"></i>
26-
</a>
27-
{% endif %}
17+
{% include functions/podcast-note.md %}
2818
</p>
2919
</li>
3020
{% endfor %}

0 commit comments

Comments
 (0)