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

Allow to tag books #1

Closed
9 of 10 tasks
opatry opened this issue Jan 14, 2025 · 0 comments · Fixed by #4
Closed
9 of 10 tasks

Allow to tag books #1

opatry opened this issue Jan 14, 2025 · 0 comments · Fixed by #4
Labels
enhancement New feature or request

Comments

@opatry
Copy link
Owner

opatry commented Jan 14, 2025

A book can have several tags.
Need to decide if the tag should be a symbol or a string (or support both?)

  • Add display label (and potentially other properties like an icon or emoji?) in nanoc.yaml for tags as symbol
  • Adding a tags: field in the front matter
  • Generate a page per /tags/xxx/
    • The page should display books for this tag, as a list of cards (like recent readings)
  • Generate a /tags/ page listing all tags
  • Display tags in book page (tag is clickable and redirect to /tags/xxx/)
  • (Maybe?) Display tags in book card
  • Adjust view-transition.js to properly take into account these URLs (trying to make the pattern more generic)
  • Update API accordingly
  • Example of tags thriller, sci-fi, fantasy, policier, histoire, amour, nature, humour, …
  • OGP specific tags for Book tags
    <meta property="book:tag" content="fantasy">
    <meta property="book:tag" content="policier">
@opatry opatry added the enhancement New feature or request label Jan 14, 2025
@opatry opatry mentioned this issue Feb 5, 2025
22 tasks
@opatry opatry linked a pull request Feb 9, 2025 that will close this issue
@opatry opatry closed this as completed in #4 Feb 9, 2025
opatry added a commit that referenced this issue Feb 9, 2025
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

Successfully merging a pull request may close this issue.

1 participant