Files
bbc-young-reporter/_layouts/sound-article.html
Matthew Grove d41b6e1135 Reduce duplicated code and automate more things
Also change styling for article captions (author/when published)
2020-03-04 09:49:51 +00:00

35 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
{% include head.html %}
{% include article-page-head.html %}
<body>
<!-- cookie notice is included automatically -->
{% include cookie-notice.html %}
<!-- content of navbar is included via jQuery -->
{% include navbar.html %}
<div class="mdc-drawer-app-content">
{% include top-app-bar.html %}
<main class="main-content" id="main-content">
<div class="mdc-top-app-bar--short-fixed-adjust">
{% include article-heading.html %}
<div class="article-content">
<audio controls>
<source src="{{ page.url | relative_url | remove: '.html' | replace: '/', '-' | remove: '-articles-' }}.ogg" type="audio/ogg">
<source src="{{ page.url | relative_url | remove: '.html' | replace: '/', '-' | remove: '-articles-' }}.mp3" type="audio/mpeg">
Sorry, but audio can't be played on your device.
</audio>
<figcaption class="mdc-typography--caption-text">{{ page.audio-caption }}</figcaption>
{{ content }}
</div>
<div class="splitter"></div>
</div>
</main>
{% include footer.html %}
{% include top-scroll-button.html %}
</div>
</body>
</html>