10aar more links and language
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rolf Amfelt 2024-12-14 10:11:45 +01:00
parent 53f238c356
commit 97911ed9d6
4 changed files with 22 additions and 11 deletions

View file

@ -11,7 +11,7 @@ menu_item_2_en: "When"
menu_item_3_da: "Hvor" menu_item_3_da: "Hvor"
menu_item_3_en: "Where" menu_item_3_en: "Where"
menu_10aar_da: "10 år" menu_10aar_da: "10 år"
menu_10aar_en: "10 years" menu_10aar_en: "10 year"
menu_code_da: "Adfærdskodeks" menu_code_da: "Adfærdskodeks"
menu_code_en: "Code of Conduct" menu_code_en: "Code of Conduct"

View file

@ -37,10 +37,11 @@
<nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar"> <nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar">
<div class="navbar-brand pull-xs-right"> <div class="navbar-brand pull-xs-right">
{% if page.language == 'da' %}
<a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a> <a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a> <a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a>
{% if page.language == 'da' %}
<a href="index_en.html" alt="English"> <a href="index_en.html" alt="English">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;">
<clipPath id="t"> <clipPath id="t">
@ -54,6 +55,10 @@
</svg> </svg>
</a> </a>
{% else %} {% else %}
<a class="nav-link" href="10aar_en.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code_en.html">{{ site.data.strings[menu_code] }}</a>
<a href="index.html" alt="Danish"> <a href="index.html" alt="Danish">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;">
<rect width="40" height="30" fill="#C60C30"/> <rect width="40" height="30" fill="#C60C30"/>
@ -89,7 +94,7 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
{{ section_code | markdownify }} {{ section_10aar | markdownify }}
</div> </div>
</div> </div>
</div> </div>

View file

@ -37,11 +37,12 @@
<nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar"> <nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar">
<div class="navbar-brand pull-xs-right"> <div class="navbar-brand pull-xs-right">
<a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a>
{% if page.language == 'da' %} {% if page.language == 'da' %}
<a href="index_en.html" alt="English"> <a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a>
<a href="index_en.html" alt="English">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;">
<clipPath id="t"> <clipPath id="t">
<path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/> <path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/>
@ -54,7 +55,9 @@
</svg> </svg>
</a> </a>
{% else %} {% else %}
<a class="nav-link" href="code_en.html">{{ site.data.strings[menu_code] }}</a> <a class="nav-link" href="10aar_en.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code_en.html">{{ site.data.strings[menu_code] }}</a>
<a href="index.html" alt="Danish"> <a href="index.html" alt="Danish">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;">
<rect width="40" height="30" fill="#C60C30"/> <rect width="40" height="30" fill="#C60C30"/>

View file

@ -37,10 +37,10 @@
<nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar"> <nav class="navbar navbar-static-top navbar-fixed-top cryptohagen-navbar">
<div class="navbar-brand pull-xs-right"> <div class="navbar-brand pull-xs-right">
<a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a>
{% if page.language == 'da' %} {% if page.language == 'da' %}
<a class="nav-link" href="10aar.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code.html">{{ site.data.strings[menu_code] }}</a>
<a href="index_en.html" alt="English"> <a href="index_en.html" alt="English">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="24" height="12" style="margin: 13px 0 0 13px;">
<clipPath id="t"> <clipPath id="t">
@ -54,6 +54,9 @@
</svg> </svg>
</a> </a>
{% else %} {% else %}
<a class="nav-link" href="10aar_en.html">{{ site.data.strings[menu_10aar] }}</a>
<a class="nav-link" href="code_en.html">{{ site.data.strings[menu_code] }}</a>
<a href="index.html" alt="Danish"> <a href="index.html" alt="Danish">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="1 1 37 28" style="margin: 10px 0 0 13px;">
<rect width="40" height="30" fill="#C60C30"/> <rect width="40" height="30" fill="#C60C30"/>