mirror of
				https://github.com/privacyguides/blog.privacyguides.org.git
				synced 2025-11-04 07:27:52 +00:00 
			
		
		
		
	Update mkdocs-material & dependencies
This commit is contained in:
		
							
								
								
									
										91
									
								
								theme/layouts/home.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								theme/layouts/home.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,91 @@
 | 
			
		||||
definitions:
 | 
			
		||||
 | 
			
		||||
  - &background_color >-
 | 
			
		||||
    #FFD06F
 | 
			
		||||
 | 
			
		||||
  - &color >-
 | 
			
		||||
    #2d2d2d
 | 
			
		||||
 | 
			
		||||
  - &title_font_family >-
 | 
			
		||||
    Bagnard
 | 
			
		||||
 | 
			
		||||
  - &font_family >-
 | 
			
		||||
    Public Sans
 | 
			
		||||
 | 
			
		||||
  - &page_title >-
 | 
			
		||||
    Privacy Guides Blog
 | 
			
		||||
 | 
			
		||||
  - &page_description >-
 | 
			
		||||
    Publishing timely information, website announcements, and other updates from the team and contributors.
 | 
			
		||||
 | 
			
		||||
  - &og_description >-
 | 
			
		||||
    {{ page.meta.get("description", config.site_description) or "" }}
 | 
			
		||||
 | 
			
		||||
  - &logo >-
 | 
			
		||||
    {{ config.docs_dir }}/{{ config.theme.logo }}
 | 
			
		||||
 | 
			
		||||
# Meta tags
 | 
			
		||||
tags:
 | 
			
		||||
 | 
			
		||||
  # Open Graph
 | 
			
		||||
  og:type: website
 | 
			
		||||
  og:title: *page_title
 | 
			
		||||
  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
 | 
			
		||||
  twitter:description: *page_description
 | 
			
		||||
  twitter:image: "{{ image.url }}"
 | 
			
		||||
 | 
			
		||||
# -----------------------------------------------------------------------------
 | 
			
		||||
# Specification
 | 
			
		||||
# -----------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
# Card size and layers
 | 
			
		||||
size: { width: 1200, height: 630 }
 | 
			
		||||
layers:
 | 
			
		||||
 | 
			
		||||
  # Background
 | 
			
		||||
  - background:
 | 
			
		||||
      color: *background_color
 | 
			
		||||
 | 
			
		||||
  # Logo
 | 
			
		||||
  - size: { width: 64, height: 64 }
 | 
			
		||||
    offset: { x: 64, y: 64 }
 | 
			
		||||
    background:
 | 
			
		||||
      image: *logo
 | 
			
		||||
 | 
			
		||||
  # 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: 192 }
 | 
			
		||||
    offset: { x: 64, y: 320 }
 | 
			
		||||
    typography:
 | 
			
		||||
      content: *page_description
 | 
			
		||||
      overflow: shrink
 | 
			
		||||
      align: start
 | 
			
		||||
      color: *color
 | 
			
		||||
      line:
 | 
			
		||||
        amount: 3
 | 
			
		||||
        height: 1.5
 | 
			
		||||
      font:
 | 
			
		||||
        family: *font_family
 | 
			
		||||
        style: Regular
 | 
			
		||||
@@ -9,61 +9,34 @@ definitions:
 | 
			
		||||
 | 
			
		||||
  - &background_color >-
 | 
			
		||||
    {%- if page.meta.cover -%}
 | 
			
		||||
      #f7f7fcaa
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      #FFD06F
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
  - &color >-
 | 
			
		||||
    {{ layout.color or "#2d2d2d" }}
 | 
			
		||||
    {%- if page.meta.cover -%}
 | 
			
		||||
      #00000000
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      {{ layout.color or "#2d2d2d" }}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
  - &font_family >-
 | 
			
		||||
    {%- if config.theme.language == "he" -%}
 | 
			
		||||
      Suez One
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      Public Sans
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
    Public Sans
 | 
			
		||||
 | 
			
		||||
  - &site_name >-
 | 
			
		||||
    {%- if page.meta.homepage -%}
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      {{ config.site_name }} Blog
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
    {{ config.site_name }} Blog
 | 
			
		||||
 | 
			
		||||
  - &page_title >-
 | 
			
		||||
    {%- if page.meta.homepage -%}
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      {{ page.meta.get("title", page.title) }}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
  - &homepage_title >-
 | 
			
		||||
    {%- if page.meta.homepage -%}
 | 
			
		||||
      Privacy Guides Blog
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
    {{ page.meta.get("title", page.title) }}
 | 
			
		||||
 | 
			
		||||
  - &page_title_with_site_name >-
 | 
			
		||||
    {%- if page.meta.meta_title -%}
 | 
			
		||||
      {{ page.meta.meta_title }}
 | 
			
		||||
    {%- elif not page.meta.homepage -%}
 | 
			
		||||
      {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      {{ page.meta.get("title", page.title) }}
 | 
			
		||||
      {{ page.meta.get("title", page.title) }} - {{ config.site_name }} Blog
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
  - &page_description >-
 | 
			
		||||
    {%- if page.meta.homepage -%}
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
      {{ page.meta.get("description", config.site_description) or "" }}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
  
 | 
			
		||||
  - &homepage_description >-
 | 
			
		||||
    {%- if page.meta.homepage -%}
 | 
			
		||||
      Publishing timely information, website announcements, and other updates from the team and contributors.
 | 
			
		||||
    {%- else -%}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
 | 
			
		||||
  - &og_description >-
 | 
			
		||||
    {{ page.meta.get("description", config.site_description) or "" }}
 | 
			
		||||
 | 
			
		||||
  - &page_icon >-
 | 
			
		||||
@@ -71,7 +44,6 @@ definitions:
 | 
			
		||||
 | 
			
		||||
  - &logo >-
 | 
			
		||||
    {%- if page.meta.cover -%}
 | 
			
		||||
      {{ config.docs_dir }}/assets/brand/SVG/Logo/privacy-guides-logo-notext.svg
 | 
			
		||||
    {%- elif config.theme.logo -%}
 | 
			
		||||
      {{ config.docs_dir }}/{{ config.theme.logo }}
 | 
			
		||||
    {%- endif -%}
 | 
			
		||||
@@ -82,7 +54,7 @@ tags:
 | 
			
		||||
  # Open Graph
 | 
			
		||||
  og:type: website
 | 
			
		||||
  og:title: *page_title_with_site_name
 | 
			
		||||
  og:description: *og_description
 | 
			
		||||
  og:description: *page_description
 | 
			
		||||
  og:image: "{{ image.url }}"
 | 
			
		||||
  og:image:type: "{{ image.type }}"
 | 
			
		||||
  og:image:width: "{{ image.width }}"
 | 
			
		||||
@@ -145,21 +117,6 @@ layers:
 | 
			
		||||
      font:
 | 
			
		||||
        family: *font_family
 | 
			
		||||
        style: Bold
 | 
			
		||||
  
 | 
			
		||||
  # Homepage title
 | 
			
		||||
  - size: { width: 864, height: 256 }
 | 
			
		||||
    offset: { x: 62, y: 192 }
 | 
			
		||||
    typography:
 | 
			
		||||
      content: *homepage_title
 | 
			
		||||
      overflow: shrink
 | 
			
		||||
      align: start
 | 
			
		||||
      color: *color
 | 
			
		||||
      line:
 | 
			
		||||
        amount: 3
 | 
			
		||||
        height: 1.5
 | 
			
		||||
      font:
 | 
			
		||||
        family: Bagnard
 | 
			
		||||
        style: Bold
 | 
			
		||||
 | 
			
		||||
  # Page description
 | 
			
		||||
  - size: { width: 864, height: 96 }
 | 
			
		||||
@@ -174,18 +131,3 @@ layers:
 | 
			
		||||
      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
 | 
			
		||||
		Reference in New Issue
	
	Block a user