mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-11-01 15:33:53 +00:00
Fix background images
This commit is contained in:
1 parent
2812ca5c5b
commit
c7adf5a3b5
3 files changed
+8
-5
No files matched your search
@@ -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