Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Open Graph protocol #59

Open
blue-bird1 opened this issue Feb 21, 2019 · 3 comments
Open

add Open Graph protocol #59

blue-bird1 opened this issue Feb 21, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request future-to-do To be done in the future.

Comments

@blue-bird1
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Telegram and fackbook can't display my blog preview because Open Graph protocol is not supported.

Describe the solution you'd like
A clear and concise description of what you want to happen.
http://ogp.me/. Just add a few meta tags

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@UtkarshVerma
Copy link
Owner

Thanks for the feature request. As of now I don't have the time, but I will look into this when I'll be free, after a couple of months or so.

@UtkarshVerma UtkarshVerma added enhancement New feature or request future-to-do To be done in the future. labels Feb 21, 2019
@UtkarshVerma UtkarshVerma self-assigned this May 29, 2019
@UtkarshVerma
Copy link
Owner

@FAUSheppy
Copy link

It's also very easy to implement ogp manually, I looked at the hugo module and found it to be clumsy and adding a lot of boilerplate.

{{ if isset .Params "cover" }}
  <meta property="og:title" content="{{- .Params.title | plainify -}}" />
  <meta property="og:image" content="{{- .Site.Params.baseURL -}}{{- .Params.cover -}}" />
{{ else }}
    <meta property="og:title" content="{{- .Site.Params.title | plainify -}}" />
    <meta property="og:image" content="{{- .Site.Params.baseURL -}}{{- .Site.Params.cover -}}" />
{{ end }}

FAUSheppy@88859ea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request future-to-do To be done in the future.
Projects
None yet
Development

No branches or pull requests

3 participants