Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Twitter \ OG \ Header Images [Feature Request] #44
First of all, let me say THANK YOU, for this Gorgeous Indieweb enabled Hugo Theme! I came over from Jekyll just to get here :)
Is your feature request related to a problem? Please describe.
Twitter \ OG Cards are not properly populating.
I also would love the option to include a feature image both on the homepage and in the post.
Describe the solution you'd like
I'm new to hugo, so there's likely a popular plugin or include I can insert, but I haven't found one to work, yet.
Describe alternatives you've considered
Thanks again! Look forward to getting to know your theme, and indieweb better!
Thanks for opening this! You're right that generally speaking, meta tags for the site aren't populating properly — I recently discovered https://www.heymeta.com/ as a good way to verify this working on another site, and there are a bunch of things that could be improved.
yes, I've been discovering that there is code for that, but haven't examined it closely.
I'm pretty new to static site development, so I'd eventually dig in to see what could be done with it. I'm still settling into the feel for Hugo.
Just lately I've been seeing what indieweb themes are available for whatever SSG, and seeing where they're at collectively... and let my interest in indieweb drive my heaviest habit: independent web-publishing.
I'm most excited with learning how to make use of all the awesome indieweb markup you ensure each page is wrapped with :D
So, would probably need some tweaking for hugo...
However, I just dropped this include into
Ultimately I will try and see about integrating the header image functionality like Minimal mistakes does, also...
for header images it simply uses the whole width of the page between the header and the content.
Ok, Now I have figured out twitter cards which choose the image from the config file (if params:images is set) and\or the page level if
this is now live on my site:
I didn't include in a pull request, since this example assumes you have title description and image set in the params of config.yml
It's simple and gets the job done
I just wanted to include, because it's not obvious if you don't visit the site, but I didn't just pass that image variable through to the og_image, but also have set a header image on each page.
I don't know enough CSS to make this proper, but I'm happy with it for now.. I feel like I got quite a lot of value from adding a few simple lines of code.
Example on a Post
On the Home Page