cntrump / hugo-notepadium

a fast gohugo theme, 100% JavaScript-free.
https://examplesite.lvv.me/
MIT License
332 stars 125 forks source link

Support external post URLs #125

Closed drewhamilton closed 1 year ago

drewhamilton commented 1 year ago

I have a few blog posts on my own blog, and a few blog posts on other blogs. It's nice to be able to link to the latter in my own blog's list of posts.

This allows doing this by introducing external (boolean) and externalUrl (string) parameters that can be added to the top of a post. If external is true, tapping on the preview navigates directly to the externalUrl. It also adds to the end of the preview title, to indicate to readers that the link is external.

The preview still supports showing the title and body text of the local post.