Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support atom_author #9

Closed
simonw opened this issue Apr 30, 2020 · 3 comments
Closed

Support atom_author #9

simonw opened this issue Apr 30, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Apr 30, 2020

https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Ftil.simonwillison.net%2Ftil%2Ffeed.atom%3F_feed_title%3DSimon%2520Willison%2520TIL complains about missing author elements.

@simonw simonw added the enhancement New feature or request label Apr 30, 2020
@simonw
Copy link
Owner Author

simonw commented Apr 30, 2020

https://validator.w3.org/feed/docs/atom.html#person:

<author> and <contributor> describe a person, corporation, or similar entity. It has one required element, name, and two optional elements: uri, email.

<name> conveys a human-readable name for the person.

<uri> contains a home page for the person.

<email> contains an email address for the person.

So I'll add code to spot author_name, author_uri and author_email columns.

simonw added a commit that referenced this issue Apr 30, 2020
simonw added a commit to simonw/til that referenced this issue Apr 30, 2020
@simonw
Copy link
Owner Author

simonw commented Apr 30, 2020

@simonw
Copy link
Owner Author

simonw commented Apr 30, 2020

https://til.simonwillison.net/til/feed.atom?_feed_title=Simon%20Willison%20TIL demonstrates this in action:

Mozilla_Firefox

Defined using this SQL query: https://til.simonwillison.net/til/feed

SELECT
  'tag:til.simonwillison.net,2020-04-30:' || path as atom_id,
  title as atom_title,
  url as atom_link,
  created_utc as atom_updated,
  render_markdown(body) as atom_content_html,
  'Simon Willison' as atom_author_name,
  'https://simonwillison.net/' as atom_author_uri
FROM
  til
order by
  created_utc desc
limit
  15

@simonw simonw closed this as completed Apr 30, 2020
simonw added a commit to simonw/museums that referenced this issue Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant