josephhutch / aether

A responsive and clean Hugo theme for blogs
MIT License
146 stars 70 forks source link

[Feature Request] add featuredImageLink #34

Closed gadelkareem closed 5 years ago

gadelkareem commented 5 years ago

It would be great if we can add a link to the main featured image sometimes

josephhutch commented 5 years ago

Where would you like the link to appear? I'm assuming you are suggesting making featuredImageLink a front matter parameter. Can you explain why you wouldn't want to add the link manually?

gadelkareem commented 5 years ago

I am actually not sure how to add it manually. Is there a way to add anchor link to the featured image?

josephhutch commented 5 years ago

Sorry, I am a little lost. Can you clarify what you are trying to do? Are you trying to make the image itself a link, or are you trying to add a text link to the image?

gadelkareem commented 5 years ago

I meant something like

< a href="{{featuredImageLinkURL}}"><img src="{{featuredImage}}" /></a>

So the image would have a link since it is the first big element on the post.

josephhutch commented 5 years ago

What would be the use case for this?

gadelkareem commented 5 years ago

I use the feature with Wordpress to display a bigger image like in https://gadelkareem.com/2018/10/23/deploy-a-docker-registry-with-letsencrypt-certificates-on-ubuntu-18-04/ but generally it could be useful to link to another page.

josephhutch commented 5 years ago

Thank you for the suggestion but I don't think this would fit in with the simplicity of the theme. If you have any other feature requests, I'm happy to hear them.