From 015fb02a83402bd8ca28382c2b2b2fee8611c890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= <lukas.krupcik@vsb.cz> Date: Mon, 19 Dec 2016 12:49:19 +0100 Subject: [PATCH] change --- it4i_theme/drawer.html | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/it4i_theme/drawer.html b/it4i_theme/drawer.html index 577b4c6af..0cd542dca 100644 --- a/it4i_theme/drawer.html +++ b/it4i_theme/drawer.html @@ -2,6 +2,11 @@ {% set home = repo_url | default("/", true) %} <a href="{{ home }}" class="project"> <div class="banner"> + {% if config.extra.logo %} + <div class="logo"> + <img src="{{ base_url }}/{{ config.extra.logo }}"> + </div> + {% endif %} <div class="name"> <strong> {{ site_name }} @@ -18,12 +23,51 @@ </a> <div class="scrollable"> <div class="wrapper"> + {% if repo_name == "GitHub" and repo_url %} + <ul class="repo"> + <li class="repo-download"> + {% set version = config.extra.version | default("master") %} + <a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" title="Download" data-action="download"> + <i class="icon icon-download"></i> Download + </a> + </li> + <li class="repo-stars"> + <a href="{{ repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star"> + <i class="icon icon-star"></i> Stars + <span class="count">–</span> + </a> + </li> + </ul> + <hr> + {% endif %} <div class="toc"> <ul> {% for nav_item in nav %} {% include "nav.html" %} {% endfor %} </ul> + {% if config.extra.author %} + <hr> + <span class="section">The author</span> + <ul> + {% if config.extra.author.twitter %} + {% set author = config.extra.author.twitter %} + <li> + <a href="https://twitter.com/{{ author }}" target="_blank" title="@{{ author }} on Twitter"> + @{{ author }} on Twitter + </a> + </li> + {% endif %} + {% if config.extra.author.github %} + {% set author = config.extra.author.github %} + <li> + <a href="https://github.com/{{ author }}" target="_blank" title="@{{ author }} on GitHub"> + @{{ author }} on GitHub + </a> + </li> + {% endif %} + </ul> + {% endif %} </div> </div> </div> -- GitLab