diff options
author | 2025-02-07 01:29:45 -0500 | |
---|---|---|
committer | 2025-02-07 01:29:45 -0500 | |
commit | 0514ebc1e42136755d58f3d5b02bf31bc682ad30 (patch) | |
tree | 63600c0027f43bb9a5b243ff22d201b5c861e3ef /templates | |
parent | ff07cfa1d2cb0260ca2fcafef5cf5c856720d7ce (diff) |
Fri Feb 7 01:29:45 AM EST 2025
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 6 | ||||
-rw-r--r-- | templates/blog-page.html | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index ba2a57e..39475b7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,8 +2,12 @@ <html lang="en"> <head> <meta charset="utf-8"/> - <title>silas</title> <link rel="stylesheet" href="/style.css"/> + <title>soaos</title> + <meta property="og:url" content="{{config.base_url | safe}}/{{current_path | safe}}" /> + {% block meta_content %} + <meta property="og:title" content="soaos" /> + {% endblock meta_content %} {% block rss %} <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}"> {% endblock %} diff --git a/templates/blog-page.html b/templates/blog-page.html index 6c4afa5..95565e0 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -1,5 +1,18 @@ {% extends "base.html" %} +{% block meta_content %} + {% if page.title %} + <meta property="og:title" content="soaos" /> + <meta name="description" content="{{ page.title | safe }}" /> + <meta property="og:description" content="{{ page.title | safe }}" /> + {% else %} + <meta property="og:title" content="soaos" /> + {% endif %} + {% if page.extra.coverimage %} + <meta property="og:image" content="{{ current_url | safe }}/{{ page.extra.coverimage | safe }}"/> + {% endif %} +{% endblock meta_content %} + {% block content %} <a href="{{ get_url(path='@/blog/_index.md') }}"> <- back to posts</a> <h1 class="title"> |