2023-05-30 17:39:22 -04:00
definitions :
- &background_image >-
{%- if page.meta.cover -%}
theme/assets/img/cover/{{ page.meta.cover }}
{%- else -%}
2023-07-20 12:22:17 -04:00
{{ layout.background_image or "" }}
2023-05-30 17:39:22 -04:00
{%- endif -%}
- &background_color >-
2023-07-20 12:22:17 -04:00
{%- if page.meta.cover -%}
#f7f7fcaa
{%- else -%}
#FFD06F
{%- endif -%}
2023-05-30 17:39:22 -04:00
- &color >-
{{ layout.color or "#2d2d2d" }}
- &title_font_family >-
2023-06-10 12:33:57 -04:00
{%- if page.is_homepage -%}
Bagnard
{%- elif config.theme.language == "he" -%}
2023-05-30 17:39:22 -04:00
Suez One
2023-07-07 04:30:49 -04:00
{%- elif config.theme.language == ("zh-Hant" or "ru") -%}
2023-06-10 12:33:57 -04:00
Noto Serif TC
2023-05-30 17:39:22 -04:00
{%- else -%}
Bagnard
{%- endif -%}
- &font_family >-
{%- if config.theme.language == "he" -%}
Suez One
2023-07-07 04:30:49 -04:00
{%- elif config.theme.language == ("zh-Hant" or "ru") -%}
2023-06-10 12:33:57 -04:00
Noto Sans TC
2023-05-30 17:39:22 -04:00
{%- else -%}
Public Sans
{%- endif -%}
- &site_name >-
{%- if page.is_homepage -%}
{%- else -%}
{{ config.site_name }}
{%- endif -%}
- &page_title >-
{%- if page.is_homepage -%}
Privacy Guides
{%- else -%}
{{ page.meta.get("title", page.title) }}
{%- endif -%}
- &page_title_with_site_name >-
{%- if page.meta.meta_title -%}
{{ page.meta.meta_title }}
{%- elif not page.is_homepage -%}
{{ page.meta.get("title", page.title) }} - {{ config.site_name }}
{%- else -%}
{{ page.meta.get("title", page.title) }}
{%- endif -%}
- &page_description >-
{%- if page.is_homepage -%}
{%- else -%}
{{ page.meta.get("description", config.site_description) or "" }}
{%- endif -%}
- &homepage_description >-
{%- if page.is_homepage -%}
2023-06-10 12:33:57 -04:00
{{ config.extra.homepage_description or "A socially motivated website which provides information about protecting your online data privacy and security." }}
2023-05-30 17:39:22 -04:00
{%- else -%}
{%- endif -%}
- &og_description >-
{{ page.meta.get("description", config.site_description) or "" }}
- &page_icon >-
{{ page.meta.icon or "" }}
- &logo >-
2023-07-20 12:22:17 -04:00
{%- if page.meta.cover -%}
theme/assets/brand/SVG/Logo/privacy-guides-logo-notext.svg
{%- elif config.theme.logo -%}
{{ config.docs_dir }}/{{ config.theme.logo }}
{%- endif -%}
2023-05-30 17:39:22 -04:00
# Meta tags
tags :
# Open Graph
og:type : website
og:title : *page_title_with_site_name
og:description : *og_description
og:image : "{{ image.url }}"
og:image:type : "{{ image.type }}"
og:image:width : "{{ image.width }}"
og:image:height : "{{ image.height }}"
og:url : "{{ page.canonical_url }}"
# Twitter
twitter:card : summary_large_image
twitter.title : *page_title_with_site_name
twitter:description : *page_description
twitter:image : "{{ image.url }}"
# -----------------------------------------------------------------------------
# Specification
# -----------------------------------------------------------------------------
# Card size and layers
size : { width: 1200, height : 630 }
layers :
# Background
- background :
image : *background_image
color : *background_color
# Page icon
- size : { width: 630, height : 630 }
offset : { x: 570, y : 0 }
icon :
value : *page_icon
color : "#00000033"
# Logo
- size : { width: 64, height : 64 }
offset : { x: 64, y : 64 }
background :
image : *logo
# Site name
- size : { width: 768, height : 42 }
offset : { x: 160, y : 78 }
typography :
content : *site_name
color : *color
font :
family : Bagnard
style : Bold
# Page title
- size : { width: 864, height : 256 }
offset : { x: 62, y : 192 }
typography :
content : *page_title
align : start
color : *color
line :
amount : 3
height : 1.5
font :
family : *title_font_family
style : Bold
# Page description
- size : { width: 864, height : 96 }
offset : { x: 64, y : 480 }
typography :
content : *page_description
align : start
color : *color
line :
amount : 3
height : 1.5
font :
family : *font_family
style : Regular
# Homepage description
- size : { width: 864, height : 192 }
offset : { x: 64, y : 320 }
typography :
content : *homepage_description
overflow : shrink
align : start
color : *color
line :
amount : 3
height : 1.5
font :
family : *font_family
style : Regular