jsonld support added. og as seperate partials
This commit is contained in:
parent
02dcad911b
commit
f3930d159d
8 changed files with 194 additions and 101 deletions
23
templates/partials/jsonld.html
Normal file
23
templates/partials/jsonld.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
{# <!-- Choosing cover image --> #}
|
||||
{% if HEADER_COVER %}
|
||||
{% set default_cover = SITEURL+"/"+HEADER_COVER %}
|
||||
{% else %}
|
||||
{% set default_cover = SITEURL+"/"+THEME_STATIC_DIR+"/images/home-bg.jpg" %}
|
||||
{% endif %}
|
||||
|
||||
{# <!-- Choosing description --> #}
|
||||
{% if SITESUBTITLE %}
|
||||
{% set description = SITESUBTITLE %}
|
||||
{% else %}
|
||||
{% set description = 'View the blog.' %}
|
||||
{% endif %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "Website",
|
||||
"name": " {{ SITENAME }} ",
|
||||
"url" : "{{ SITEURL }}",
|
||||
"image": "{{ default_cover }}",
|
||||
"description": "{{ description }}"
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue