From d1747ed54b0b1926de9c32609578cf6d9834a077 Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Tue, 8 Sep 2020 22:45:08 +0200 Subject: [PATCH] finish --- _config.yml | 4 ++ _includes/seo.html | 138 +++++++++++++++++++++++++++++++++++++++++++- _layouts/post.html | 62 +++++++++++++------- _layouts/track.html | 8 +-- _sass/_layout.scss | 16 ++--- 5 files changed, 195 insertions(+), 33 deletions(-) diff --git a/_config.yml b/_config.yml index 793b5ed..eb07596 100644 --- a/_config.yml +++ b/_config.yml @@ -42,6 +42,10 @@ social: shop_url: https://shop.basspistol.com/?ref=basspistol.com +## Matomo +matomo_site_id: '3' +matomo_container: 'fHO88MfH' + categories: - releases - highlights diff --git a/_includes/seo.html b/_includes/seo.html index a6f5cbf..d4bdce1 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -1,7 +1,141 @@ + +{% if page.collection == 'tracks' %} + -{% if page.collection == 'posts' %} +Play {{ page.common.title | xml_escape }} by {{ page.common.artist | xml_escape }} | {{ site.title | xml_escape }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% elsif page.collection == 'posts' %} +{% if page.category == 'releases' %} + +{% for album in site.albums %} +{% if album.slug == page.album %} + +{% capture namelist %}{% for art in album.artists %}{{ art }}{% unless forloop.last %}, {% endunless %}{% endfor %}{% endcapture %} +{% capture artist %}{{ namelist }}{% endcapture %} + +Play "{{ album.name | xml_escape }}" by {{ artist | xml_escape | uniq }} | {{ site.title | xml_escape }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% for track in album.tracks %}{% endfor %} + + + + + + + + + +{% endif %}{% endfor %} +{% elsif page.category == 'highlights' %} {{ page.title }} | {{ site.title }} @@ -76,7 +210,7 @@ } } - +{% endif %} {% else %} diff --git a/_layouts/post.html b/_layouts/post.html index 6b308b0..c153f9e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -155,25 +155,36 @@ layout: default -
-
- {% if page.previous.url or page.next.url %} -

Check out more

-
+
+ + + {% if page.previous.url or page.next.url %} + + + +
+ {% if page.previous.url %} -

 {{page.previous.title}}

+

+

{{ page.previous.title }}

{{ page.previous.description }}

{% endif %}
{% if page.next.url%} -

{{page.next.title}} 

+

+

{{ page.next.title }}

{{ page.next.description }}

{% endif %}
- {% endif %} -
+ + + +{% endif %} + + +
@@ -310,24 +321,35 @@ layout: default -
-
- {% if page.previous.url or page.next.url %} -

Check out more

-
+
+ + + {% if page.previous.url or page.next.url %} + + + +
+ {% if page.previous.url %} -

 {{page.previous.title}}

+

+

{{ page.previous.title }}

{{ page.previous.description }}

{% endif %}
{% if page.next.url%} -

{{page.next.title}} 

+

+

{{ page.next.title }}

{{ page.next.description }}

{% endif %}
- {% endif %} -
+ + + + {% endif %} + + +
{% endif %} \ No newline at end of file diff --git a/_layouts/track.html b/_layouts/track.html index ee3c62f..3cab43b 100644 --- a/_layouts/track.html +++ b/_layouts/track.html @@ -38,7 +38,7 @@ layout: default

{% assign round_seconds = page.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}

- + {% include streamer.html %} {% include author.html %} @@ -89,20 +89,20 @@ layout: default {% if page.previous.url or page.next.url %} -

Track Navigation

+
{% if page.previous.url %}

 Previous

+ class="fas fa-arrow-left" style="font-size:3em;text-decoration: none;">

{{ page.previous.common.title }}

{{ page.previous.description }}

{% endif %}
{% if page.next.url%} -

Next 

+

{{ page.next.common.title }}

{{ page.next.description }}

{% endif %} diff --git a/_sass/_layout.scss b/_sass/_layout.scss index 097c031..2f5b65f 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -81,20 +81,19 @@ body { background-position: bottom; z-index: 1; h4 { - width: 100%; + width: 95%; height: auto; min-height: 100px; line-height: .85em; letter-spacing: -0.08em; - color: var(--bg-alt); + color: var(--bg); font-size: 12vw; display: inline; opacity: 1; border-radius: var(--border-radius); position: absolute; - top: 0; - left: 0; - + bottom: 0; + transform: rotate(-3deg); } } } @@ -187,12 +186,13 @@ footer { } .post-navigation { - padding: 80px 0 160px 0; + padding: 80px 40px 80px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; + h2 { flex: 0 0 100%; margin-top: 40px; @@ -200,7 +200,7 @@ footer { } .post-nav, .post-nav-next { - flex: 1 0 250px; + flex: 1 0 200px; h4 { font-size: 2em; @@ -209,9 +209,11 @@ footer { } .post-nav { margin: 0 40px 0 0; + text-align: left; } .post-nav-next { margin: 0 0 0 40px; + text-align: right; } }