fix open graph tags
This commit is contained in:
parent
c49bc5a9ec
commit
a635f8d803
34
_config.yml
34
_config.yml
|
@ -1,29 +1,8 @@
|
||||||
# Welcome to Jekyll!
|
|
||||||
#
|
|
||||||
# This config file is meant for settings that affect your whole blog, values
|
|
||||||
# which you are expected to set up once and rarely edit after that. If you find
|
|
||||||
# yourself editing this file very often, consider using Jekyll's data files
|
|
||||||
# feature for the data you need to update frequently.
|
|
||||||
#
|
|
||||||
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
|
||||||
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
|
||||||
#
|
|
||||||
# If you need help with YAML syntax, here are some quick references for you:
|
|
||||||
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
|
|
||||||
# https://learnxinyminutes.com/docs/yaml/
|
|
||||||
#
|
|
||||||
# Site settings
|
|
||||||
# These are used to personalize your new site. If you look in the HTML files,
|
|
||||||
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
|
||||||
# You can create any custom variable you would like, and they will be accessible
|
|
||||||
# in the templates via {{ site.myvariable }}.
|
|
||||||
|
|
||||||
title: Distrust
|
title: Distrust
|
||||||
email: lance@distrust.co
|
email: info@distrust.co
|
||||||
description: >- # this means to ignore newlines until "baseurl:"
|
description: Security without blind trust.
|
||||||
Understand and mitigate security threats others won't see coming.
|
baseurl: ""
|
||||||
baseurl: "" # the subpath of your site, e.g. /blog
|
url: "https://distrust.co"
|
||||||
url: "https://distrust.co" # the base hostname & protocol for your site, e.g. http://example.com
|
|
||||||
banner: "https://distrust.co/assets/base/distrust-logo.png"
|
banner: "https://distrust.co/assets/base/distrust-logo.png"
|
||||||
|
|
||||||
header_pages:
|
header_pages:
|
||||||
|
@ -33,12 +12,11 @@ header_pages:
|
||||||
- company.md
|
- company.md
|
||||||
- contact.md
|
- contact.md
|
||||||
|
|
||||||
style: dark # dark (default), light or hacker
|
style: dark
|
||||||
listen_for_clients_preferred_style: false # false (default) or true
|
listen_for_clients_preferred_style: false
|
||||||
|
|
||||||
footer: '© 2025 Distrust LLC'
|
footer: '© 2025 Distrust LLC'
|
||||||
|
|
||||||
# Build settings
|
|
||||||
theme: jekyll-theme-console
|
theme: jekyll-theme-console
|
||||||
|
|
||||||
# Exclude from processing.
|
# Exclude from processing.
|
||||||
|
|
|
@ -9,34 +9,50 @@
|
||||||
<meta content="{{ site.title }}" property="og:site_name" />
|
<meta content="{{ site.title }}" property="og:site_name" />
|
||||||
|
|
||||||
{% if page.noindex %}
|
{% if page.noindex %}
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
{% endif %} {% if page.title %}
|
{% endif %}
|
||||||
<meta content="{{ page.title }}" property="og:title" />
|
|
||||||
<meta content="article" property="og:type" />
|
{% if page.title %}
|
||||||
|
<meta content="{{ page.title }}" property="og:title" />
|
||||||
|
<meta content="article" property="og:type" />
|
||||||
|
<meta content="{{ site.banner }}" property="og:image" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta content="{{ site.banner }}" property="og:image" />
|
<meta content="website" property="og:type" />
|
||||||
<meta content="{{ site.title }}" property="og:title" />
|
{% endif %}
|
||||||
<meta content="website" property="og:type" />
|
|
||||||
{% endif %} {% if page.summary %}
|
{% if page.summary %}
|
||||||
<meta content="{{ page.summary }}" property="og:description" />
|
<meta content="{{ page.summary }}" property="og:description" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta content="{{ site.description }}" property="og:description" />
|
<meta content="{{ site.description }}" property="og:description" />
|
||||||
{% endif %} {% if page.url %}
|
{% endif %}
|
||||||
<meta content="{{ site.url }}{{ page.url }}" property="og:url" />
|
|
||||||
{% endif %} {% if page.date %}
|
{% if page.url %}
|
||||||
<meta
|
<meta content="{{ site.url }}{{ page.url }}" property="og:url" />
|
||||||
content="{{ page.date | date_to_xmlschema }}"
|
{% endif %}
|
||||||
property="article:published_time"
|
|
||||||
/>
|
{% if page.date %}
|
||||||
<meta content="{{ site.url }}/about/" property="article:author" />
|
<meta
|
||||||
{% endif %} {% if page.thumbnail %}
|
content="{{ page.date | date_to_xmlschema }}"
|
||||||
<meta content="{{ site.url }}{{ page.thumbnail }}" property="og:image" />
|
property="article:published_time"
|
||||||
{% endif %} {% if page.categories %} {% for category in page.categories
|
/>
|
||||||
limit:1 %}
|
<meta content="{{ site.url }}/about/" property="article:author" />
|
||||||
<meta content="{{ category }}" property="article:section" />
|
{% endif %}
|
||||||
{% endfor %} {% endif %} {% if page.tags %} {% for tag in page.tags %}
|
|
||||||
<meta content="{{ tag }}" property="article:tag" />
|
{% if page.thumbnail %}
|
||||||
{% endfor %} {% endif %}
|
<meta content="{{ site.url }}{{ page.thumbnail }}" property="og:image" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.categories %}
|
||||||
|
{% for category in page.categories limit:1 %}
|
||||||
|
<meta content="{{ category }}" property="article:section" />
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.tags %}
|
||||||
|
{% for tag in page.tags %}
|
||||||
|
<meta content="{{ tag }}" property="article:tag" />
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Twitter Cards -->
|
<!-- Twitter Cards -->
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
|
@ -44,27 +60,30 @@
|
||||||
<!--<meta name="twitter:creator" content="@{{ site.share.twitter_username }}" />-->
|
<!--<meta name="twitter:creator" content="@{{ site.share.twitter_username }}" />-->
|
||||||
|
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
<meta name="twitter:title" content="{{ page.title }}" />
|
<meta name="twitter:title" content="{{ page.title }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="twitter:title" content="{{ site.title }}" />
|
<meta name="twitter:title" content="{{ site.title }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.url %}
|
{% if page.url %}
|
||||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
|
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
|
||||||
{% endif %} {% if page.summary %}
|
|
||||||
<meta name="twitter:description" content="{{ page.summary }}" />
|
|
||||||
{% else %}
|
|
||||||
<meta name="twitter:description" content="{{ site.description }}" />
|
|
||||||
{% endif %} {% if page.header-img %}
|
|
||||||
<meta
|
|
||||||
name="twitter:image:src"
|
|
||||||
content="{{ site.url }}{{ page.thumbnail }}"
|
|
||||||
/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.summary %}
|
||||||
|
<meta name="twitter:description" content="{{ page.summary }}" />
|
||||||
|
{% else %}
|
||||||
|
<meta name="twitter:description" content="{{ site.description }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.header-img %}
|
||||||
|
<meta
|
||||||
|
name="twitter:image:src"
|
||||||
|
content="{{ site.url }}{{ page.thumbnail }}"
|
||||||
|
/>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if page.robots %}
|
{% if page.robots %}
|
||||||
<meta name="robots" content="{{page.robots}}" />
|
<meta name="robots" content="{{page.robots}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "/assets/main.css" | relative_url }}">
|
<link rel="stylesheet" type="text/css" href="{{ "/assets/main.css" | relative_url }}">
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue