twostraws / Ignite

A static site generator for Swift developers.
MIT License
984 stars 34 forks source link

Add image to socials for Static Page #9

Closed Mcrich23 closed 1 month ago

Mcrich23 commented 1 month ago

I have added a new variable to the protocol StaticPage called image that is an optional url to the desired image for social sharing. It hooks into rendering to plug the image url into the Page initialized. By default, it's set to nil.

A fix for issue #8

twostraws commented 1 month ago

Thank you! I might come back to this in the future – if we detect a favicon in the Assets folder, perhaps we should just use it automatically.