fix meta tags in docs and initfiles

This commit is contained in:
facundoolano 2024-02-27 08:51:53 -03:00
parent e344dcb6ad
commit a07d4af5c2
3 changed files with 15 additions and 14 deletions

View file

@ -15,17 +15,17 @@
<meta name="author" content="{{site.config.author}}"> <meta name="author" content="{{site.config.author}}">
<meta property="og:article:author" content="{{ site.config.author }}"> <meta property="og:article:author" content="{{ site.config.author }}">
<meta property="og:site_name" content="{{ site.config.title }}"> <meta property="og:site_name" content="{{ site.config.name }}">
{% if page.title %} {% if page.title %}
<meta property="og:title" content="{{ page.title|default: site.config.title }}"> <meta property="og:title" content="{{ page.title|default: site.config.name }}">
<meta name="twitter:title" content="{{ page.title|default: site.config.title }}"> <meta name="twitter:title" content="{{ page.title|default: site.config.name }}">
{% endif %} {% endif %}
{% if page.excerpt %} {% if page.excerpt or site.config.description %}
<meta name="description" content="{{ page.excerpt }}"> <meta name="description" content="{{ page.excerpt | default:site.config.description }}">
<meta name="og:description" content="{{ page.excerpt }}"> <meta name="og:description" content="{{ page.excerpt | default:site.config.description }}">
<meta name="twitter:description" content="{{ page.excerpt }}"> <meta name="twitter:description" content="{{ page.excerpt | default:site.config.description }}">
{% endif %} {% endif %}
{% if page.layout == "post" %} {% if page.layout == "post" %}

View file

@ -1,3 +1,4 @@
name: "jorge" name: "jorge"
author: "Facundo Olano" author: "Facundo Olano"
url: "https://jorge.olano.dev" url: "https://jorge.olano.dev"
description: "jorge is a personal site generator with org-mode support."

View file

@ -15,17 +15,17 @@
<meta name="author" content="{{site.config.author}}"> <meta name="author" content="{{site.config.author}}">
<meta property="og:article:author" content="{{ site.config.author }}"> <meta property="og:article:author" content="{{ site.config.author }}">
<meta property="og:site_name" content="{{ site.config.title }}"> <meta property="og:site_name" content="{{ site.config.name }}">
{% if page.title %} {% if page.title %}
<meta property="og:title" content="{{ page.title|default: site.config.title }}"> <meta property="og:title" content="{{ page.title|default: site.config.name }}">
<meta name="twitter:title" content="{{ page.title|default: site.config.title }}"> <meta name="twitter:title" content="{{ page.title|default: site.config.name }}">
{% endif %} {% endif %}
{% if page.excerpt %} {% if page.excerpt or site.config.description %}
<meta name="description" content="{{ page.excerpt }}"> <meta name="description" content="{{ page.excerpt | default:site.config.description }}">
<meta name="og:description" content="{{ page.excerpt }}"> <meta name="og:description" content="{{ page.excerpt | default:site.config.description }}">
<meta name="twitter:description" content="{{ page.excerpt }}"> <meta name="twitter:description" content="{{ page.excerpt | default:site.config.description }}">
{% endif %} {% endif %}
{% if page.layout == "post" %} {% if page.layout == "post" %}