-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better SEO, OpenGraph, schema.org and clean generated code (#481)
- Loading branch information
Showing
31 changed files
with
899 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
{% assign path = include.path | remove: ".jpg" | remove: ".jpeg" | remove: ".png" | remove: ".tiff" %} | ||
{%- assign path = include.path | remove: ".jpg" | remove: ".jpeg" | remove: ".png" | remove: ".tiff" -%} | ||
|
||
<figure> | ||
|
||
<picture> | ||
{% for i in site.imagemagick.widths %} | ||
<source media="(max-width: {{ i }}px)" srcset="{{ path | relative_url }}-{{ i }}.webp"> | ||
{% endfor %} | ||
{% for i in site.imagemagick.widths -%} | ||
<source media="(max-width: {{ i }}px)" srcset="{{ path | relative_url }}-{{ i }}.webp" /> | ||
{% endfor -%} | ||
|
||
<!-- Fallback to the original file --> | ||
<img {% if include.class %}class="{{ include.class }}"{% endif %} src="{{ include.path | relative_url }}" {% if include.alt %}alt="{{ alt }}"{% endif %} {% if include.title %}title="{{ title }}"{% endif %} {% if include.zoomable %}data-zoomable{% endif %} /> | ||
|
||
</picture> | ||
|
||
{% if include.caption %}<figcaption class="caption">{{ include.caption }}</figcaption>{% endif %} | ||
{%- if include.caption -%}<figcaption class="caption">{{ include.caption }}</figcaption>{%- endif %} | ||
|
||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
{% if site.footer_fixed %} | ||
<footer class="fixed-bottom"> | ||
<div class="container mt-0"> | ||
© Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}. | ||
{{ site.footer_text }} | ||
{% if site.impressum_path %} | ||
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>. | ||
{% endif %} | ||
{% if site.last_updated %} | ||
Last updated: {{ "now" | date: '%B %d, %Y' }}. | ||
{% endif %} | ||
</div> | ||
</footer> | ||
{% else %} | ||
<footer class="sticky-bottom mt-5"> | ||
<div class="container"> | ||
© Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}. | ||
{{ site.footer_text }} | ||
{% if site.impressum_path %} | ||
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>. | ||
{% endif %} | ||
{% if site.last_updated %} | ||
Last updated: {{ "now" | date: '%B %d, %Y' }}. | ||
{% endif %} | ||
</div> | ||
</footer> | ||
{% endif %} | ||
{% if site.footer_fixed %} | ||
<footer class="fixed-bottom"> | ||
<div class="container mt-0"> | ||
© Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}. {{ site.footer_text }} | ||
{%- if site.impressum_path -%} | ||
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>. | ||
{%- endif -%} | ||
{%- if site.last_updated -%} | ||
Last updated: {{ "now" | date: '%B %d, %Y' }}. | ||
{%- endif %} | ||
</div> | ||
</footer> | ||
{%- else -%} | ||
<footer class="sticky-bottom mt-5"> | ||
<div class="container"> | ||
© Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}. {{ site.footer_text }} | ||
{%- if site.impressum_path -%} | ||
<a href="{{ site.url }}{{ site.baseurl }}{{ site.impressum_path }}">Impressum</a>. | ||
{%- endif -%} | ||
{%- if site.last_updated -%} | ||
Last updated: {{ "now" | date: '%B %d, %Y' }}. | ||
{%- endif %} | ||
</div> | ||
</footer> | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,29 @@ | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<!-- Metadata, OpenGraph and Schema.org --> | ||
{% include metadata.html %} | ||
|
||
<title> | ||
{% if site.title == "blank" %} | ||
{{ site.first_name }} {{ site.middle_name }} {{ site.last_name }} | ||
{% else %} | ||
{{ site.title }} | ||
{% endif %} | ||
{% if page.title != "blank" and page.url != "/" %} | ||
| {{ page.title }} | ||
{% endif %} | ||
</title> | ||
<meta name="description" content="{{ site.description }}"> | ||
<!-- Bootstrap & MDB --> | ||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.bootstrap.integrity.css }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/css/mdb.min.css" integrity="{{ site.mdb.integrity.css }}" crossorigin="anonymous" /> | ||
|
||
<!-- Open Graph --> | ||
{% if site.serve_og_meta %} | ||
<meta property="og:site_name" content="{{ site.description }}" /> | ||
<meta property="og:type" content="object" /> | ||
<meta property="og:title" content="{{ site.name }}" /> | ||
<meta property="og:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}" /> | ||
<meta property="og:description" content="{{ page.title }}" /> | ||
<meta property="og:image" content="{%- if page.og_image -%}{{ page.og_image }}{%- else -%}{{ site.og_image }}{%- endif -%}" /> | ||
{% endif %} | ||
<!-- Fonts & Icons --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/{{ site.fontawesome.version }}/css/all.min.css" integrity="{{ site.fontawesome.integrity }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/{{ site.academicons.version }}/css/academicons.min.css" integrity="{{ site.academicons.integrity }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:100,300,400,500,700|Material+Icons"> | ||
|
||
<!-- Bootstrap & MDB --> | ||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.bootstrap.integrity.css }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/css/mdb.min.css" integrity="{{ site.mdb.integrity.css }}" crossorigin="anonymous" /> | ||
<!-- Code Syntax Highlighting --> | ||
<link rel="stylesheet" href="https://gitcdn.link/repo/jwarby/jekyll-pygments-themes/master/{{ site.highlight_theme }}.css" /> | ||
|
||
<!-- Fonts & Icons --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/{{ site.fontawesome.version }}/css/all.min.css" integrity="{{ site.fontawesome.integrity }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/{{ site.academicons.version }}/css/academicons.min.css" integrity="{{ site.academicons.integrity }}" crossorigin="anonymous"> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:100,300,400,500,700|Material+Icons"> | ||
<!-- Styles --> | ||
{% if site.icon != empty -%} | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>"> | ||
{%- endif %} | ||
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"> | ||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}"> | ||
|
||
<!-- Code Syntax Highlighting --> | ||
<link rel="stylesheet" href="https://gitcdn.link/repo/jwarby/jekyll-pygments-themes/master/{{ site.highlight_theme }}.css" /> | ||
{%- if site.enable_darkmode %} | ||
|
||
<!-- Styles --> | ||
{% if site.icon != empty %} | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>"> | ||
{% endif %} | ||
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"> | ||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}"> | ||
|
||
{% if site.enable_darkmode %} | ||
<!-- Dark Mode --> | ||
<script src="{{ '/assets/js/theme.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script> | ||
{% endif %} | ||
<!-- Dark Mode --> | ||
<script src="{{ '/assets/js/theme.js' | relative_url }}"></script> | ||
<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script> | ||
{%- endif -%} |
Oops, something went wrong.