]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog/post: add ogp metadata
authorRico Hoppe <rico.hoppe@ipfire.org>
Thu, 4 Apr 2024 16:51:45 +0000 (16:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:04:05 +0000 (14:04 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/blog/post.html

index 28015f288915f0115fbdfec5dff568258f4cae3f..596f4aaeaa9003fac4aa9b8b772a32a8706d7c99 100644 (file)
@@ -7,30 +7,30 @@
 
        <!-- Facebook OpenGraph -->
        <meta property="og:site_name" content="IPFire Blog" />
-       <meta property="og:title" content="{{ post.title }} - The IPFire Blog" />
-       <meta property="og:description" content="{{ post.excerpt }}" />
-       <meta property="og:url" content="{{ request.full_url() }}" />
+       <meta property="og:title" content="{{ post.title }} - The IPFire Blog" />
+       <meta property="og:description" content="{{ post.excerpt }}" />
+       <meta property="og:url" content="{{ request.full_url() }}" />
        <meta property="og:image" content="{{ static_url("img/ipfire-tux.png") }}" />
 
        <meta property="og:type" content="article" />
        {% if post.published_at %}
-               <meta property="og:article:published_time" content="{{ post.published_at.isoformat() }}" />
+               <meta property="og:article:published_time" content="{{ post.published_at.isoformat() }}" />
        {% end %}
-       <meta property="og:article:modified_time" content="{{ post.updated_at.isoformat() }}" />
+       <meta property="og:article:modified_time" content="{{ post.updated_at.isoformat() }}" />
        {% if isinstance(post.author, accounts.Account) %}
-               <meta property="og:article:author:first_name" content="{{ post.author.first_name }}" />
-               <meta property="og:article:author:last_name" content="{{ post.author.last_name }}" />
-               <meta property="og:article:author:username" content="{{ post.author.uid }}" />
+               <meta property="og:article:author:first_name" content="{{ post.author.first_name }}" />
+               <meta property="og:article:author:last_name" content="{{ post.author.last_name }}" />
+               <meta property="og:article:author:username" content="{{ post.author.uid }}" />
        {% end %}
        {% for tag in post.tags %}
-               <meta property="og:article:tag" content="{{ tag }}" />
+               <meta property="og:article:tag" content="{{ tag }}" />
        {% end %}
 
        <!-- Twitter -->
        <meta property="twitter:site" content="@ipfire" />
        <meta property="twitter:card" content="summary_large_image" />
        <meta property="twitter:title" content="{{ post.title }} - The IPFire Blog" />
-       <meta property="twitter:description" content="{{ post.excerpt }}" />
+       <meta property="twitter:description" content="{{ post.excerpt }}" />
        <meta property="twitter:image" content="{{ static_url("img/ipfire-tux.png") }}" />
 {% end block %}