mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-12-14 13:42:30 +00:00
🐛 Fix meta tags double quotes escaping
This commit is contained in:
parent
2bc15fe0de
commit
7cb2d44377
7 changed files with 14 additions and 14 deletions
|
@ -7,9 +7,9 @@ meta:
|
|||
- property: \\"og:title\\"
|
||||
content: macOS defaults > Category
|
||||
- name: \\"description\\"
|
||||
content: \\"This is a description of the category. It can contain \\\\\\"quotes\\\\\\" and markdown.\\\\n\\\\n- a list item\\"
|
||||
content: \\"This is a description of the category. It can contain "quotes" and markdown.\\\\n\\\\n- a list item\\"
|
||||
- property: \\"og:description\\"
|
||||
content: \\"This is a description of the category. It can contain \\\\\\"quotes\\\\\\" and markdown.\\\\n\\\\n- a list item\\"
|
||||
content: \\"This is a description of the category. It can contain "quotes" and markdown.\\\\n\\\\n- a list item\\"
|
||||
- property: \\"twitter:card\\"
|
||||
content: \\"summary\\"
|
||||
- property: \\"twitter:image\\"
|
||||
|
|
|
@ -290,9 +290,9 @@ meta:
|
|||
- property: \\"og:title\\"
|
||||
content: macOS defaults > Category > Page
|
||||
- name: \\"description\\"
|
||||
content: \\"This is a description of the page. It can contain \\\\\\"quotes\\\\\\" and markdown.\\\\n\\\\n- a list item\\"
|
||||
content: \\"This is a description of the page. It can contain "quotes" and markdown.\\\\n\\\\n- a list item\\"
|
||||
- property: \\"og:description\\"
|
||||
content: \\"This is a description of the page. It can contain \\\\\\"quotes\\\\\\" and markdown.\\\\n\\\\n- a list item\\"
|
||||
content: \\"This is a description of the page. It can contain "quotes" and markdown.\\\\n\\\\n- a list item\\"
|
||||
- property: \\"twitter:card\\"
|
||||
content: \\"summary\\"
|
||||
- property: \\"twitter:image\\"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const Handlebars = require('handlebars')
|
||||
|
||||
Handlebars.registerHelper('json', (string) => {
|
||||
return JSON.stringify(string)
|
||||
Handlebars.registerHelper('metaTag', (string) => {
|
||||
return JSON.stringify(string.replace(/"/g, '"'))
|
||||
})
|
||||
|
|
|
@ -4,9 +4,9 @@ meta:
|
|||
- property: "og:title"
|
||||
content: macOS defaults > {{{ name }}}
|
||||
- name: "description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "og:description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "twitter:card"
|
||||
content: "summary"
|
||||
- property: "twitter:image"
|
||||
|
|
|
@ -4,9 +4,9 @@ meta:
|
|||
- property: "og:title"
|
||||
content: macOS defaults > {{{ name }}}
|
||||
- name: "description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "og:description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "twitter:card"
|
||||
content: "summary"
|
||||
- property: "twitter:image"
|
||||
|
|
|
@ -4,9 +4,9 @@ meta:
|
|||
- property: "og:title"
|
||||
content: macOS defaults > {{{ name }}} > {{{ title }}}
|
||||
- name: "description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "og:description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "twitter:card"
|
||||
content: "summary"
|
||||
- property: "twitter:image"
|
||||
|
|
|
@ -4,9 +4,9 @@ meta:
|
|||
- property: "og:title"
|
||||
content: macOS defaults > {{{ name }}} > {{{ title }}}
|
||||
- name: "description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "og:description"
|
||||
content: {{{ json description }}}
|
||||
content: {{{ metaTag description }}}
|
||||
- property: "twitter:card"
|
||||
content: "summary"
|
||||
- property: "twitter:image"
|
||||
|
|
Loading…
Reference in a new issue