From 8aed7291d95070d8dbb8ce322de4108918c0f8f1 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Sat, 5 Jun 2021 03:56:24 -0600
Subject: add og support

---
 blog/plt/base.html | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'blog/plt/base.html')

diff --git a/blog/plt/base.html b/blog/plt/base.html
index 3350593..6c56ac4 100644
--- a/blog/plt/base.html
+++ b/blog/plt/base.html
@@ -1,11 +1,13 @@
 <!DOCTYPE html>
-<html lang="{%block html_lang%}{%endblock html_lang%}">
+<html lang="{%block html_lang%}{%endblock html_lang%}"
+      prefix="og: https://ogp.me/ns#">
   <head>
-    <base href="{{site_base_static_url}}">
+    <base href="{{config.static_url}}">
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <title>{%block head_title%}{%endblock head_title%} -- {{site_title}}</title>
-    <link rel="alternate" type="application/rss+xml" href="{{site_base_url}}/rss.xml" title="{{site_title}} RSS">
+    <title>{%block head_title%}{%endblock head_title%} -- {{config.title}}</title>
+    <meta name="description" content"{%block head_description%}{%endblock head_description%}"/>
+    <link rel="alternate" type="application/rss+xml" href="{{config.url}}/rss.xml" title="{{config.title}} RSS">
     <link rel="icon" href="images/icons/favicon.ico">
 
     <!-- general style -->
@@ -21,6 +23,9 @@
     <script type="text/javascript" src="scripts/theme.js"></script>
     <link id="theme-css" rel="stylesheet" type="text/css" href="css/dark.css">
     <link id="code-theme-css" rel="stylesheet" type="text/css" href="hl/styles/solarized-dark.min.css">
+
+    <!-- og meta -->
+    {%block head_og%}{%endblock head_og%}
   </head>
 
   <body>
-- 
cgit v1.2.3-70-g09d2