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

Open graph image path needs to be customisable #813

Closed
kr8n3r opened this issue Jun 21, 2018 · 1 comment
Closed

Open graph image path needs to be customisable #813

kr8n3r opened this issue Jun 21, 2018 · 1 comment
Labels
feature request User requests a new feature

Comments

@kr8n3r
Copy link

kr8n3r commented Jun 21, 2018

At the moment the image in the template is set to
<meta property="og:image" content="/assets/images/govuk-opengraph-image.png">
and it doesnt resolve to the hostname.

As it's outside the head block so you have to define it in the head block again, but then you get two instances.

@NickColley
Copy link
Contributor

A work around for this is to do:

{% block head %}
<meta property="og:image" content="your-path-here/assets/images/govuk-opengraph-image.png">
{% endblock %}

Since this will duplicate and override the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request User requests a new feature
Projects
None yet
Development

No branches or pull requests

2 participants