diff options
-rw-r--r-- | content/blog/mons_i/index.md | 2 | ||||
-rw-r--r-- | templates/base.html | 6 | ||||
-rw-r--r-- | templates/blog-page.html | 13 |
3 files changed, 20 insertions, 1 deletions
diff --git a/content/blog/mons_i/index.md b/content/blog/mons_i/index.md index 16c2721..7a230d9 100644 --- a/content/blog/mons_i/index.md +++ b/content/blog/mons_i/index.md @@ -1,6 +1,8 @@ +++ title = "mons (the mountain) - part i: i got sidetracked writing c for a week" date = 2025-02-06 +[extra] +coverimage = "./mons.png" +++ ## the valley 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"> |