Skip to content

Conversation

@RichiH
Copy link
Member

@RichiH RichiH commented Jun 10, 2021

Signed-off-by: Richard Hartmann richih@richih.org

Signed-off-by: Richard Hartmann <richih@richih.org>
@juliusv
Copy link
Member

juliusv commented Jun 10, 2021

This puts the following into the feed at https://deploy-preview-1972--prometheus-docs.netlify.app/blog/feed.xml:

<author>
  <name><a href="https://twitter.com/TwitchiH">Richard "RichiH" Hartmann</a></name>
  <uri>https://prometheus.io/blog/</uri>
</author>

It would probably be better to set a separate field for the URL and put that into the <uri> XML tag for the author, rather than just pointing back to the blog.

@RichiH
Copy link
Member Author

RichiH commented Jun 10, 2021 via email

@juliusv
Copy link
Member

juliusv commented Jun 10, 2021

Btw. I have no idea how this works, but my hunch is that https://github.com/prometheus/docs/blob/master/content/blog/feed.erb basically defines defaults for the author name and URL, so maybe if you just set the uri field in your YAML frontmatter (instead of putting the link into the author field), maybe it will just magically already do the right thing. And then in https://github.com/prometheus/docs/blob/master/content/blog/index.html we would just also output the URL as a link properly if it's set.

RichiH added 6 commits July 8, 2021 12:58
Signed-off-by: Richard Hartmann <richih@richih.org>
Signed-off-by: Richard Hartmann <richih@richih.org>
Signed-off-by: Richard Hartmann <richih@richih.org>
Signed-off-by: Richard Hartmann <richih@richih.org>
Signed-off-by: Richard Hartmann <richih@richih.org>
Signed-off-by: Richard Hartmann <richih@richih.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants