change blogpost layout
This commit is contained in:
parent
2395b6f893
commit
4fd59a256c
3 changed files with 51 additions and 1 deletions
38
_includes/blogpostheader.html
Normal file
38
_includes/blogpostheader.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
{% capture title %} {% if page.title and page.title != "Home" %} {{ page.title
|
||||
}} · {{ site.title }} {% else %} {{ site.title }} {% endif %} {%
|
||||
endcapture %} {% capture description %} {% if page.date %} {{ page.date | date:
|
||||
"%d.%m.%Y" }} {% endif %} {% if page.location %} / {{ page.location
|
||||
}} {% endif %} {% endcapture %} {% if description == "" %} {% assign description
|
||||
= site.description %} {% endif %}
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
|
||||
<title>{{ title }}</title>
|
||||
<meta name="description" content="{{ description }}" />
|
||||
|
||||
<link rel="stylesheet" href="{{ "/assets/css/styles.css" | prepend:
|
||||
site.baseurl }}">
|
||||
<link
|
||||
rel="canonical"
|
||||
href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"
|
||||
/>
|
||||
|
||||
<meta property="og:title" content="{{ title }}" />
|
||||
{% if description %}
|
||||
<meta property="og:description" content="{{ description }}" />
|
||||
{% endif %}
|
||||
<meta
|
||||
property="og:url"
|
||||
content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"
|
||||
/>
|
||||
<meta property="og:type" content="webseite" />
|
||||
|
||||
<meta name="fediverse:creator" content="@nyansen@elbmatsch.de" />
|
||||
|
||||
<link rel="home" type="application/rss+xml" href="/feed.xml" />
|
||||
<link rel="shortcut icon" type="image/png" href="/assets/images/logo.png" />
|
||||
</head>
|
12
_layouts/blogpost.html
Normal file
12
_layouts/blogpost.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
layout: compress
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de" class="no-js page-home">
|
||||
{% include blogpostheader.html %}
|
||||
<body>
|
||||
{% include header.html %} {% include navigation.html %} {{content}} {%
|
||||
include footer.html %}
|
||||
</body>
|
||||
</html>
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: default
|
||||
layout: blogpost
|
||||
---
|
||||
<main id="post-container" class="single-post">
|
||||
<article class="post">
|
||||
|
|
Loading…
Add table
Reference in a new issue