1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-24 22:54:09 +00:00

Alternative links for multilanguage documents.

This commit is contained in:
Markus Birth 2015-02-24 15:40:25 +01:00
parent bb35e87b7d
commit 01df0d0502
3 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,13 @@
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/print.css" media="print" /> <link rel="stylesheet" type="text/css" href="{{ site.url }}/css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/custom.css" media="all" /> <link rel="stylesheet" type="text/css" href="{{ site.url }}/css/custom.css" media="all" />
{% if page.alternatives %}
<link rel="alternate" hreflang="{{ page.language }}" href="{{ page.url }}" />
{% for altpost in page.alternatives %}
<link rel="alternate" hreflang="{{ altpost.language }}" href="{{ site.url }}{{ altpost.url }}" />
{% endfor %}
{% endif %}
<title>{{ page.title }} :: {{ site.name }}</title> <title>{{ page.title }} :: {{ site.name }}</title>
<script src="{{ site.url }}/bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script> <script src="{{ site.url }}/bower_components/jquery/dist/jquery.min.js" type="text/javascript"></script>

View File

@ -1,6 +1,9 @@
--- ---
title: BIOS Passwörter title: BIOS Passwörter
language: de language: de
alternatives:
- language: en
url: /know-how/hacking/bios-passwords.html
layout: default layout: default
created: 2008-07-18 01:36:55 +0200 created: 2008-07-18 01:36:55 +0200
updated: 2009-10-30 22:53:14 +0100 updated: 2009-10-30 22:53:14 +0100

View File

@ -1,6 +1,9 @@
--- ---
title: BIOS Passwords title: BIOS Passwords
language: en language: en
alternatives:
- language: de
url: /know-how/hacking/bios-passwords-de.html
layout: default layout: default
created: 2008-07-16 00:44:43 +0200 created: 2008-07-16 00:44:43 +0200
updated: 2009-10-30 22:53:46 +0100 updated: 2009-10-30 22:53:46 +0100