For small thumbnails, use 180x180 thumbnails scaled down to 150x150. This is so we can get rid of 150x150 images and just use 180x180 for both small and medium size thumbnails. Also fix RSS feeds, XML sitemaps, and Discord embeds to use 360x360 thumbnails instead of 150x150 thumbnails.
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<%# https://support.google.com/webmasters/answer/178636 %>
|
|
<%# https://support.google.com/webmasters/answer/80471 %>
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
|
|
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
|
<% @posts.each do |post| %>
|
|
<url>
|
|
<loc><%= post_url(post) %></loc>
|
|
<lastmod><%= post.updated_at.iso8601 %></lastmod>
|
|
<% if post.visible? %>
|
|
<% if post.is_image? %>
|
|
<image:image>
|
|
<image:loc><%= post.media_asset.variant("original").file_url %></image:loc>
|
|
</image:image>
|
|
<% elsif post.is_video? %>
|
|
<video:video>
|
|
<video:thumbnail_loc><%= post.media_asset.variant("360x360").file_url %></video:thumbnail_loc>
|
|
<video:content_loc><%= post.media_asset.variant("original").file_url %></video:content_loc>
|
|
<video:publication_date><%= post.created_at.iso8601 %></video:publication_date>
|
|
<video:title><%= "Post ##{post.id}" %></video:title>
|
|
<video:description><%= post.tag_string %></video:description>
|
|
<video:family_friendly><%= post.rating == "s" ? "yes" : "no" %></video:family_friendly>
|
|
</video:video>
|
|
<% end %>
|
|
<% end %>
|
|
</url>
|
|
<% end %>
|
|
</urlset>
|