mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Fix background images
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<div class="parallax-section article-title-section" data-jarallax data-speed="{{ site.parallax-speed }}" style="background-image: url('/images/{{ page.url | relative_url | remove: '.html' | replace: '/', '-' | remove: '-articles-' }}.jpg');">
|
||||
{% assign article_url = page.url | relative_url %}
|
||||
<div class="parallax-section article-title-section" data-jarallax data-speed="{{ site.parallax-speed }}" style="background-image: url('/images/{{ article_url | slice: 1, article_url.size | remove: '.html' | replace: '/', '-' }}.jpg');">
|
||||
<h2 class="mdc-typography--headline3">{{ page.title }}</h2>
|
||||
</div>
|
||||
<figcaption class="mdc-typography--caption-text">{{ page.image-caption }} • © {{ page.copyright }}</figcaption>
|
||||
|
||||
Reference in New Issue
Block a user