mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Change file structure
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{% 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');">
|
||||
<div class="parallax-section article-title-section" data-jarallax data-speed="{{ site.parallax-speed }}" style="background-image: url('/images{{ article_url | remove: '.html' | remove: '/articles' }}.jpg');">
|
||||
<h2 class="mdc-typography--headline3">{{ page.title }}</h2>
|
||||
</div>
|
||||
<figcaption class="mdc-typography--caption-text">{{ page.image-caption }} • © {{ page.copyright }}</figcaption>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% assign article_url = page.url | relative_url %}
|
||||
<figure>
|
||||
<img src="/images/{{ article_url | slice: 1, article_url.size | remove: '.html' | replace: '/', '-' }}--extra-{{ include.id }}.jpg" style="width:100%;">
|
||||
<img src="/images{{ article_url | remove: '.html' | remove: '/articles' }}--extra-{{ include.id }}.jpg" style="width:100%;">
|
||||
<figcaption class="mdc-typography--caption-text">{{ include.caption }} • © {{ include.copyright }}</figcaption>
|
||||
</figure>
|
||||
@@ -1,6 +1,6 @@
|
||||
{% assign article_url = include.article.url | relative_url %}
|
||||
<div class="mdc-card" onclick="window.location='{{ article_url }}';">
|
||||
<div class="mdc-card__media mdc-card__media--16-9" style="background-image: url('/images/{{ article_url | slice: 1, article_url.size | remove: '.html' | replace: '/', '-' }}.jpg');"></div>
|
||||
<div class="mdc-card__media mdc-card__media--16-9" style="background-image: url('/images{{ article_url | remove: '.html' | remove: '/articles' }}.jpg');"></div>
|
||||
<div class="mdc-card-content">
|
||||
<h2 class="mdc-typography--headline6">{{ include.article.title }}</h2>
|
||||
<h3 class="mdc-typography--subtitle2">
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">home</i>
|
||||
<span class="mdc-list-item__text">Home Page</span>
|
||||
</a>
|
||||
{% if site.posts %}
|
||||
{% if site.articles %}
|
||||
<div class="mdc-list-group">
|
||||
<h3 class="mdc-typography--headline7">Articles</h3>
|
||||
{% for article in site.posts %}
|
||||
{% for article in site.articles %}
|
||||
{% assign currentdate = article.date | date: "%Y" %}
|
||||
{% if currentdate != date %}
|
||||
{% if article.url != site.posts.first.url %}
|
||||
{% if article.url != site.articles.first.url %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="mdc-list-group">
|
||||
@@ -34,7 +34,7 @@
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
|
||||
<span class="mdc-list-item__text">{{ article.title }}</span>
|
||||
</a>
|
||||
{% if article.url == site.posts.last.url %}
|
||||
{% if article.url == site.articles.last.url %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user