]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/blog/post.html
54a3eb78d9f2c91f90fe16fdeb3790895ec0abf0
[ipfire.org.git] / src / templates / blog / post.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ post.title }}{% end block %}
4
5 {% block meta %}
6 {% import ipfire.accounts as accounts %}
7
8 <!-- Facebook OpenGraph -->
9 <meta property="og:site_name" content="IPFire Blog" />
10 <meta property="og:title" content="{{ post.title }} - The IPFire Blog" />
11 <meta property="og:description" content="{{ post.excerpt }}" />
12 <meta property="og:url" content="{{ request.full_url() }}" />
13 <meta property="og:image" content="https://blog.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
14
15 <meta property="og:type" content="article" />
16 <meta property="og:article:published_time" content="{{ post.published_at.isoformat() }}" />
17 <meta property="og:article:modified_time" content="{{ post.updated_at.isoformat() }}" />
18 {% if isinstance(post.author, accounts.Account) %}
19 <meta property="og:article:author:first_name" content="{{ post.author.first_name }}" />
20 <meta property="og:article:author:last_name" content="{{ post.author.last_name }}" />
21 <meta property="og:article:author:username" content="{{ post.author.uid }}" />
22 {% end %}
23 {% for tag in post.tags %}
24 <meta property="og:article:tag" content="{{ tag }}" />
25 {% end %}
26
27 <!-- Twitter -->
28 <meta property="twitter:site" content="@ipfire" />
29 <meta property="twitter:card" content="summary_large_image" />
30 <meta property="twitter:title" content="{{ post.title }} - The IPFire Blog" />
31 <meta property="twitter:description" content="{{ post.excerpt }}" />
32 <meta property="twitter:image" content="https://blog.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
33 {% end block %}
34
35 {% block main %}
36 <div class="card">
37 <div class="card-body">
38 {% module BlogPost(post) %}
39 </div>
40 </div>
41 {% end block %}