nicer description handling
This commit is contained in:
parent
edb3a73c19
commit
8930a81f48
@ -1,6 +1,6 @@
|
|||||||
base_url = "https://va3zza.com"
|
base_url = "https://va3zza.com"
|
||||||
title = "Evan Pratten"
|
title = "Evan Pratten"
|
||||||
description = "Evan Pratten's website"
|
description = "Evan Pratten is a college student, amateur radio operator, software developer, and more. This is his website."
|
||||||
default_language = "en"
|
default_language = "en"
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta name="description" content="Evan Pratten is a college student, amateur radio operator, software developer, and more. This is his website." />
|
<meta property="og:description" content="{{config.description}}" />
|
||||||
<meta name="og:description" content="Evan Pratten is a college student, amateur radio operator, software developer, and more. This is his website." />
|
<meta property="description" content="{{config.description}}" />
|
||||||
<meta name="og:title" content="Evan Pratten (VA3ZZA)" />
|
<meta name="og:title" content="Evan Pratten (VA3ZZA)" />
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], displayMat
|
|||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
{% if page.description %}
|
{% if page.description %}
|
||||||
<meta property="og:description" content="{{page.description}}" />
|
<meta property="og:description" content="{{page.description}}" />
|
||||||
|
<meta property="description" content="{{page.description}}" />
|
||||||
|
{% else %}
|
||||||
|
<meta property="og:description" content="{{config.description}}" />
|
||||||
|
<meta property="description" content="{{config.description}}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="article:published_time" content="{{page.date}}T00:00:00+00:00" />
|
<meta property="article:published_time" content="{{page.date}}T00:00:00+00:00" />
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
@ -6,6 +6,13 @@
|
|||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta property="og:title" content="{{section.title}}" />
|
<meta property="og:title" content="{{section.title}}" />
|
||||||
|
{% if section.description %}
|
||||||
|
<meta property="og:description" content="{{section.description}}" />
|
||||||
|
<meta property="description" content="{{section.description}}" />
|
||||||
|
{% else %}
|
||||||
|
<meta property="og:description" content="{{config.description}}" />
|
||||||
|
<meta property="description" content="{{config.description}}" />
|
||||||
|
{% endif %}
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user