chore: remove code duplication and clean up
This commit is contained in:
parent
5a402c4def
commit
694dae0b06
34 changed files with 246 additions and 292 deletions
|
@ -1,4 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
|
"https://keithjgrant.com": "Keith J. Grant",
|
||||||
"https://mxb.dev": "Max Böck",
|
"https://mxb.dev": "Max Böck",
|
||||||
"https://niclake.me": "Nic Lake",
|
"https://niclake.me": "Nic Lake",
|
||||||
"https://www.anildash.com": "Anil Dash",
|
"https://www.anildash.com": "Anil Dash",
|
||||||
|
|
24
package-lock.json
generated
24
package-lock.json
generated
|
@ -9,9 +9,9 @@
|
||||||
"version": "17.4.11",
|
"version": "17.4.11",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.2.3",
|
"@cdransf/api-text": "^1.3.1",
|
||||||
"@cdransf/select-pagination": "^1.1.1",
|
"@cdransf/select-pagination": "^1.3.1",
|
||||||
"@cdransf/theme-toggle": "^1.2.4",
|
"@cdransf/theme-toggle": "^1.3.1",
|
||||||
"@daviddarnes/mastodon-post": "^1.3.0",
|
"@daviddarnes/mastodon-post": "^1.3.0",
|
||||||
"@zachleat/webcare-webshare": "^1.0.3",
|
"@zachleat/webcare-webshare": "^1.0.3",
|
||||||
"minisearch": "^6.3.0",
|
"minisearch": "^6.3.0",
|
||||||
|
@ -1109,9 +1109,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@cdransf/api-text": {
|
"node_modules/@cdransf/api-text": {
|
||||||
"version": "1.2.3",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@cdransf/api-text/-/api-text-1.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/@cdransf/api-text/-/api-text-1.3.1.tgz",
|
||||||
"integrity": "sha512-yojV+sVvWR6ZXtHx/i9RXmJ5NtxSMYWnAg8y9S7djEEjT4QYA29lF8p+cmZqJHv9KIIhfhS+qOZ5u3R2icdFlg=="
|
"integrity": "sha512-Je7TpwpxcmV4H+ApKpX7pOaXFWPF9yPUUHluMXZTOgoKD61pYC4zq7Te/dd6rJyC2tFrVQ8i1XdazSBH+ACP7w=="
|
||||||
},
|
},
|
||||||
"node_modules/@cdransf/eleventy-plugin-tabler-icons": {
|
"node_modules/@cdransf/eleventy-plugin-tabler-icons": {
|
||||||
"version": "1.5.0",
|
"version": "1.5.0",
|
||||||
|
@ -1120,14 +1120,14 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@cdransf/select-pagination": {
|
"node_modules/@cdransf/select-pagination": {
|
||||||
"version": "1.1.1",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@cdransf/select-pagination/-/select-pagination-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@cdransf/select-pagination/-/select-pagination-1.3.1.tgz",
|
||||||
"integrity": "sha512-2GUQSQ++chkKgQYRAIYnj1ugLswMWTzjdDwRh/SsfX7PJpyI8Th9GjDEm0sKS1SyLCjkfj6Bl31f66AlD0cEKw=="
|
"integrity": "sha512-zwBWlX7V6SXlUe9TkJblZF44+2agHRCaCnG/v+Q2Bcgf2DhOQI4qiMOoNBsr09TpkKvQENOqwT2kOycszBcJtA=="
|
||||||
},
|
},
|
||||||
"node_modules/@cdransf/theme-toggle": {
|
"node_modules/@cdransf/theme-toggle": {
|
||||||
"version": "1.2.4",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@cdransf/theme-toggle/-/theme-toggle-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/@cdransf/theme-toggle/-/theme-toggle-1.3.1.tgz",
|
||||||
"integrity": "sha512-t86sAxzbQI7A9LxKndkRVVH14Z+3Cwk2Rl3CclOjmk0xEwwDYa+yG4A4di5mboGoWJ7RMRYtiEiTgsK5QtYSew=="
|
"integrity": "sha512-GmL7sDTiReW0CygnG5sJOW0hx9+yic2WRiWvWSNa7buTOskZ9zCG/lrtuMUxIQCDd5DIE2KR/xX8F6BSHIsCFA=="
|
||||||
},
|
},
|
||||||
"node_modules/@daviddarnes/mastodon-post": {
|
"node_modules/@daviddarnes/mastodon-post": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "17.4.11",
|
"version": "17.5.0",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
"author": "Cory Dransfeldt",
|
"author": "Cory Dransfeldt",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.2.3",
|
"@cdransf/api-text": "^1.3.1",
|
||||||
"@cdransf/select-pagination": "^1.1.1",
|
"@cdransf/select-pagination": "^1.3.1",
|
||||||
"@cdransf/theme-toggle": "^1.2.4",
|
"@cdransf/theme-toggle": "^1.3.1",
|
||||||
"@daviddarnes/mastodon-post": "^1.3.0",
|
"@daviddarnes/mastodon-post": "^1.3.0",
|
||||||
"@zachleat/webcare-webshare": "^1.0.3",
|
"@zachleat/webcare-webshare": "^1.0.3",
|
||||||
"minisearch": "^6.3.0",
|
"minisearch": "^6.3.0",
|
||||||
|
|
|
@ -1,68 +1,68 @@
|
||||||
{%- capture fullUrl -%}{{ meta.url }}{{ page.url }}{%- endcapture -%}
|
{%- assign fullUrl = meta.url | append: page.url -%}
|
||||||
{%- capture pageTitle -%}
|
|
||||||
{%- if schema == 'blog' -%}
|
{%- assign pageTitle = meta.siteName -%}
|
||||||
{{ title }}
|
{%- if schema == 'blog' -%}
|
||||||
{% elsif title %}
|
{%- assign pageTitle = title -%}
|
||||||
{{ title }} • {{ meta.siteName }}
|
{%- elsif title -%}
|
||||||
{% elsif artist.name_string %}
|
{%- assign pageTitle = title | append: ' • ' | append: meta.siteName -%}
|
||||||
Artists • {{ artist.name_string }} • {{ meta.siteName }}
|
{%- elsif artist.name_string -%}
|
||||||
{% elsif book.title %}
|
{%- assign pageTitle = 'Artists • ' | append: artist.name_string | append: ' • ' | append: meta.siteName -%}
|
||||||
Books • {{ book.title }} • {{ meta.siteName }}
|
{%- elsif book.title -%}
|
||||||
{% elsif movie.title %}
|
{%- assign pageTitle = 'Books • ' | append: book.title | append: ' • ' | append: meta.siteName -%}
|
||||||
Movies • {{ movie.title }}{% if movie.rating %} ({{ movie.rating }}){% endif %} • {{ meta.siteName }}
|
{%- elsif movie.title -%}
|
||||||
{% elsif show.title %}
|
{%- assign pageTitle = 'Movies • ' | append: movie.title -%}
|
||||||
Shows • {{ show.title }} • {{ meta.siteName }}
|
{%- if movie.rating -%}
|
||||||
{% elsif genre.name %}
|
{%- assign pageTitle = pageTitle | append: ' (' | append: movie.rating | append: ')' -%}
|
||||||
Music • {{ genre.name }} • {{ meta.siteName }}
|
|
||||||
{% else %}
|
|
||||||
{{ meta.siteName }}
|
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endcapture -%}
|
{%- assign pageTitle = pageTitle | append: ' • ' | append: meta.siteName -%}
|
||||||
{%- capture pageDescription -%}
|
{%- elsif show.title -%}
|
||||||
{%- if schema == 'blog' -%}
|
{%- assign pageTitle = 'Shows • ' | append: show.title | append: ' • ' | append: meta.siteName -%}
|
||||||
{{ post_excerpt | markdown | strip_html }}
|
{%- elsif genre.name -%}
|
||||||
{% elsif artist.description %}
|
{%- assign pageTitle = 'Music • ' | append: genre.name | append: ' • ' | append: meta.siteName -%}
|
||||||
{{ artist.description | truncate: 300 }}
|
{%- endif -%}
|
||||||
{% elsif book.description %}
|
|
||||||
{{ book.description }}
|
{%- assign pageDescription = meta.siteDescription -%}
|
||||||
{% elsif movie.description %}
|
{%- if schema == 'blog' -%}
|
||||||
{% if movie.review %}{{ movie.review | truncate: 300 }}{% else %}{{ movie.description }}{% endif %}
|
{%- assign pageDescription = post_excerpt | markdown | strip_html -%}
|
||||||
{% elsif show.description %}
|
{%- elsif artist.description -%}
|
||||||
{% if show.review %}{{ show.review | truncate: 300 }}{% else %}{{ show.description }}{% endif %}
|
{%- assign pageDescription = artist.description | truncate: 300 -%}
|
||||||
{% elsif genre.description %}
|
{%- elsif book.description -%}
|
||||||
{{ genre.description | markdown | strip_html | truncate: 300 }}
|
{%- assign pageDescription = book.description -%}
|
||||||
{% elsif description %}
|
{%- elsif movie.description -%}
|
||||||
{{ description }}
|
{%- assign pageDescription = movie.review | default: movie.description | truncate: 300 -%}
|
||||||
{% else %}
|
{%- elsif show.description -%}
|
||||||
{{ meta.siteDescription }}
|
{%- assign pageDescription = show.review | default: show.description | truncate: 300 -%}
|
||||||
{%- endif -%}
|
{%- elsif genre.description -%}
|
||||||
{%- endcapture -%}
|
{%- assign pageDescription = genre.description | markdown | strip_html | truncate: 300 -%}
|
||||||
{%- capture ogImage -%}
|
{%- elsif description -%}
|
||||||
{%- if schema == 'blog' -%}
|
{%- assign pageDescription = description -%}
|
||||||
{{ meta.url }}/assets/img/ogi/{{ title | slugifyString }}-preview.png
|
{%- endif -%}
|
||||||
{%- elsif schema == 'music' -%}
|
|
||||||
{{ music.recent.artists[0].image }}
|
{%- assign ogImage = meta.meta_data.opengraph_default -%}
|
||||||
{%- elsif schema == 'artist' -%}
|
{%- case schema -%}
|
||||||
{{ artist.image }}
|
{%- when 'blog' -%}
|
||||||
{%- elsif schema == 'watching' -%}
|
{%- assign ogImage = meta.url | append: '/assets/img/ogi/' | append: title | slugifyString | append: '-preview.png' -%}
|
||||||
|
{%- when 'music' -%}
|
||||||
|
{%- assign ogImage = music.recent.artists[0].image -%}
|
||||||
|
{%- when 'artist' -%}
|
||||||
|
{%- assign ogImage = artist.image -%}
|
||||||
|
{%- when 'watching' -%}
|
||||||
{%- assign featuredMovie = movies.recentlyWatched | first -%}
|
{%- assign featuredMovie = movies.recentlyWatched | first -%}
|
||||||
{{ featuredMovie.backdrop }}
|
{%- assign ogImage = featuredMovie.backdrop -%}
|
||||||
{%- elsif schema == 'books' -%}
|
{%- when 'books' -%}
|
||||||
{%- assign featuredBook = books | bookStatus: 'started' | reverse | first -%}
|
{%- assign featuredBook = books | bookStatus: 'started' | reverse | first -%}
|
||||||
{{ featuredBook.image }}
|
{%- assign ogImage = featuredBook.image -%}
|
||||||
{%- elsif schema == 'book' -%}
|
{%- when 'book' -%}
|
||||||
{{ book.image }}
|
{%- assign ogImage = book.image -%}
|
||||||
{%- elsif schema == 'movie' -%}
|
{%- when 'movie' -%}
|
||||||
{{ movie.backdrop }}
|
{%- assign ogImage = movie.backdrop -%}
|
||||||
{%- elsif schema == 'show' -%}
|
{%- when 'show' -%}
|
||||||
{{ meta.url }}/media/shows/backdrops/backdrop-{{ show.tmdb_id }}.jpg
|
{%- assign ogImage = meta.url | append: '/media/shows/backdrops/backdrop-' | append: show.tmdb_id | append: '.jpg' -%}
|
||||||
{%- elsif schema == 'genre' -%}
|
{%- when 'genre' -%}
|
||||||
{%- assign genreArtist = genre.artists | shuffleArray | first -%}
|
{%- assign genreArtist = genre.artists | shuffleArray | first -%}
|
||||||
{{ genreArtist.image }}
|
{%- assign ogImage = genreArtist.image -%}
|
||||||
{%- else -%}
|
{%- endcase -%}
|
||||||
{{ meta.meta_data.opengraph_default }}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- endcapture -%}
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -95,51 +95,36 @@
|
||||||
<link rel="alternate" href="https://feedpress.me/coryd-artist-charts" title="{{ meta.siteName }}'s artist charts feed" type="application/rss+xml">
|
<link rel="alternate" href="https://feedpress.me/coryd-artist-charts" title="{{ meta.siteName }}'s artist charts feed" type="application/rss+xml">
|
||||||
<link rel="alternate" href="https://feedpress.me/coryd-all" title="{{ meta.siteName }}'s activity feed" type="application/rss+xml">
|
<link rel="alternate" href="https://feedpress.me/coryd-all" title="{{ meta.siteName }}'s activity feed" type="application/rss+xml">
|
||||||
<link type="text/plain" rel="author" href="/humans.txt" />
|
<link type="text/plain" rel="author" href="/humans.txt" />
|
||||||
{% if schema == 'blog' %}
|
<script type="application/ld+json">
|
||||||
<script type="application/ld+json">
|
{
|
||||||
{
|
"@context": "https://schema.org",
|
||||||
"@context": "https://schema.org",
|
"@graph": [
|
||||||
"@type": "BlogPosting",
|
{
|
||||||
"mainEntityOfPage": {
|
"@type": "WebSite",
|
||||||
"@type": "WebPage"
|
"@id": "{{ meta.url }}#website",
|
||||||
|
"url": "{{ meta.url }}",
|
||||||
|
"name": "{{ pageTitle }}",
|
||||||
|
"description": "{{ pageDescription }}",
|
||||||
|
"inLanguage": "{{ meta.locale }}"
|
||||||
},
|
},
|
||||||
"isPartOf": {
|
{%- if schema == 'blog' -%}
|
||||||
"@id": "{{ meta.url }}#website"
|
|
||||||
},
|
|
||||||
"@id": "{{ fullUrl }}",
|
|
||||||
"headline": "{{ pageTitle }}",
|
|
||||||
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
|
|
||||||
"image": "{% if image %}{{ image }}{% else %}{{ meta.meta_data.opengraph_default }}{% endif %}",
|
|
||||||
"inLanguage": "{{ meta.locale }}",
|
|
||||||
"publisher": {
|
|
||||||
"@type": "{{ meta.siteType }}",
|
|
||||||
"name": "{{ meta.author }}",
|
|
||||||
"url": "{{ meta.url }}"
|
|
||||||
},
|
|
||||||
"author": {
|
|
||||||
"@type": "Person",
|
|
||||||
"name": "{{ meta.author }}"
|
|
||||||
},
|
|
||||||
"datePublished": "{{ page.date | isoDateOnly: '.' }}"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{% else %}
|
|
||||||
<script type="application/ld+json">
|
|
||||||
{
|
|
||||||
"@context": "https://schema.org",
|
|
||||||
"@graph": [
|
|
||||||
{
|
{
|
||||||
"@type": "WebSite",
|
"@type": "BlogPosting",
|
||||||
"@id": "{{ meta.url }}#website",
|
"mainEntityOfPage": { "@type": "WebPage" },
|
||||||
"url": "{{ meta.url }}",
|
"isPartOf": { "@id": "{{ meta.url }}#website" },
|
||||||
"name": "{{ pageTitle }}",
|
"@id": "{{ fullUrl }}",
|
||||||
"description": "{% if description %}{{ description }}{% else %}{{ meta.siteDescription }}{% endif %}",
|
"headline": "{{ pageTitle }}",
|
||||||
"inLanguage": "{{ meta.locale }}"
|
"description": "{{ pageDescription }}",
|
||||||
|
"image": "{{ image | default: meta.meta_data.opengraph_default }}",
|
||||||
|
"inLanguage": "{{ meta.locale }}",
|
||||||
|
"publisher": { "@type": "{{ meta.siteType }}", "name": "{{ meta.author }}", "url": "{{ meta.url }}" },
|
||||||
|
"author": { "@type": "Person", "name": "{{ meta.author }}" },
|
||||||
|
"datePublished": "{{ page.date | isoDateOnly: '.' }}"
|
||||||
}
|
}
|
||||||
]
|
{%- endif -%}
|
||||||
}
|
]
|
||||||
</script>
|
}
|
||||||
{% endif %}
|
</script>
|
||||||
<noscript>
|
<noscript>
|
||||||
<style>.client-side {display:none}</style>
|
<style>.client-side {display:none}</style>
|
||||||
<p><img width="1" height="1" src="/7afb285ad050d" /></p>
|
<p><img width="1" height="1" src="/7afb285ad050d" /></p>
|
||||||
|
@ -148,20 +133,12 @@
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
(() => {
|
(() => {
|
||||||
const currentTheme = sessionStorage?.getItem('theme');
|
const currentTheme = sessionStorage?.getItem('theme')
|
||||||
const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||||
const root = document.getElementsByTagName('html')[0];
|
const root = document.getElementsByTagName('html')[0]
|
||||||
if (!currentTheme) sessionStorage?.setItem('theme', (prefersDarkScheme ? 'dark' : 'light'))
|
if (!currentTheme) sessionStorage?.setItem('theme', (prefersDarkScheme ? 'dark' : 'light'))
|
||||||
if (currentTheme === 'dark') {
|
root.classList.add(`theme__${currentTheme || (prefersDarkScheme ? 'dark' : 'light')}`)
|
||||||
root.classList.add('theme__dark')
|
})()
|
||||||
} else if (currentTheme === 'light') {
|
|
||||||
root.classList.add('theme__light')
|
|
||||||
} else if (prefersDarkScheme) {
|
|
||||||
root.classList.add('theme__dark')
|
|
||||||
} else if (!prefersDarkScheme) {
|
|
||||||
root.classList.add('theme__light')
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
</script>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% assign media = data | normalizeMedia %}
|
{% assign media = data.items | default: data | normalizeMedia %}
|
||||||
<div class="media-grid {% if shape == 'square' %}square{% else %}vertical{% endif %}">
|
<div class="media-grid {% if shape == 'square' %}square{% else %}vertical{% endif %}">
|
||||||
{% for item in media limit: count %}
|
{% for item in media limit: count | default: media.size %}
|
||||||
{% assign alt = item.alt | strip | escape %}
|
{% assign alt = item.alt | strip | escape %}
|
||||||
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
|
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
|
||||||
<div class="item-wrapper shadow">
|
<div class="item-wrapper shadow">
|
||||||
|
@ -8,21 +8,22 @@
|
||||||
{% if item.title %}
|
{% if item.title %}
|
||||||
<div class="header">{{ item.title }}</div>
|
<div class="header">{{ item.title }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.subtext %}
|
{% if item.plays %}
|
||||||
<div class="subheader">
|
<div class="subheader">{{ item.plays }} plays</div>
|
||||||
{{ item.subtext }}
|
{% elsif item.subtext %}
|
||||||
</div>
|
<div class="subheader">{{ item.subtext }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{%- capture loadingStrategy -%}
|
{% assign loadingStrategy = loading | default: 'lazy' %}
|
||||||
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
|
|
||||||
{%- endcapture -%}
|
|
||||||
{% if shape == 'square' %}
|
{% if shape == 'square' %}
|
||||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=85"{% if alt %} alt="{{ alt }}"{% endif %} loading="{{ loadingStrategy }}" decoding="async" width="240" height="240" />
|
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=85" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" width="240" height="240" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=85"{% if alt %} alt="{{ alt }}"{% endif %} loading="{{ loadingStrategy }}" decoding="async" width="200" height="307" />
|
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=85" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" width="200" height="307" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% unless count %}
|
||||||
|
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
||||||
|
{% endunless %}
|
22
src/_includes/partials/media/music/chart.liquid
Normal file
22
src/_includes/partials/media/music/chart.liquid
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<div class="music-chart">
|
||||||
|
{% assign items = data.items | default: data %}
|
||||||
|
{% for item in items limit: count | default: items.size %}
|
||||||
|
{%- assign playTotal = playTotal | default: mostPlayed -%}
|
||||||
|
{%- assign percentage = item.plays | calculatePlayPercentage: playTotal -%}
|
||||||
|
<div class="item">
|
||||||
|
<div class="presentation">
|
||||||
|
<div class="count">{{ item.rank | formatNumber }}.</div>
|
||||||
|
<div class="info">
|
||||||
|
<div class="title">
|
||||||
|
<a href="{{ item.url }}">{{ item.title }}</a>
|
||||||
|
</div>
|
||||||
|
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% unless count %}
|
||||||
|
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
||||||
|
{% endunless %}
|
|
@ -1,19 +0,0 @@
|
||||||
<hr class="large-spacing" />
|
|
||||||
<div class="music-chart">
|
|
||||||
{% for item in data.items %}
|
|
||||||
{%- assign percentage = item.plays | calculatePlayPercentage:playTotal -%}
|
|
||||||
<div class="item">
|
|
||||||
<div class="presentation">
|
|
||||||
<div class="count">{{ item.rank | formatNumber }}.</div>
|
|
||||||
<div class="info">
|
|
||||||
<div class="title">
|
|
||||||
<a href="{{ item.url }}">{{ item.title }}</a>
|
|
||||||
</div>
|
|
||||||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<hr class="large-spacing" />
|
|
||||||
<div class="media-grid square">
|
|
||||||
{% for item in data.items %}
|
|
||||||
{% assign alt = item.alt | strip | escape %}
|
|
||||||
<a href="{{ item.url | stripUtm }}" title="{{ alt }}">
|
|
||||||
<div class="item-wrapper shadow">
|
|
||||||
<div class="meta-text">
|
|
||||||
<div class="header">{{ item.title }}</div>
|
|
||||||
<div class="subheader">{{ item.plays }} plays</div>
|
|
||||||
</div>
|
|
||||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=85"{% if alt %} alt="{{ alt }}"{% endif %} loading="eager" decoding="async" width="240" height="240" />
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
|
|
@ -1,4 +1,3 @@
|
||||||
{% if data.size > 0 %}
|
|
||||||
<div class="music-chart">
|
<div class="music-chart">
|
||||||
{% for item in data limit: 10 %}
|
{% for item in data limit: 10 %}
|
||||||
{% capture alt %}{{ item.title | escape }} by {{ item.artist }}{% endcapture %}
|
{% capture alt %}{{ item.title | escape }} by {{ item.artist }}{% endcapture %}
|
||||||
|
@ -17,5 +16,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
|
@ -1,21 +1,19 @@
|
||||||
{% if albumReleases.size > 0 %}
|
<h2 id="album-releases" class="section-header flex-centered">
|
||||||
<h2 id="album-releases" class="section-header flex-centered">
|
{% tablericon "calendar-time" "Anticipated albums" %}
|
||||||
{% tablericon "calendar-time" "Anticipated albums" %}
|
Anticipated albums
|
||||||
Anticipated albums
|
</h2>
|
||||||
</h2>
|
<ul class="link-list">
|
||||||
<ul class="link-list">
|
{% for album in albumReleases %}
|
||||||
{% for album in albumReleases %}
|
<li>
|
||||||
<li>
|
<strong>{{ album.date }}: </strong>
|
||||||
<strong>{{ album.date }}: </strong>
|
<a href="{{ album.url}}" title="{{ album.title | escape}} by {{ album.artist | escape}}">
|
||||||
<a href="{{ album.url}}" title="{{ album.title | escape}} by {{ album.artist | escape}}">
|
{{ album.title }}
|
||||||
{{ album.title }}
|
</a>
|
||||||
</a>
|
<span> by </span>
|
||||||
<span> by </span>
|
<a href="{{ album.artist_url }}">
|
||||||
<a href="{{ album.artist_url }}">
|
{{ album.artist }}
|
||||||
{{ album.artist }}
|
</a>
|
||||||
</a>
|
<span> • <a href="https://coryd.dev/music/genres/{{ album.genre | slugify | downcase }}">{{ album.genre }}</a></span>
|
||||||
<span> • <a href="https://coryd.dev/music/genres/{{ album.genre | slugify | downcase }}">{{ album.genre }}</a></span>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
|
@ -1,19 +0,0 @@
|
||||||
{% if data.size > 0 %}
|
|
||||||
<div class="music-chart">
|
|
||||||
{% for item in data limit: 10 %}
|
|
||||||
{%- assign percentage = item.plays | calculatePlayPercentage: mostPlayed -%}
|
|
||||||
<div class="item">
|
|
||||||
<div class="presentation">
|
|
||||||
<div class="count">{{ item.rank | formatNumber }}.</div>
|
|
||||||
<div class="info">
|
|
||||||
<div class="title">
|
|
||||||
<a href="{{ item.url }}">{{ item.title }}</a>
|
|
||||||
</div>
|
|
||||||
<div class="subtext">{{ item.artist }} • {{ item.plays }} plays</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% if percentage %}
|
{% if percentage %}
|
||||||
<div class="progress-bar__wrapper">
|
<div class="progress-bar-wrapper">
|
||||||
<div style="width:{{ percentage }}" class="progress-bar"></div>
|
<div style="width:{{ percentage }}" class="progress-bar"></div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
|
@ -1,27 +0,0 @@
|
||||||
<div class="watching grid">
|
|
||||||
{% for item in data.items %}
|
|
||||||
{% capture alt %}{{ item.title | escape }} ({{ item.year }}){% endcapture %}
|
|
||||||
<a href="{{ item.url }}">
|
|
||||||
<div class="watching item shadow">
|
|
||||||
<div class="meta-text">
|
|
||||||
{% if item.type == 'movie' %}
|
|
||||||
<div class="header">{{ item.title }}</div>
|
|
||||||
<div class="subheader flex-centered gap-xs">
|
|
||||||
{{ item.year }}
|
|
||||||
{% if rating and item.rating %}
|
|
||||||
<span class="rating"> ({{ item.rating }})</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="header">{{ item.name }}</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{%- capture loadingStrategy -%}
|
|
||||||
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
|
|
||||||
{%- endcapture -%}
|
|
||||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.backdrop }}&fit=cover&w=256&h=144&fm=webp&q=85" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" width="256" height="144" />
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
|
|
@ -1,26 +1,30 @@
|
||||||
<div class="watching grid">
|
<div class="watching grid">
|
||||||
{% for media in mediaItems limit: count %}
|
{% assign items = data.items | default: mediaItems %}
|
||||||
{% capture alt %}{{ media.title | escape }} ({{ media.year }}){% endcapture %}
|
{% for item in items limit: count %}
|
||||||
<a href="{{ media.url }}">
|
{% capture alt %}{{ item.title | escape }} ({{ item.year }}){% endcapture %}
|
||||||
|
<a href="{{ item.url }}">
|
||||||
<div class="watching item shadow">
|
<div class="watching item shadow">
|
||||||
<div class="meta-text">
|
<div class="meta-text">
|
||||||
{% if media.type == 'movie' %}
|
{% if item.type == 'movie' %}
|
||||||
<div class="header">{{ media.title }}</div>
|
<div class="header">{{ item.title }}</div>
|
||||||
<div class="subheader flex-centered gap-xs">
|
<div class="subheader flex-centered gap-xs">
|
||||||
{{ media.year }}
|
{{ item.year }}
|
||||||
{% if rating and media.rating %}
|
{% if rating and item.rating %}
|
||||||
<span class="rating"> ({{ media.rating }})</span>
|
<span class="rating"> ({{ item.rating }})</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="header">{{ media.name }}</div>
|
<div class="header">{{ item.name }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{%- capture loadingStrategy -%}
|
{%- capture loadingStrategy -%}
|
||||||
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
|
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
<img src="https://coryd.dev/.netlify/images/?url={{ media.backdrop }}&fit=cover&w=256&h=144&fm=webp&q=85" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" width="256" height="144" />
|
<img src="https://coryd.dev/.netlify/images/?url={{ item.backdrop }}&fit=cover&w=256&h=144&fm=webp&q=85" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" width="256" height="144" />
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% unless count %}
|
||||||
|
{% render "partials/widgets/paginator.liquid", pagination:data %}
|
||||||
|
{% endunless %}
|
|
@ -1,4 +1,4 @@
|
||||||
{%- capture categoryUrl %}/{{ link | downcase }}/{% endcapture -%}
|
{%- assign categoryUrl = "/" | append: link | downcase -%}
|
||||||
{% if categoryUrl | isLinkActive: page.url %}
|
{% if categoryUrl | isLinkActive: page.url %}
|
||||||
<span class="active {{ class }}" aria-current="page">
|
<span class="active {{ class }}" aria-current="page">
|
||||||
{% if icon %}
|
{% if icon %}
|
||||||
|
@ -9,14 +9,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if icon %}
|
<a class="{% if icon %}{{ icon | downcase }} icon {% endif %}{{ class }}" href="{{ categoryUrl }}">
|
||||||
<a class="{{ icon | downcase }} icon {{ class }}" href="/{{ link | downcase }}">
|
{% if icon %}
|
||||||
{% tablericon icon link %}
|
{% tablericon icon link %}
|
||||||
<span>{{ link }}</span>
|
<span>{{ link }}</span>
|
||||||
</a>
|
{% else %}
|
||||||
{% else %}
|
|
||||||
<a href="/{{ link | downcase }}">
|
|
||||||
{{ link }}
|
{{ link }}
|
||||||
</a>
|
{% endif %}
|
||||||
{% endif %}
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
|
@ -8,7 +8,7 @@
|
||||||
margin-bottom: var(--sizing-md);
|
margin-bottom: var(--sizing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
& .progress-bar__wrapper {
|
& .progress-bar-wrapper {
|
||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
margin-left: var(--sizing-lg);
|
margin-left: var(--sizing-lg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.progress-bar__wrapper {
|
.progress-bar-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: rgba(217, 222, 228, .6);
|
background-color: rgba(217, 222, 228, .6);
|
||||||
border-radius: var(--rounded-lg);
|
border-radius: var(--rounded-lg);
|
||||||
|
|
|
@ -9,7 +9,10 @@ permalink: "/music/albums/three-months/{% if pagination.pageNumber > 0 %}{{ pagi
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.albums.size }} albums</strong> over the last 3 months and most of what I've listened to has been {{ music.threeMonth.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.albums.size }} albums</strong> over the last 3 months and most of what I've listened to has been {{ music.threeMonth.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/three-months/">artists</a> or <a href="/music/tracks/three-months/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/three-months/">artists</a> or <a href="/music/tracks/three-months/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/albums/all-time/{% if pagination.pageNumber > 0 %}{{ paginati
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.allTime.albums.size }} albums</strong> and most of what I listen to is {{ music.allTime.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.allTime.albums.size }} albums</strong> and most of what I listen to is {{ music.allTime.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/all-time/">artists</a> or <a href="/music/tracks/all-time/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/all-time/">artists</a> or <a href="/music/tracks/all-time/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/albums/this-month/{% if pagination.pageNumber > 0 %}{{ pagina
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.month.albums.size }} albums</strong> this month and most of what I've listened to has been {{ music.month.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.month.albums.size }} albums</strong> this month and most of what I've listened to has been {{ music.month.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-month/">artists</a> or <a href="/music/tracks/this-month/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-month/">artists</a> or <a href="/music/tracks/this-month/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/albums/this-week/{% if pagination.pageNumber > 0 %}{{ paginat
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.week.albums.size }} albums</strong> this week and most of what I've listened to has been {{ music.week.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.week.albums.size }} albums</strong> this week and most of what I've listened to has been {{ music.week.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-week/">artists</a> or <a href="/music/tracks/this-week/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-week/">artists</a> or <a href="/music/tracks/this-week/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/artists/three-months/{% if pagination.pageNumber > 0 %}{{ pag
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.artists.size }} artists</strong> over the last 3 months and most of what I've listened to has been {{ music.threeMonth.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.artists.size }} artists</strong> over the last 3 months and most of what I've listened to has been {{ music.threeMonth.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/three-months/">albums</a> or <a href="/music/tracks/three-months/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/three-months/">albums</a> or <a href="/music/tracks/three-months/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/artists/all-time/{% if pagination.pageNumber > 0 %}{{ paginat
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.allTime.artists.size }} artists</strong> and most of what I listen to is {{ music.allTime.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.allTime.artists.size }} artists</strong> and most of what I listen to is {{ music.allTime.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/all-time/">albums</a> or <a href="/music/tracks/all-time/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/all-time/">albums</a> or <a href="/music/tracks/all-time/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/artists/this-month/{% if pagination.pageNumber > 0 %}{{ pagin
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.month.artists.size }} artists</strong> this month and most of what I've listened to has been {{ music.month.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.month.artists.size }} artists</strong> this month and most of what I've listened to has been {{ music.month.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/this-month/">albums</a> or <a href="/music/tracks/this-month/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/this-month/">albums</a> or <a href="/music/tracks/this-month/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/artists/this-week/{% if pagination.pageNumber > 0 %}{{ pagina
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.week.artists.size }} artists</strong> this week and most of what I've listened to has been {{ music.week.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.week.artists.size }} artists</strong> this week and most of what I've listened to has been {{ music.week.genres | sortByPlaysDescending: "plays" | genreStrings: "genre" | mediaLinks: "genre", 5 }}.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/this-week/">albums</a> or <a href="/music/tracks/this-week/">tracks</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/albums/this-week/">albums</a> or <a href="/music/tracks/this-week/">tracks</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/grid.liquid" data:pagination %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/grid.liquid" data:pagination, shape: "square" %}
|
|
@ -78,19 +78,19 @@ schema: music
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="tracks-recent">
|
<div id="tracks-recent">
|
||||||
{% render "partials/media/music/tracks/recent", data:music.recent.tracksChronological %}
|
{% render "partials/media/music/recent", data:music.recent.tracksChronological %}
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden" id="tracks-window">
|
<div class="hidden" id="tracks-window">
|
||||||
{% render "partials/media/music/tracks/chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays %}
|
{% render "partials/media/music/chart.liquid", data:music.week.tracks, mostPlayed:music.week.tracks[0].plays, count: 10 %}
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden" id="tracks-month">
|
<div class="hidden" id="tracks-month">
|
||||||
{% render "partials/media/music/tracks/chart.liquid", data:music.month.tracks, mostPlayed:music.month.tracks[0].plays %}
|
{% render "partials/media/music/chart.liquid", data:music.month.tracks, mostPlayed:music.month.tracks[0].plays, count: 10 %}
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden" id="tracks-three-months">
|
<div class="hidden" id="tracks-three-months">
|
||||||
{% render "partials/media/music/tracks/chart.liquid", data:music.threeMonth.tracks, mostPlayed:music.threeMonth.tracks[0].plays %}
|
{% render "partials/media/music/chart.liquid", data:music.threeMonth.tracks, mostPlayed:music.threeMonth.tracks[0].plays, count: 10 %}
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden" id="tracks-all-time">
|
<div class="hidden" id="tracks-all-time">
|
||||||
{% render "partials/media/music/tracks/chart.liquid", data:music.allTime.tracks, mostPlayed:music.allTime.tracks[0].plays %}
|
{% render "partials/media/music/chart.liquid", data:music.allTime.tracks, mostPlayed:music.allTime.tracks[0].plays, count: 10 %}
|
||||||
</div>
|
</div>
|
||||||
<p><strong class="highlight-text">More:</strong> <a href="/music/tracks/this-week/">This week</a> • <a href="/music/tracks/this-month/">This month</a> • <a href="/music/tracks/three-months/">3 months</a> • <a href="/music/tracks/all-time/">All time</a></p>
|
<p><strong class="highlight-text">More:</strong> <a href="/music/tracks/this-week/">This week</a> • <a href="/music/tracks/this-month/">This month</a> • <a href="/music/tracks/three-months/">3 months</a> • <a href="/music/tracks/all-time/">All time</a></p>
|
||||||
{% render "partials/media/music/releases.liquid", albumReleases:albumReleases %}
|
{% render "partials/media/music/releases.liquid", albumReleases:albumReleases %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/tracks/three-months/{% if pagination.pageNumber > 0 %}{{ pagi
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.totalTracks }} tracks</strong> over the last 3 months and most of what I've listened to has been <strong class="highlight-text">{{ music.threeMonth.genres | listToString: "genre", 5 }}</strong>.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.threeMonth.totalTracks }} tracks</strong> over the last 3 months and most of what I've listened to has been <strong class="highlight-text">{{ music.threeMonth.genres | listToString: "genre", 5 }}</strong>.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/three-months/">artists</a> or <a href="/music/albums/three-months/">albums</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/three-months/">artists</a> or <a href="/music/albums/three-months/">albums</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/chart.liquid" data:pagination, playTotal: music.threeMonth.tracks[0].plays %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/music/chart.liquid" data:pagination, playTotal: music.threeMonth.tracks[0].plays %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/tracks/all-time/{% if pagination.pageNumber > 0 %}{{ paginati
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.allTime.totalTracks }} tracks</strong> and most of what I've listened to has been <strong class="highlight-text">{{ music.allTime.genres | listToString: "genre", 5 }}</strong>.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.allTime.totalTracks }} tracks</strong> and most of what I've listened to has been <strong class="highlight-text">{{ music.allTime.genres | listToString: "genre", 5 }}</strong>.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/all-time/">artists</a> or <a href="/music/albums/all-time/">albums</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/all-time/">artists</a> or <a href="/music/albums/all-time/">albums</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/chart.liquid" data:pagination, playTotal: music.allTime.tracks[0].plays %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/music/chart.liquid" data:pagination, playTotal: music.allTime.tracks[0].plays %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/tracks/this-month/{% if pagination.pageNumber > 0 %}{{ pagina
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.month.totalTracks }} tracks</strong> this month and most of what I've listened to has been <strong class="highlight-text">{{ music.month.genres | listToString: "genre", 5 }}</strong>.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.month.totalTracks }} tracks</strong> this month and most of what I've listened to has been <strong class="highlight-text">{{ music.month.genres | listToString: "genre", 5 }}</strong>.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-month/">artists</a> or <a href="/music/albums/this-month/">albums</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-month/">artists</a> or <a href="/music/albums/this-month/">albums</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/chart.liquid" data:pagination, playTotal: music.month.tracks[0].plays %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/music/chart.liquid" data:pagination, playTotal: music.month.tracks[0].plays %}
|
|
@ -9,7 +9,10 @@ permalink: "/music/tracks/this-week/{% if pagination.pageNumber > 0 %}{{ paginat
|
||||||
schema: music
|
schema: music
|
||||||
---
|
---
|
||||||
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
<a class="back-link-header link-icon flex-centered" href="/music">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||||
|
{% if pagination.pageNumber == 0 %}
|
||||||
<h2 class="page-header">{{ title }}</h2>
|
<h2 class="page-header">{{ title }}</h2>
|
||||||
<p>I've listened to <strong class="highlight-text">{{ music.week.totalTracks }} tracks</strong> this week and most of what I've listened to has been <strong class="highlight-text">{{ music.week.genres | listToString: "genre", 5 }}</strong>.</p>
|
<p>I've listened to <strong class="highlight-text">{{ music.week.totalTracks }} tracks</strong> this week and most of what I've listened to has been <strong class="highlight-text">{{ music.week.genres | listToString: "genre", 5 }}</strong>.</p>
|
||||||
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-week/">artists</a> or <a href="/music/albums/this-week/">albums</a> for this period.</p>
|
<p><strong class="highlight-text">See my</strong> <a href="/music/artists/this-week/">artists</a> or <a href="/music/albums/this-week/">albums</a> for this period.</p>
|
||||||
{% render "partials/media/music/period/chart.liquid" data:pagination, playTotal: music.week.tracks[0].plays %}
|
<hr class="large-spacing" />
|
||||||
|
{% endif %}
|
||||||
|
{% render "partials/media/music/chart.liquid" data:pagination, playTotal: music.week.tracks[0].plays %}
|
|
@ -14,4 +14,4 @@ schema: watching
|
||||||
<p>These are my favorite movies. There are many like them, but these are mine.</p>
|
<p>These are my favorite movies. There are many like them, but these are mine.</p>
|
||||||
<hr class="large-spacing" />
|
<hr class="large-spacing" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% render "partials/media/watching/backdrop-grid-paginated.liquid", data:pagination %}
|
{% render "partials/media/watching/backdrop-grid.liquid", data:pagination %}
|
|
@ -14,4 +14,4 @@ schema: watching
|
||||||
<p>These are my favorite shows. There are many like them, but these are mine.</p>
|
<p>These are my favorite shows. There are many like them, but these are mine.</p>
|
||||||
<hr class="large-spacing" />
|
<hr class="large-spacing" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% render "partials/media/watching/backdrop-grid-paginated.liquid", data:pagination %}
|
{% render "partials/media/watching/backdrop-grid.liquid", data:pagination %}
|
|
@ -14,4 +14,4 @@ schema: watching
|
||||||
<p>These are the movies I've watched recently. There are many like them, but these are mine. (Or well, all the movies I've watched — they're ordered latest watched, descending, hence the recent part).</p>
|
<p>These are the movies I've watched recently. There are many like them, but these are mine. (Or well, all the movies I've watched — they're ordered latest watched, descending, hence the recent part).</p>
|
||||||
<hr class="large-spacing" />
|
<hr class="large-spacing" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% render "partials/media/watching/backdrop-grid-paginated.liquid", data:pagination %}
|
{% render "partials/media/watching/backdrop-grid.liquid", data:pagination %}
|
|
@ -14,4 +14,4 @@ schema: watching
|
||||||
<p>These are the shows I've watched recently. There are many like them, but these are mine. (Or well, all the movies I've watched — they're ordered latest watched, descending, hence the recent part).</p>
|
<p>These are the shows I've watched recently. There are many like them, but these are mine. (Or well, all the movies I've watched — they're ordered latest watched, descending, hence the recent part).</p>
|
||||||
<hr class="large-spacing" />
|
<hr class="large-spacing" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% render "partials/media/watching/backdrop-grid-paginated.liquid", data:pagination %}
|
{% render "partials/media/watching/backdrop-grid.liquid", data:pagination %}
|
Reference in a new issue