configure jekyll seo tag

This commit is contained in:
Aminda Suomalainen ⚧ 2024-06-04 12:15:17 +03:00
parent 3ca486b00f
commit 0ce473cb5f
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 46 additions and 3 deletions

View File

@ -1,16 +1,24 @@
# include: ['dokumentit'] # include: ['dokumentit']
title: Piraattipuolueen dokumenttikirjasto title: Piraattipuolueen dokumenttikirjasto
tagline: Valitse vapaus
author:
name: "Piraattipuolue"
url: "https://piraattipuolue.fi"
description: > description: >
GitHub Pagesissa ylläpidetty Piraattipuolueen historian GitHub Pagesissa ylläpidetty Piraattipuolueen historian
säilyttävä dokumenttikirjasto. säilyttävä dokumenttikirjasto.
lang: fi lang: fi
locale: fi_FI
timezone: Europe/Helsinki
github_username: Piraattipuolue
encoding: utf-8
icon: https://www.piraattipuolue.fi/wp-content/uploads/2016/10/cropped-2000px-Piratpartiet.svg_-32x32.png icon: https://www.piraattipuolue.fi/wp-content/uploads/2016/10/cropped-2000px-Piratpartiet.svg_-32x32.png
defaults: defaults:
- scope: - scope:
path: "" path: "*"
values: values:
layout: "default" layout: "default"
image: https://www.piraattipuolue.fi/wp-content/uploads/2016/10/cropped-2000px-Piratpartiet.svg_-32x32.png
theme: minima theme: minima
# theme: jekyll-theme-leap-day # theme: jekyll-theme-leap-day
# theme: jekyll-theme-minimal # theme: jekyll-theme-minimal
@ -18,3 +26,4 @@ plugins:
- jekyll-sitemap - jekyll-sitemap
sitemap: sitemap:
file: "/sitemap.xml" file: "/sitemap.xml"
# jekyll seo-tag

35
_includes/footer.html Normal file
View File

@ -0,0 +1,35 @@
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>
<div class="wrapper">
<h2 class="footer-heading">{{ site.title | escape }}</h2>
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="p-name">
{%- if site.author -%}
<a href="{{ site.author.url }}">{{ site.author.name }}</a>
{%- else -%}
{{ site.title | escape }}
{%- endif -%}
</li>
{%- if site.email -%}
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
{%- endif -%}
</ul>
</div>
<div class="footer-col footer-col-2">
{%- include social.html -%}
</div>
<div class="footer-col footer-col-3">
<p>{{- site.description | escape -}}</p>
</div>
</div>
</div>
</footer>

View File

@ -6,7 +6,6 @@
<link rel="stylesheet prefetch" href="{{ "/assets/main.css" | relative_url }}"> <link rel="stylesheet prefetch" href="{{ "/assets/main.css" | relative_url }}">
<link rel="icon prefetch" href="{{site.icon}}"><link rel="icon prefetch" href="{{site.icon}}"> <link rel="icon prefetch" href="{{site.icon}}"><link rel="icon prefetch" href="{{site.icon}}">
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<meta name="og:image" content="{{site.icon}}"/>
{%- feed_meta -%} {%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%} {%- if jekyll.environment == 'production' and site.google_analytics -%}