<!DOCTYPE html>
<html lang="{{ page.lang }}" prefix="og: http://ogp.me/ns#" itemscope itemtype="http://schema.org/WebPage" class="no-js">
<head>
    <meta charset="utf-8">

    {% capture title %}{% if paginator.page and paginator.page != 1 %}{{ page.title }} - Page {{ paginator.page }}{% else %}{{ page.title }}{% endif%} &middot; TortoiseSVN{% endcapture %}
    <title>{{ title }}</title>

    {% capture meta_description %}{% if page.description %}{{ page.description }}{% if paginator.page and paginator.page != 1 %} - Page {{ paginator.page }}{% endif%}{% elsif page.excerpt %}{{ page.excerpt | newline_to_br | replace: '<br />', ' ' | strip_html | strip_newlines | replace: '  ', '' | truncate: 155 }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
    <meta name="description" content="{{ meta_description }}">
    {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
    <meta name="generator" content="Jekyll v{{ jekyll.version }}">
    <link rel="canonical" href="{{ site.url | append: page.url }}">

    {% include favicons.html %}

    <link rel="stylesheet" href="/assets/css/pack.css">

    <link rel="dns-prefetch" href="https://www.openhub.net/">

    <meta property="og:title" content="{{ title }}">
    <meta property="og:type" content="website">
    <meta property="og:description" content="{{ meta_description }}">
    {% if page.slug == "home" %}
    <meta property="og:url" content="{{ site.url }}">
    {% else %}
    <meta property="og:url" content="{{ site.url | append: page.url }}">
    {% endif %}
    <meta property="og:image" content="{{ site.url | replace: 'https://', 'http://' }}/assets/img/logo-256x256.png">
    <meta property="og:image:secure_url" content="{{ site.url }}/assets/img/logo-256x256.png">
    <meta property="og:image:type" content="image/png">
    <meta property="og:image:width" content="256">
    <meta property="og:image:height" content="256">
    <meta property="og:locale" content="{{ page.lang }}">

    {% capture current_page_lang %}{{ page.lang }}{% endcapture %}
    {% unless page.id == nil %}
    {% assign pages = site.pages | where: "id", page.id | sort: "path" %}
    {% for page in pages %}
    {% unless page.lang == current_page_lang %}
    <meta property="og:locale:alternate" content="{{ page.lang }}">
    <link rel="alternate" href="{{ site.url | append: page.url }}" hreflang="{{ page.lang }}">
    {% endunless %}
    {% endfor %}
    {% endunless %}

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="{{ title }}">

    <meta itemprop="name" content="TortoiseSVN">
    <meta itemprop="description" content="{{ meta_description }}">
    <meta itemprop="image" content="/assets/img/logo-256x256.png">

    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({
              google_ad_client: "ca-pub-0430507460695576",
              enable_page_level_ads: true
         });
    </script>
</head>
{% capture body_class %}{{ page.layout }}{% if page.body_class %} page-{{ page.body_class }}{% elsif page.slug %} page-{{ page.slug | slugify }}{% endif %}{% endcapture %}
<body class="{{ body_class }}">

    {% unless page.id == nil %}
    {% assign pages = site.pages | where: "id", page.id | sort: "path" %}
    <ul class="langselection">
    {% for page in pages %}
        <li class="lang">
            <a href="{{ page.url }}" class="{{ page.lang }}">{{ page.lang | upcase }}</a>
        </li>
    {% endfor %}
    </ul>
    {% endunless %}

    <div class="wrapper">

        {% if page.lang == "de" %}
            {% include menu.de.html %}
            {% include sidebar.de.html %}
        {% elsif page.lang == "zh" %}
            {% include menu.zh.html %}
            {% include sidebar.zh.html %}
        {% else %}
            {% include menu.html %}
            {% include sidebar.html %}
        {% endif %}

        <div class="page clearfix">
            <img src="/assets/img/tortoisesvn_logo_hor468x64.svg" alt="TortoiseSVN Logo" width="468" height="64">
            <div class="content">
