blog.trnck.dev
1{% if site.style == 'dark' %}
2 {% assign icon_color = "#ffffff" %}
3{% else %}
4 {% assign icon_color = "#24292e" %}
5{% endif %}
6
7{% assign content = page.content %}
8
9{% assign posts_total = site.posts | size %}
10
11{% assign user = site.github.owner %}
12
13{% if page.path contains '_posts' %}
14 {% assign page_title = page.title %}
15 {% assign meta_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %}
16 {% if page.image %}
17 {% assign meta_image = page.image | prepend: "/img/thumbnail/" | absolute_url %}
18 {% endif %}
19{% else %}
20 {% assign page_title = site.title %}
21 {% assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %}
22 {% assign meta_image = user.avatar_url %}
23{% endif %}
24
25<!doctype html>
26<html class="min-height-full" lang="en-US">
27 <head>
28 <meta charset="utf-8">
29 <title>{{ page_title }}</title>
30 <meta name="description" content="{{ meta_description }}" />
31 <meta property="og:title" content="{{ page_title }}" />
32 {% if meta_image %}<meta property="og:image" content="{{ meta_image }}" />{% endif %}
33 <meta property="og:description" content="{{ meta_description }}" />
34 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
35 <link href="{{ "/assets/styles.css" | relative_url }}" rel="stylesheet" type="text/css">
36 </head>
37 <body class="bg-white min-height-full" {% if site.style == 'dark' %}style="background-color: #2f363d !important"{% endif %}>