-
Notifications
You must be signed in to change notification settings - Fork 73
/
blog-page.html
57 lines (44 loc) · 2.16 KB
/
blog-page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "base.html" %}
{% block title %}
<title>Blog | {{blog_post.title}}</title>
<meta name="description" content="{{ blog_post.subtitle }}">
{% endblock %}
{% block og_params %}
<!-- OG params for sharable content -->
<meta property="og:title" content="{{ blog_post.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://whotracks.me/{{ 'blog'|url_for(blog_post.filename)|absolute_og_urls }}" />
<meta property="og:description" content="{{ blog_post.subtitle }}" />
<meta property="og:image" content="https://whotracks.me/{{PATHS.static|absolute_og_urls}}/img/{{blog_post.header_img}}" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@WhoTracks_me">
<meta name="twitter:creator" content="@WhoTracks_me">
<meta name="twitter:title" content="{{ blog_post.title }}">
<meta name="twitter:description" content="{{ blog_post.subtitle }}">
<meta name="twitter:image" content="https://whotracks.me/{{PATHS.static|absolute_og_urls}}/img/{{blog_post.header_img}}">
{% endblock %}
{% set active_page='blog' %}
{% set active_page_name=blog_post.title %}
{% block extra_styling %}
<link rel="stylesheet" href="{{PATHS.static}}/css/blog/post.css">
<!--to style code snippets properly-->
<link rel="stylesheet" href="{{PATHS.static}}/css/blog/github.css">
<script src="{{PATHS.static}}/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
{% endblock %}
{% block content %}
<!-- <div class="post-header">
<p class="author">{{ blog_post.author }}</p>
<p class="date">{{ blog_post.repr_date }}</p>
</div> -->
<div class="img-container">
<img class="img-responsive" src="{{PATHS.static}}/img/{{blog_post.header_img}}" />
</div>
<div class="container container-post">
<h3 id="post-title">{{ blog_post.title }}</h3>
<p id="post-subtitle">{{ blog_post.subtitle }}</p>
<hr>
<p class="post-meta"><b>{{ blog_post.author }}</b> - {{ blog_post.repr_date }}</p>
{{ blog_post.body | markdown }}
</div>
{% endblock %}