gethugothemes / dot-hugo

Dot - Hugo Documentation Theme
https://gethugothemes.com/products/dot/?utm_source=dot_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
260 stars 148 forks source link

Added Hugo internal templates for Opengraph support #163

Closed MuluhGodson closed 3 years ago

MuluhGodson commented 3 years ago

Summary

This PR adds support for Open Graph images, article metadata and Twitter cards.

Background

Is your feature request related to a problem? Please describe: An issue was raised in a repository that has this repository as a sub-module. @jwflory Issue Here It concerns adding functionality for open graph images and twitter cards.

Details

Hugo already provides support for this in its templates which i have included in the partials.head file.

Outcome

This PR lets users be able to use basic Front Matter keywords to be able to add things like images, tags and descriptions to their Metatags. opengraph

jwflory commented 3 years ago

Hi, thank you @MuluhGodson! I left comments downstream in https://github.com/unicef/inventory/issues/18#issuecomment-828804936. These changes work and meet a use case I have for this theme. There is also a merge conflict to solve first since this Pull Request was made from an outdated master branch.

somratpro commented 3 years ago

Hello @MuluhGodson

Thank you for your contribution, but we have added improved support for Open Graph images, article metadata, and Twitter cards. Hope you like it.