hugo-PaperMod icon indicating copy to clipboard operation
hugo-PaperMod copied to clipboard

Add `[future]`/`[expired]` to future/expired blog posts

Open pradyunsg opened this issue 2 years ago • 1 comments
trafficstars

Hugo supports building blog-posts that are future-dated/expired posts, with:

  -E, --buildExpired           include expired content
  -F, --buildFuture            include content with publishdate in the future

It would be neat if this theme could add the [future] and [expired] label to them, similar to the [draft] label! :)

pradyunsg avatar Jan 01 '23 18:01 pradyunsg

Hi @pradyunsg , I am thinking of using icons instead of text to represent the status.

This is to overcome translations for these strings in future.

  • Draft - https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aedit_note%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048 image

  • Expired - https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aevent_busy%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048 image

  • Future - https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aevent_upcoming%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048 image

licensing: https://developers.google.com/fonts/faq#can_i_use_any_font_in_a_commercial_product

Originally posted by @adityatelange in https://github.com/adityatelange/hugo-PaperMod/issues/1140#issuecomment-1416743317

adityatelange avatar Feb 04 '23 12:02 adityatelange