chore: filter to query
This commit is contained in:
parent
ed65bb8127
commit
ffea333d55
22 changed files with 24 additions and 73 deletions
|
@ -56,8 +56,7 @@
|
|||
{%- when 'artist' -%}
|
||||
{%- assign ogImage = globals.cdn_url | append: artist.grid.image -%}
|
||||
{%- when 'genre' -%}
|
||||
{%- assign sortedGenreArtists = genre.artists | sortByPlaysDescending: "total_plays" -%}
|
||||
{%- assign ogImage = globals.cdn_url | append: sortedGenreArtists[0].grid.image -%}
|
||||
{%- assign ogImage = globals.cdn_url | append: genre.artists[0].grid.image -%}
|
||||
{%- when 'watching' -%}
|
||||
{%- assign featuredMovie = movies.recentlyWatched | first -%}
|
||||
{%- assign ogImage = globals.cdn_url | append: featuredMovie.grid.backdrop -%}
|
||||
|
@ -98,8 +97,8 @@
|
|||
<link rel="stylesheet" href="/assets/styles/index.css?v={% appVersion %}" type="text/css" />
|
||||
<link rel="canonical" href="{{ fullUrl }}" />
|
||||
<meta property="og:title" content="{{ pageTitle }}" />
|
||||
<meta name="description" content="{{ pageDescription | sanitizeHtml }}" />
|
||||
<meta property="og:description" content="{{ pageDescription | sanitizeHtml }}" />
|
||||
<meta name="description" content="{{ pageDescription }}" />
|
||||
<meta property="og:description" content="{{ pageDescription }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="{{ fullUrl }}" />
|
||||
<meta property="og:image" content="{{ ogImage }}?class=w800" />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "{{ title }}",
|
||||
"home_page_url": "{{ globals.url }}",
|
||||
"feed_url": "{{ permalink | absoluteUrl }}",
|
||||
"feed_url": "{{ globals.url }}{{ permalink }}",
|
||||
"description": "{{ globals.site_description }}",
|
||||
"icon": "{{ globals.cdn_url }}{{ globals.avatar }}?class=w200",
|
||||
"author": {
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
<?xml-stylesheet href="/assets/styles/feed.xsl" type="text/xsl" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<atom:link href="{{ permalink | absoluteUrl }}" rel="self" type="application/rss+xml" />
|
||||
<atom:link href="{{ globals.url }}{{ permalink }}" rel="self" type="application/rss+xml" />
|
||||
{%- assign entries = data -%}
|
||||
<title><![CDATA[{{ title }}]]></title>
|
||||
<description><![CDATA[{{ globals.site_description }}]]></description>
|
||||
<link>{{ permalink | absoluteUrl }}</link>
|
||||
<link>{{ globals.url }}{{ permalink }}</link>
|
||||
<lastBuildDate>{{ 'now' | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
|
||||
<image>
|
||||
<title><![CDATA[{{ title }}]]></title>
|
||||
<link>{{ permalink | absoluteUrl }}</link>
|
||||
<link>{{ globals.url }}{{ permalink }}</link>
|
||||
<url>{{ globals.cdn_url }}{{ globals.avatar }}?class=w200</url>
|
||||
<width>144</width>
|
||||
<height>144</height>
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<atom:link href="{{ permalink | absoluteUrl }}" rel="self" type="application/rss+xml" />
|
||||
<atom:link href="{{ globals.url }}{{ permalink }}" rel="self" type="application/rss+xml" />
|
||||
{%- assign entries = data -%}
|
||||
<title><![CDATA[{{ title }}]]></title>
|
||||
<description><![CDATA[{{ globals.site_description }}]]></description>
|
||||
<link>{{ permalink | absoluteUrl }}</link>
|
||||
<link>{{ globals.url }}{{ permalink }}</link>
|
||||
{% assign firstEntry = entries | first %}
|
||||
<lastBuildDate>{{ 'now' | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
|
||||
<image>
|
||||
<title><![CDATA[{{ title }}]]></title>
|
||||
<link>{{ permalink | absoluteUrl }}</link>
|
||||
<link>{{ globals.url }}{{ permalink }}</link>
|
||||
<url>{{ globals.cdn_url }}{{ globals.avatar }}?class=w200</url>
|
||||
<width>144</width>
|
||||
<height>144</height>
|
||||
|
|
Reference in a new issue