feat: split out period music pages + nav improvements
This commit is contained in:
parent
9706124c53
commit
d8290fe7db
26 changed files with 143 additions and 98 deletions
|
@ -9,6 +9,8 @@
|
|||
{%- assign pageTitle = 'Artists / ' | append: artist.name_string | append: ' / ' | append: meta.siteName -%}
|
||||
{%- elsif schema == 'music-index' -%}
|
||||
{%- assign pageTitle = 'Music / ' | append: meta.siteName -%}
|
||||
{%- elsif schema == 'music-period' -%}
|
||||
{%- assign pageTitle = 'Music / ' | append: page.title | append: meta.siteName -%}
|
||||
{%- elsif genre.name -%}
|
||||
{%- assign pageTitle = 'Music / ' | append: genre.name | append: ' / ' | append: meta.siteName -%}
|
||||
{%- elsif book.title -%}
|
||||
|
@ -43,7 +45,7 @@
|
|||
{%- assign ogImage = meta.meta_data.opengraph_default -%}
|
||||
{%- case schema -%}
|
||||
{%- when 'music' -%}
|
||||
{%- assign ogImage = 'https://cdn.coryd.dev' | append: music.week.artists[0].image -%}
|
||||
{%- assign ogImage = 'https://cdn.coryd.dev' | append: page.image -%}
|
||||
{%- when 'music-index' -%}
|
||||
{%- assign ogImage = 'https://cdn.coryd.dev' | append: music.week.artists[0].image -%}
|
||||
{%- when 'artist' -%}
|
||||
|
|
|
@ -5,7 +5,7 @@ layout: default
|
|||
{%- capture currentYear -%}{% currentYear %}{%- endcapture -%}
|
||||
{%- assign yearString = year | append: '' -%}
|
||||
{%- assign currentYearString = currentYear | append: '' -%}
|
||||
<a class="back-link-header link-icon flex-centered" href="/books" title="Go back to the books index page">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||
<a class="back-link-header link-icon flex-centered" href="/books" title="Go back to the books index page">{% tablericon "arrow-left" "Go back to the books index page" %} Back to books</a>
|
||||
<h2 class="page-header">{{ title }}</h2>
|
||||
{{ content }}
|
||||
{% if yearString == currentYearString %}
|
||||
|
|
Reference in a new issue