quarto-dev / quarto-dev/quarto-cli
RSS link problem
Open
@cscheid is already working on this.
Since Feb 29, 2024.
bug
listings
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Hi... I created a custom list, and the content is provided by a YAML file, as specified in the documentation. For example, I have:
- title: "As funções trigonométricas circulares e hiperbólicas"
path: "/trigonometria-hiperbolica"
image: "/trigonometria-hiperbolica/img/capa-trigonometria-hiperbolica.png"
author: "Sandro Guzzo"
description: "Esta obra trata da construção da trigonometria hiperbólica na hipérbole trigonométrica, fazendo a comparação com a trigonometria circular. São abordados aspectos das funções trigonométricas circulares e hiperbólicas, relacionados ao cálculo diferencial e integral."
categories: [Geometria, Matemática, Trigonometria, Sandro Guzzo]
date: 2021-03-22
For each item.
The problem
However, the "link" generated in the XML of the RSS feed shows the link to the page where the listing is located, not where the item is. In other words, it does not take the site-url + item.path as it does with non-customized lists.
Quarto version
I am using Quarto version 1.4.550.
More of my configuration
My ejs:
<ul class="list">
<% let moanInputCount = 0; %>
<% for (const item of items) { %>
<% moanInputCount = moanInputCount + 1; %>
<% let titulo = item.title + (item.subtitle ? ': ' + item.subtitle : ''); %>
<% let tituloURI = encodeURI(titulo); %>
<% let linkCompartilhavel = "https://livro.online" + item.path; %>
<li <%= metadataAttrs(item) %>>
<a href="<%- item.path %>" class="listing-title" title="<%= item.title + (item.subtitle ? ': ' + item.subtitle : '') %>"><%= titulo %></a><span class="listing-author"> | <%= item.author %></span>
<section class="moan-capa-container">
<a href="<%- item.path %>" class="listing-image" title="<%= item.title + (item.subtitle ? ': ' + item.subtitle : '') %>"><img src="<%= item.path %>/img/lombada.jpg" class="moan-lombada" alt="Lombada do Livro <%= item.title %>" /><img src="<%= item.image %>" class="listing-image" alt="Capa do Livro <%= item.title %>" /></a>
<input id="moanInput<%= moanInputCount %>" class="moan-bt-compartilhar" type="checkbox">
<label for="moanInput<%= moanInputCount %>"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92c1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"/></svg> Compartilhar</label>
<ul class="submenuCompartilhar">
<li>
<a href="mailto:?subject=<%= tituloURI %>&body=Veja%20este%20livro%20que%20encontrei%3A%20<%= linkCompartilhavel %>"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none"><path d="M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"/><path fill="currentColor" d="m2.068 5.482l8.875 8.876a1.5 1.5 0 0 0 2.008.103l.114-.103l8.869-8.87c.029.11.048.222.058.337L22 6v12a2 2 0 0 1-1.85 1.995L20 20H4a2 2 0 0 1-1.995-1.85L2 18V6c0-.12.01-.236.03-.35zM20 4c.121 0 .24.01.355.031l.17.039l-8.52 8.52l-8.523-8.522c.11-.03.224-.05.34-.06L4 4z"/></g></svg> E-mail</a>
</li>
<li>
<a href="https://api.whatsapp.com/send?text=<%= tituloURI %>%20Veja%20este%20livro%20que%20encontrei%3A%20<%= linkCompartilhavel %>"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" fill-rule="evenodd"><path d="M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"/><path fill="currentColor" d="M12 2C6.477 2 2 6.477 2 12c0 1.89.525 3.66 1.438 5.168L2.546 20.2A1.01 1.01 0 0 0 3.8 21.454l3.032-.892A9.957 9.957 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2M9.738 14.263c2.023 2.022 3.954 2.289 4.636 2.314c1.037.038 2.047-.754 2.44-1.673a.696.696 0 0 0-.088-.703c-.548-.7-1.289-1.203-2.013-1.703a.711.711 0 0 0-.973.158l-.6.915a.229.229 0 0 1-.305.076c-.407-.233-1-.629-1.426-1.055c-.426-.426-.798-.992-1.007-1.373a.227.227 0 0 1 .067-.291l.924-.686a.712.712 0 0 0 .12-.94c-.448-.656-.97-1.49-1.727-2.043a.695.695 0 0 0-.684-.075c-.92.394-1.716 1.404-1.678 2.443c.025.682.292 2.613 2.314 4.636"/></g></svg> whatsapp</a>
</li>
<li>
<a href="https://facebook.com/sharer/sharer.php?u=<%= linkCompartilhavel %>"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none"><path d="M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"/><path fill="currentColor" d="M13.5 21.888C18.311 21.164 22 17.013 22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 5.013 3.689 9.165 8.5 9.888V15H9a1.5 1.5 0 0 1 0-3h1.5v-2A3.5 3.5 0 0 1 14 6.5h.5a1.5 1.5 0 0 1 0 3H14a.5.5 0 0 0-.5.5v2H15a1.5 1.5 0 0 1 0 3h-1.5z"/></g></svg> Facebook</a>
</li>
<li>
<a href="https://twitter.com/intent/tweet?url=<%= linkCompartilhavel %>"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path d="M1 2h2.5L3.5 2h-2.5z"><animate fill="freeze" attributeName="d" dur="0.4s" values="M1 2h2.5L3.5 2h-2.5z;M1 2h2.5L18.5 22h-2.5z"/></path><path d="M5.5 2h2.5L7.2 2h-2.5z"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5.5 2h2.5L7.2 2h-2.5z;M5.5 2h2.5L23 22h-2.5z"/></path><path d="M3 2h5v0h-5z" opacity="0"><set attributeName="opacity" begin="0.4s" to="1"/><animate fill="freeze" attributeName="d" begin="0.4s" dur="0.4s" values="M3 2h5v0h-5z;M3 2h5v2h-5z"/></path><path d="M16 22h5v0h-5z" opacity="0"><set attributeName="opacity" begin="0.4s" to="1"/><animate fill="freeze" attributeName="d" begin="0.4s" dur="0.4s" values="M16 22h5v0h-5z;M16 22h5v-2h-5z"/></path><path d="M18.5 2h3.5L22 2h-3.5z" opacity="0"><set attributeName="opacity" begin="0.5s" to="1"/><animate fill="freeze" attributeName="d" begin="0.5s" dur="0.4s" values="M18.5 2h3.5L22 2h-3.5z;M18.5 2h3.5L5 22h-3.5z"/></path></g></svg> Twitter</a>
</li>
</ul>
</section>
</li>
<% } %>
</ul>
And inside listing page:
---
title: "Livros Online"
description: "Plataforma de livros da Editora Moan. Conheça nossos livros que estão disponíveis online gratuitamente."
listing:
feed:
type: full
id: moan-livros
template: livros.ejs
contents: livros_online.yml
type: grid
categories: cloud
page-size: 6
sort-ui: [title, date]
sort:
- "date desc"
- "title asc"
filter-ui: true
page-layout: full
---
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.