diff --git a/doc.zih.tu-dresden.de/mkdocs.yml b/doc.zih.tu-dresden.de/mkdocs.yml index 6737a90b58df765f9838c65c2e78e257b41b59ff..781fb30f99b523fb325bff32b4b0b543edf93647 100644 --- a/doc.zih.tu-dresden.de/mkdocs.yml +++ b/doc.zih.tu-dresden.de/mkdocs.yml @@ -163,6 +163,7 @@ theme: favicon: assets/images/Logo_klein.png # logo in header and footer logo: assets/images/TUD_Logo_weiss_57.png + second_logo: assets/images/zih.png # extends base css extra_css: @@ -174,6 +175,7 @@ markdown_extensions: extra: homepage: https://tu-dresden.de + zih_homepage: https://tu-dresden.de/zih # links in footer footer: - link: https://doc.zih.tu-dresden.de/hpc-wiki/bin/view/Compendium/Impressum diff --git a/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png b/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png new file mode 100644 index 0000000000000000000000000000000000000000..85689088505099e90954c2ee93961e73d10d1ad2 Binary files /dev/null and b/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png differ diff --git a/doc.zih.tu-dresden.de/tud_theme/partials/nav.html b/doc.zih.tu-dresden.de/tud_theme/partials/nav.html index 8c5910da645436dba1f98957d7c9eb9e9fc496cc..c52b5ac51a6139465fff77a8ed77eefe7ec96494 100644 --- a/doc.zih.tu-dresden.de/tud_theme/partials/nav.html +++ b/doc.zih.tu-dresden.de/tud_theme/partials/nav.html @@ -26,6 +26,16 @@ {% set class = class ~ " md-nav--integrated" %} {% endif %} + <a + href="{{ config.extra.zih_homepage | url }}" + title="{{ config.zih_name | e }}" + class="md-logo zih-logo" + aria-label="{{ config.zih_name }}" + data-md-component="logo" + > + <img src="{{ config.theme.second_logo | url }}" alt="logo" /> + </a> + <!-- Main navigation --> <nav class="{{ class }}" diff --git a/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css b/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css index 6a2baf704e58d631d7747dd3b0c50a07b093ec96..1ef8355d6f54930555b223b5c9d6ebb20c6e3ffc 100644 --- a/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css +++ b/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css @@ -79,17 +79,21 @@ strong { .md-header__button, .md-header__button.md-logo, .md-logo { - padding: 0; + padding: 0 0.6rem; margin: 0; } + .md-header__button.md-logo { width: 12.1rem; } -/* center top Logo */ -/* .md-header__button img { - display: block; - margin: 0 auto; -} */ + +.zih-logo img { + display: inline-block; + width: 70%; + height: auto; + margin: auto; + padding: 0 .6rem 1rem; +} .md-header__topic{ padding: 0 30px;