Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

How to set property with special characters #10

Closed
Overdrivr opened this issue Jan 27, 2019 · 1 comment
Closed

How to set property with special characters #10

Overdrivr opened this issue Jan 27, 2019 · 1 comment

Comments

@Overdrivr
Copy link

How can you set property og:title ?

Tried the following but apparently did not work (The tag is correctly added in my index.html):

:head="{
          'meta[og:title]': { 'og:title': 'FOO'},
      }"
@troxler
Copy link
Owner

troxler commented Jan 27, 2019

The og:title is, by default, already defined by the title property. If you want to change it to a different value, you have to use the proper selector.

The element has to be predefined in your HTML as follows:

<meta property="og:title">

And the correct selector is this one:

:head="{
    'meta[property=\'og:title\']': {content: 'FOO'},
}"

@troxler troxler closed this as completed Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants