add extrahead

This commit is contained in:
Trent Palmer 2021-09-10 15:25:48 -07:00
parent 62cc33b84c
commit ce869e5ad3
4 changed files with 49 additions and 0 deletions

BIN
docs/photos/trent.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -3,6 +3,9 @@ title: "LMDE4 Custom Partitions Disk Encryption"
date: 2020-12-15 date: 2020-12-15
draft: false draft: false
tags: ["linux-mint","disk-encryption"] tags: ["linux-mint","disk-encryption"]
summaryimage: Screenshot31.png
summaryimagew: 754
summaryimageh: 700
authors: ["trent"] authors: ["trent"]
--- ---
date: 2020-12-15 date: 2020-12-15

View File

@ -4,6 +4,7 @@ site_url: https://blog.trentsonlinedocs.xyz/
theme: theme:
name: material name: material
custom_dir: overrides
palette: palette:
scheme: default scheme: default
primary: white primary: white

45
overrides/main.html Normal file
View File

@ -0,0 +1,45 @@
{% extends "base.html" %}
{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title | striptags %}
{% endif %}
{% if page and page.meta and page.meta.summaryimage %}
{% set summaryimg = page.meta.summaryimage %}
{% else %}
{% set summaryimg = "trent.png" %}
{% endif %}
{% if page and page.meta and page.meta.summaryimagew and page.meta.summaryimageh %}
{% set summaryimgw = page.meta.summaryimagew %}
{% set summaryimgh = page.meta.summaryimageh %}
{% else %}
{% set summaryimgw = 1120 %}
{% set summaryimgh = 1120 %}
{% endif %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="{{ config.site_url }}photos/{{ summaryimg }}" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="{{ summaryimgw }}" />
<meta property="og:image:height" content="{{ summaryimgh }}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@BoringTrent" />
<meta name="twitter:creator" content="@BoringTrent" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="{{ config.site_url }}photos/{{ summaryimg }}" />
<link href="{{ config.site_url }}feed_rss_created.xml" type="application/rss+xml" rel="alternate" title="Trent's Blog - RSS Feed Created"/>
<link href="{{ config.site_url }}feed_rss_updated.xml" type="application/rss+xml" rel="alternate" title="Trent's Blog - RSS Feed Updated"/>
{% endblock %}