firtst step with new design

This commit is contained in:
Sven Jorns
2023-03-28 02:21:07 +03:00
parent e057f4bb36
commit e3673d561b
12 changed files with 1531 additions and 251 deletions
+1
View File
@@ -1,2 +1,3 @@
target
public
prototype
+29 -4
View File
@@ -1,6 +1,10 @@
# The URL the site will be built for
base_url = "https://serinty.net"
# The site title and description; used in feeds by default.
title = "Serinty Ltd."
description = "Your Data - Your Money"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true
default_language = "en"
@@ -16,33 +20,54 @@ highlight_code = true
[languages]
[languages.de]
generate_feed = true # there will be a feed for French content
generate_feed = true # there will be a feed for German content
build_search_index = true
[languages.de.translations]
en = "Englisch"
de = "Deutsch"
sw = "Swahili"
content = "Inhalt"
contact = "Kontakt"
follow = "Folgen Sie uns"
phone = "Telefon"
[languages.sw]
generate_feed = true # there will be a feed for French content
generate_feed = true # there will be a feed for Swahili content
build_search_index = true
[languages.sw.translations]
en = "Kiingereza"
de = "Kijerumani"
sw = "Kiswahili"
content = "yaliyomo"
contact = "Wasiliana nasi"
follow = "Tutembelee"
phone = "Simu"
[languages.en]
generate_feed = true # there will be a feed for French content
generate_feed = true # there will be a feed for english content
build_search_index = true
[languages.en.translations]
en = "English"
de = "German"
sw = "Swahili"
contact = "Contact"
follow = "Follow us"
phone = "Phone"
[extra]
# Put all your custom variables here
logo_path = 'images/serinty.png'
debug = false
startyear = "2022"
contact.phone = "+255-555555555"
contact.email = "info@serinty-net"
contact.address = "P.O. Box 1234, Dar es Salaam, Tanzania"
contact.facebook = "https://www.facebook.com/serinty"
contact.twitter = "https://twitter.com/serinty_net"
contact.instagram = "https://www.instagram.com/serinty"
contact.linkedin = "https://www.linkedin.com/company/serinty"
contact.youtube = "https://www.youtube.com/channel/serinty"
contact.whatsapp = "https://wa.me/255555555555"
+780
View File
@@ -0,0 +1,780 @@
/*---------------------------------------------------- import Fonts ----------------------------------------------------*/
@font-face {
font-family: "Origo Pro";
src: url(./fonts/OrigoPro-Regular.woff) format("truetype");
}
*,
::before,
::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
margin: 0;
padding: 0;
font-family: "Origo Pro", sans-serif;
}
:root {
--dark-green: #0d4235;
--bg-color: rgb(255 251 235);
--dark-mode: #04170f;
--text-color: white;
--submenu-bg: #b7cfa1;
--list-bottom-border: #0d423523;
--whatsapp-color: #25d366;
}
body {
margin: 0;
line-height: inherit;
color: var(--dark-green);
background-color: var(--bg-color);
font-size: 1.2rem;
transition: 0.3s ease-in-out;
}
.dark-mode {
background-color: var(--dark-mode);
color: var(--text-color);
a {
color: var(--text-color);
}
.nav-large {
background-color: hsla(155, 70%, 5%, 0.9);
border-bottom: 1px solid #14532d5d;
.logo-texts {
span {
transition: 0.3s ease-in-out;
}
span:last-child {
transition: 0.3s ease-in-out;
color: #d6d3d1;
}
}
}
.preview {
.items {
.item {
border: 2px solid var(--dark-green);
.title {
color: #fbbf24;
}
}
}
}
footer {
background-color: #072b22;
}
}
.nav-drop-shadow {
filter: drop-shadow(0 10px 8px rgba(38, 38, 38, 0.04))
drop-shadow(0 4px 3px rgba(38, 38, 38, 0.1));
}
.hidden-overflow {
overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
ul {
list-style: none;
}
a {
text-decoration: none;
color: #0d4235;
}
img {
width: 100%;
}
main,
section {
position: relative;
padding: 1.5rem 0;
z-index: 999;
}
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.flex-row {
flex-direction: row;
}
.justify-center {
justify-content: center;
}
.justify-start {
justify-content: flex-start;
}
.justify-end {
justify-content: flex-end;
}
.align-center {
align-items: center;
}
.align-start {
align-items: flex-start;
}
.align-end {
align-items: flex-end;
}
.justify-between {
justify-content: space-between;
}
.justify-around {
justify-content: space-around;
}
.grid {
display: grid;
}
.container {
margin: auto;
max-width: 1280px;
padding-left: 1rem;
padding-right: 1rem;
font-weight: 200;
}
/*----------------------------------------------------
Header Section
----------------------------------------------------*/
header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
}
.nav-large {
background-color: rgba(255, 251, 235, 0.85);
backdrop-filter: blur(64px);
transition: background 0.3s ease-in-out, padding 0.3s ease-in-out,
border 0.3s ease-in-out;
gap: 2rem;
border-bottom: 1px solid hsla(144, 61%, 20%, 0.1);
.logo-img-link {
gap: 0.5rem;
img {
width: 0.8rem;
}
}
.logo-texts {
line-height: 12px;
span {
font-size: 0.9rem;
}
span:last-child {
transition: 0.3s ease-in-out;
font-size: 0.6rem;
color: var(--dark-green);
}
}
nav {
gap: 0.9rem;
& > ul {
gap: 0rem;
li {
position: relative;
transition: background 0.3s ease-in-out;
&:hover .submenu {
visibility: visible;
opacity: 1;
}
&:hover {
background-color: var(--submenu-bg);
}
&:hover a {
color: var(--dark-green);
}
}
a {
display: flex;
padding: 1rem 0.5rem;
transition: 0.3s ease-in-out;
font-size: 1.1rem;
}
a:hover {
color: var(--dark-green);
}
}
.submenu.grid {
transition: 0.3s ease-in-out;
background-color: var(--submenu-bg);
border-radius: 2px;
padding: 1rem 0;
position: absolute;
top: 100%;
opacity: 0;
visibility: hidden;
a {
display: flex;
width: 15rem;
padding: 0.5rem 1.5rem 0.5rem 1.5rem;
transition: 0.3s ease-in-out;
color: var(--dark-green);
}
a:hover {
opacity: 0.8;
}
}
}
select {
color: var(--dark-green);
font-size: 1rem;
background-color: var(--submenu-bg);
padding: 0.2rem;
border-radius: 5px;
}
select::focus {
background-color: yellow;
}
option:hover {
background-color: red;
}
}
.nav_small {
position: relative;
top: 0;
left: 0;
right: 0;
bottom: 0;
.hide-mobile-menu {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(2, 2, 2, 0.521);
height: 100vh;
width: 100vw;
transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
visibility: visible;
z-index: -100;
opacity: 1;
}
.hide-mobile-menu.toggle {
visibility: hidden;
z-index: -100;
opacity: 0;
}
.logo img {
width: 1.1rem;
}
.fix {
z-index: 999;
position: absolute;
top: 100%;
width: 65vw;
}
nav {
right: 100%;
opacity: 0;
position: absolute;
background-color: var(--submenu-bg);
padding: 1rem;
height: calc(100vh - 20px);
justify-items: start;
align-items: start;
transition: 0.6s ease-in-out;
width: inherit;
overflow-y: auto;
a {
color: var(--dark-green);
}
ul {
width: inherit;
}
.submenu {
margin-left: 0.5rem;
max-height: 0;
transition: 0.5s ease-in-out;
overflow: hidden;
li {
transition: 0.3s ease-in-out;
padding: 0.5rem 0;
border-bottom: 1px solid var(--list-bottom-border);
a {
word-break: break-all;
}
}
}
.menu-arrow {
border: 2px solid var(--list-bottom-border);
height: 1.5rem;
width: 1.5rem;
svg {
transition: 0.3s linear;
color: var(--dark-green);
}
}
}
.link {
padding: 0.5rem 0;
border-bottom: 1px solid var(--list-bottom-border);
a {
width: 100%;
}
}
}
.nav-links-large {
display: none;
}
.hamburger {
cursor: pointer;
margin: 0.5rem 0;
svg {
width: 2rem;
height: 2rem;
}
}
.home {
width: 100%;
padding: 0.5rem 0;
border-bottom: 1px solid var(--list-bottom-border);
}
.contact {
padding: 0.5rem 0;
margin-bottom: 8rem;
}
.mode-toggle {
border-radius: 5px;
padding: 0.3rem;
height: 1.7rem;
width: 1.7rem;
border: 1px solid grey;
cursor: pointer;
position: relative;
.sun,
.moon {
position: absolute;
}
.sun {
color: rgb(252 211 77);
transition: 0.3s ease-in-out;
}
.moon {
color: rgb(214 211 209);
transition: 0.3s ease-in-out;
}
.hide {
opacity: 0;
}
}
// Menu svg rotate
.rotate-svg {
transform: rotate(180deg);
}
// Submenu toggle height
.toggle-height {
max-height: 450px !important;
}
// Toggle Mobile menu
.toggle-mobile-menu {
right: 0 !important;
opacity: 1 !important;
}
/*----------------------------------------------------
Main Section
----------------------------------------------------*/
main {
margin-top: 4rem;
.wrapper {
display: flex;
flex-flow: column-reverse;
gap: 3.5rem;
}
h1 {
font-size: 1.5rem;
letter-spacing: -0.02em;
font-weight: bold;
text-align: center;
}
img {
max-width: 20rem;
}
}
/*----------------------------------------------------
Preview Section
----------------------------------------------------*/
.preview {
margin-bottom: 1.7rem;
.items {
gap: 2rem;
.item {
transition: border 0.3s ease-in-out;
gap: 2rem;
border: 2px solid #4d7c0f5b;
padding: 1rem;
border-radius: 10px;
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
0 8px 10px -6px rgb(0 0 0 / 0.1);
img {
max-width: 15rem;
}
.title {
transition: 0.3s ease-in-out;
color: #4d7c0f;
font-size: 1.5rem;
font-weight: bold;
}
}
.texts {
gap: 0.6rem;
}
.text {
gap: 1rem;
}
.tick {
width: 1.15rem;
height: 1.15rem;
border-radius: 100%;
background-color: var(--submenu-bg);
color: var(--dark-green);
svg {
font-size: 0.95rem;
}
}
}
}
/*----------------------------------------------------
Welcome Section
----------------------------------------------------*/
.pagecontent {
.wrapper.grid {
gap: 1.5rem;
}
h2 {
font-size: 1.6rem;
font-weight: 600;
margin-bottom: 1rem;
}
h3 {
font-size: 2rem;
font-weight: 600;
}
.paras.grid {
gap: 1.2rem;
}
}
/*----------------------------------------------------
Footer Section
----------------------------------------------------*/
footer {
padding: 3rem 0;
background-color: rgb(255, 243, 196);
transition: background 0.3s ease-in-out;
.parent-link {
font-size: 1.6rem;
}
.footer-links {
column-gap: 1rem;
row-gap: 2rem;
}
.navigate-links {
margin-top: 0.8rem;
margin-left: 1rem;
gap: 0.5rem;
a {
font-size: 1.1rem;
position: relative;
transition: 0.3s ease-in-out;
}
a:hover {
opacity: 0.65;
}
}
.navigate-links {
a::before {
content: "-";
position: absolute;
top: 50%;
left: -1rem;
transform: translateY(-50%);
}
}
.contact-links {
margin-top: 0.8rem;
gap: 0.5rem;
.chat-whatsapp {
max-width: 10.9rem;
gap: 0.4rem;
color: var(--bg-color);
background-color: var(--whatsapp-color);
padding: 0.6rem;
border-radius: 6px;
font-size: 0.9rem;
svg {
font-size: 1.1rem;
}
}
}
.phone {
transition: 0.3s ease-in-out;
}
}
@media (min-width: 400px) {
.nav-large {
nav {
gap: 1.5rem;
}
}
.container {
margin: auto;
max-width: 1280px;
padding-left: 2rem;
padding-right: 2rem;
font-weight: 200;
}
.nav-large {
.logo {
gap: 0.7rem;
.logo-img-link {
gap: 0.5rem;
font-size: 0;
line-height: 0;
}
img {
width: 1rem;
vertical-align: top;
font-size: 0;
line-height: 0;
}
}
.logo-texts {
line-height: 14px;
gap: 0.2rem;
span {
font-size: 1.1rem;
}
span:last-child {
transition: 0.3s ease-in-out;
font-size: 0.65rem;
color: var(--dark-green);
}
}
}
.fix {
width: 50vw;
}
.footer-links {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 640px) {
main {
h1 {
font-size: 2.2rem;
}
}
// Data
.preview {
.items {
gap: 3rem;
}
}
.footer-links {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.items {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3rem;
}
}
@media (min-width: 768px) {
.nav-large {
.logo {
gap: 1rem;
.logo-img-link {
font-size: 0;
line-height: 0;
}
img {
width: 1.2rem;
vertical-align: top;
font-size: 0;
line-height: 0;
}
}
.logo-texts {
line-height: 20px;
gap: 0.2rem;
span {
font-size: 1.3rem;
}
span:last-child {
transition: 0.3s ease-in-out;
font-size: 0.8rem;
color: var(--dark-green);
}
}
}
main,
section {
padding: 4rem 0;
}
main,
section {
padding: 2rem 0;
}
main {
.wrapper {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
h1 {
font-size: 3rem;
text-align: start;
}
img {
max-width: 25rem;
}
}
.pagecontent {
.wrapper.grid {
gap: 2rem;
}
h2 {
font-size: 1.6rem;
font-weight: 600;
margin-bottom: 1.5rem;
}
h3 {
font-size: 2.2rem;
font-weight: 600;
}
.paras.grid {
gap: 2rem;
}
}
// Footer
footer {
.footer-links {
grid-template-columns: repeat(4, minmax(0, 1fr));
row-gap: 3rem;
}
}
}
@media (min-width: 1024px) {
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.37);
}
/* Handle */
::-webkit-scrollbar-thumb {
background: var(--submenu-bg);
border-radius: 2px;
}
.nav-links-large {
display: flex;
}
.hamburger {
display: none;
}
main {
h1 {
font-size: 3.5rem;
}
}
// Data
.preview {
.items {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 4rem;
}
}
main,
section {
padding: 2.5rem 0;
}
// Footer
footer {
.footer-links {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
}
@media (min-width: 1280px) {
footer {
.footer-links {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
}
+83
View File
@@ -0,0 +1,83 @@
const modeToggle = document.querySelector(".mode-toggle");
const menuArrow = document.querySelector(".submenu");
const toggleMobileNav = document.querySelector(".mobile-nav-toggle");
const nav = document.querySelector(".nav-large");
const sun = document.querySelector(".sun");
const moon = document.querySelector(".moon");
const html = document.querySelector("html");
const blackBG = document.querySelector(".hide-mobile-menu");
// navbar shadow on scorll
window.addEventListener("scroll", () => {
let width = document.body.clientWidth;
// header Drop down
if (window.scrollY > 20) {
nav.classList.add("nav-drop-shadow");
} else {
nav.classList.remove("nav-drop-shadow");
}
});
// Toggle Submenu
const submenu = (ele) => {
const parent = ele.parentElement.parentElement;
const svg = parent.querySelector(".arrow-svg");
const submenu = parent.querySelector(".submenu");
submenu.classList.toggle("toggle-height");
svg.classList.toggle("rotate-svg");
};
// Get year
document.querySelector("#year").innerHTML = new Date().getFullYear();
// Change language
let width = document.body.clientWidth;
if (width > 768) {
const options = [...document.querySelectorAll("option")];
// const lang = ["sw", "de", "en"];
const lang = ["Swahili (sw)", "German (de)", "English (en)"];
options.map((option, index) => {
option.innerText = lang[index];
});
}
// Toggle Hamburger
const hamburger = () => {
toggleMobileNav.classList.toggle("toggle-mobile-menu");
html.classList.toggle("hidden-overflow");
blackBG.classList.toggle("toggle");
};
// Save darkmode Info
let mode = localStorage.getItem("isDarkMode");
const dark = () => {
mode = "true";
document.body.classList.add("dark-mode");
moon.classList.add("hide");
sun.classList.remove("hide");
localStorage.setItem("isDarkMode", mode);
};
const light = () => {
mode = "false";
document.body.classList.remove("dark-mode");
moon.classList.remove("hide");
sun.classList.add("hide");
localStorage.setItem("isDarkMode", mode);
};
if (mode === null || mode === "false") {
mode = "false";
light();
} else {
mode = "true";
dark();
}
// Mode toggle
modeToggle.addEventListener("click", () => {
if (mode === "false") {
dark();
} else if (mode === "true") {
light();
}
});
+359 -124
View File
@@ -1,124 +1,359 @@
{% macro render_header() %}
{% set section = get_section(path="_index.md") %}
<!-- save 2 prevent url encoding -->
<dev class="navblock">
<!-- LOGO -->
<div class="logo">
<a href="/"><img src="{{get_url(path=config.extra.logo_path)}}" alt="logo" /></a>
</div>
<!-- NAVIGATION MENU -->
<div class="nav-links">
<div class="mobile-nav">
<select class="lang" onchange="window.location.href=this.value; value=this.value">
{% if section -%}
<!-- SECTION MODE -->
{% for t in section.translations -%}
{% if t.lang != config.default_language -%}
<option class="languages" value="{{ t.permalink }}"
{% else -%}
<option class="languages" value="{{ t.permalink }}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{t.lang}}</option>
{% endfor -%}
{% elif page -%}
<!-- PAGE MODE -->
{% for t in page.translations -%}
<option class="languages" value="{{ t.permalink }}"
{%- if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{ t.lang }}</option>
{% endfor -%}
{% endif -%}
</select>
<div class="darktoggle">
<!-- button to toggle dark mode -->
<button id="darkmodetogglebutton" onclick="toggleLightDarkMode()" class="darkmodetogglebutton" value="light" >☾</button>
</div>
</div>
<input type="checkbox" id="checkbox_toggle" />
<label for="checkbox_toggle" class="hamburger">&#9776;</label>
<!-- NAVIGATION MENUS -->
<div class="menu">
{% if section.subsections -%}
{% for subsection in section.subsections -%}
{% set subsection_item = get_section(path=subsection) -%}
{% for t in subsection_item.translations -%}
{% if lang == t.lang -%}
<div class="menublock">
<div class="services">
<a href="{{subsection_item.path}}">{{t.title}}</a>
</div>
{% if subsection_item.pages -%}
<div class="submenu">
{% for key in subsection_item.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<div class="submenurow">˫&nbsp;<a href="{{ t.permalink }}">{{t.title}}</a></div>
{% endif -%}
{% endfor -%}
{% endfor -%}
</div><!-- end submenu div -->
{% endif -%}
</div> <!-- end menublock div -->
{% endif -%} {# lang == t.lang#}
{% endfor -%}
{% endfor -%}
{% elif section.pages -%}
{% for key in section.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<div class="services">
<a href="{{ t.permalink }}">{{t.title}} C</a>
</div>
{% endif -%}
{% endfor -%}
{% endfor -%}
{% endif -%}
<div class="remove_on_mobile">
<select class="lang" onchange="window.location.href=this.value; value=this.value">
{% if section -%}
{% for t in section.translations -%}
{% if t.lang != config.default_language -%}
<option class="languages" value="{{t.permalink}}"
{% else -%}
<option class="languages" value="{{t.permalink}}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{%- endif -%}
>{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})
</option>
{% endfor -%}
{% elif page -%}
<!-- PAGE Language -->
{% for t in page.translations -%}
<option class="languages" value="{{section.slug | as_str}}"
{% if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})</option>
{% endfor -%}
{% endif -%}
</select>
<div class="darktoggle">
<button id="darkmodetogglebutton" onclick="toggleLightDarkMode()" class="darkmodetogglebutton" value="light" >☾</button>
</div>
</div>
</div>
</div>
</dev>
{% endmacro render_header -%}
{% macro render_logo() -%}
<!-- Logo -->
<div class="logo flex">
<a href="/" class="logo-img-link flex justify-center align-center"
>
<img src="{{get_url(path=config.extra.logo_path)}}" alt="Serinity" />
<!-- logo text -->
<div class="logo-texts texts flex flex-col">
<span>{{ config.title }}</span>
<span>{{ config.description }}</span>
</div>
</a>
</div>
{% endmacro render_logo -%}
{% macro svgicon(name) -%}
{% if name == "down" -%}
<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 12"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg" >
<path fill="none" d="M0 0h24v24H0V0z"></path>
<path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
></path>
</svg>
{% elif name == "sun" -%}
<!-- Sun -->
<svg
class="sun hide"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 16 16"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path
d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z">
</path>
</svg>
{% elif name == "moon" -%}
<!-- Moon -->
<svg
class="moon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 16 16"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z">
</path>
</svg>
{% elif name == "hamburger" -%}
<svg
stroke="currentColor"
fill="none"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M2 5.99519C2 5.44556 2.44556 5 2.99519 5H11.0048C11.5544 5 12 5.44556 12 5.99519C12 6.54482 11.5544 6.99039 11.0048 6.99039H2.99519C2.44556 6.99039 2 6.54482 2 5.99519Z"
fill="currentColor"></path>
<path d="M2 11.9998C2 11.4501 2.44556 11.0046 2.99519 11.0046H21.0048C21.5544 11.0046 22 11.4501 22 11.9998C22 12.5494 21.5544 12.9949 21.0048 12.9949H2.99519C2.44556 12.9949 2 12.5494 2 11.9998Z"
fill="currentColor"></path>
<path d="M2.99519 17.0096C2.44556 17.0096 2 17.4552 2 18.0048C2 18.5544 2.44556 19 2.99519 19H15.0048C15.5544 19 16 18.5544 16 18.0048C16 17.4552 15.5544 17.0096 15.0048 17.0096H2.99519Z"
fill="currentColor"></path>
</svg>
{% elif name == "menuarrow" -%}
<svg
class="arrow-svg"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 512 512"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z">
</path>
</svg>
{% elif name == "check" -%}
<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
version="1.1"
baseProfile="tiny"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M16.972 6.251c-.967-.538-2.185-.188-2.72.777l-3.713 6.682-2.125-2.125c-.781-.781-2.047-.781-2.828 0-.781.781-.781 2.047 0 2.828l4 4c.378.379.888.587 1.414.587l.277-.02c.621-.087 1.166-.46 1.471-1.009l5-9c.537-.966.189-2.183-.776-2.72z">
</path>
</svg>
{% endif -%}
{% endmacro svgicon -%}
{# create navigation bar with section, use get_section() in page #}
{% macro render_nav(section) -%}
<ul class="nav-links-large flex align-center">
{% if section.subsections -%}
{% for subsection in section.subsections -%}
{% set subsection_item = get_section(path=subsection) -%}
{% for t in subsection_item.translations -%}
{% if lang == t.lang -%}
<li>
<a class="flex" href="{{subsection_item.path}}">{{t.title}}
{% if subsection_item.pages -%}
<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 12"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg" >
<path fill="none" d="M0 0h24v24H0V0z"></path>
<path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
></path>
</svg>
</a>
<ul class="submenu grid">
{% for key in subsection_item.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<li><a href="{{ t.permalink }}">{{t.title}}</a></li>
{% endif -%}
{% endfor -%}
{% endfor -%}
</ul><!-- end submenu div -->
{% else -%}
</a> <!-- closing a-tag if no pages are present -->
{% endif -%}
</li> <!-- end menublock div -->
{% endif -%} {# lang == t.lang#}
{% endfor -%}
{% endfor -%}
{% elif section.pages -%}
{% for key in section.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<li >
<a href="{{ t.permalink }}">{{t.title}} C</a>
</li>
{% endif -%}
{% endfor -%}
{% endfor -%}
{% endif -%}
</ul>
{% endmacro render_nav -%}
{% macro render_footerlist() -%}
{% set section = get_section(path="_index.md") %}
<ul class="footer-links grid">
{% for subsection in section.subsections -%}
{% set subsection_item = get_section(path=subsection) -%}
{% for t in subsection_item.translations -%}
{% if lang == t.lang and subsection_item.pages -%}
<li>
<div class="parent-link">{{t.title}}</div>
<ul class="navigate-links grid">
{% for key in subsection_item.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<li><a href="{{ t.permalink }}">{{t.title}}</a></li>
{% endif -%}
{% endfor -%}
{% endfor -%}
</ul><!-- end submenu div -->
</li> <!-- end menublock div -->
{% endif -%} {# lang == t.lang#}
{% endfor -%}
{% endfor -%}
<li>
<div class="parent-link">{{ trans(key="contact",lang=lang) }}</div>
<ul class="flex flex-col contact-links">
<li>
<a class="phone" href="tel:{{config.extra.contact.phone}}"> {{ trans(key="phone",lang=lang) }}: {{config.extra.contact.phone}}</a>
</li>
<li>
<a class="chat-whatsapp flex justify-center align-center" href="{{config.extra.contact.whatsapp}}" target="_blank">
<svg
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 16 16"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z"></path>
</svg>
Chat on WhatsApp</a>
</li>
<li class="grid">
<span> {{ trans(key="follow", lang=lang) }}@</span>
<div class="navigate-links grid">
{% if config.extra.contact.twitter %}
<a href="{{ config.extra.contact.twitter }}" target="_blank">Twitter</a>
{% endif %}
{% if config.extra.contact.facebook %}
<a href="{{ config.extra.contact.facebook }}" target="_blank">Facebook</a>
{% endif %}
{% if config.extra.contact.instagram %}
<a href="{{ config.extra.contact.instagram }}" target="_blank">Instagram</a>
{% endif %}
{% if config.extra.contact.linkedin %}
<a href="{{ config.extra.contact.linkedin }}" target="_blank">LinkedIn</a>
{% endif %}
{% if config.extra.contact.youtube %}
<a href="{{ config.extra.contact.youtube }}" target="_blank">Youtube</a>
{% endif %}
</div>
</li>
</ul>
</li>
</ul>
{% endmacro render_footerlist -%}
{% macro render_header_old() %}
{% set section = get_section(path="_index.md") %}
<!-- save 2 prevent url encoding -->
<dev class="navblock">
<!-- LOGO -->
<div class="logo">
<a href="/"><img src="{{get_url(path=config.extra.logo_path)}}" alt="logo" /></a>
</div>
<!-- NAVIGATION MENU -->
<div class="nav-links">
<div class="mobile-nav">
<select class="lang" onchange="window.location.href=this.value; value=this.value">
{% if section -%}
<!-- SECTION MODE -->
{% for t in section.translations -%}
{% if t.lang != config.default_language -%}
<option class="languages" value="{{ t.permalink }}"
{% else -%}
<option class="languages" value="{{ t.permalink }}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{t.lang}}</option>
{% endfor -%}
{% elif page -%}
<!-- PAGE MODE -->
{% for t in page.translations -%}
<option class="languages" value="{{ t.permalink }}"
{%- if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{ t.lang }}</option>
{% endfor -%}
{% endif -%}
</select>
<div class="darktoggle">
<!-- button to toggle dark mode -->
<button id="darkmodetogglebutton" onclick="toggleLightDarkMode()" class="darkmodetogglebutton" value="light" >☾</button>
</div>
</div>
<input type="checkbox" id="checkbox_toggle" />
<label for="checkbox_toggle" class="hamburger">&#9776;</label>
<!-- NAVIGATION MENUS -->
<div class="menu">
{% if section.subsections -%}
{% for subsection in section.subsections -%}
{% set subsection_item = get_section(path=subsection) -%}
{% for t in subsection_item.translations -%}
{% if lang == t.lang -%}
<div class="menublock">
<div class="services">
<a href="{{subsection_item.path}}">{{t.title}}</a>
</div>
{% if subsection_item.pages -%}
<div class="submenu">
{% for key in subsection_item.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<div class="submenurow"><a href="{{ t.permalink }}">{{t.title}}</a></div>
{% endif -%}
{% endfor -%}
{% endfor -%}
</div><!-- end submenu div -->
{% endif -%}
</div> <!-- end menublock div -->
{% endif -%} {# lang == t.lang#}
{% endfor -%}
{% endfor -%}
{% elif section.pages -%}
{% for key in section.pages -%}
{% for t in key.translations -%}
{% if lang == t.lang -%}
<div class="services">
<a href="{{ t.permalink }}">{{t.title}} C</a>
</div>
{% endif -%}
{% endfor -%}
{% endfor -%}
{% endif -%}
<div class="remove_on_mobile">
<select class="lang" onchange="window.location.href=this.value; value=this.value" id="langselector">
{% if section -%}
{% for t in section.translations -%}
{% if t.lang != config.default_language -%}
<option class="languages" value="{{t.permalink}}"
{% else -%}
<option class="languages" value="{{t.permalink}}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{%- endif -%}
>{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})
</option>
{% endfor -%}
{% elif page -%}
<!-- PAGE Language -->
{% for t in page.translations -%}
<option class="languages" value="{{section.slug | as_str}}"
{% if t.lang == lang -%}
selected="selected"
{% endif -%}
>{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})</option>
{% endfor -%}
{% endif -%}
</select>
<div class="darktoggle">
<button id="darkmodetogglebutton" onclick="toggleLightDarkMode()" class="darkmodetogglebutton" value="light" >☾</button>
</div>
</div>
</div>
</div>
</dev>
{% endmacro render_header_old -%}
+28 -1
View File
@@ -1,3 +1,29 @@
{% macro render_language(longlang=true) -%}
<!-- Language -->
<div class="languages">
<select class="lang" onchange="window.location.href=this.value" id="languagechooser">
{% for t in page.translations -%}
{% if t.lang != config.default_language -%}
<option value="{{t.permalink}}"
{% else -%}
<option value="{{t.permalink}}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{%- endif -%}
>
{%- if longlang -%}
{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})
{%- else -%}
{{ t.lang }}
{%- endif -%}
</option>
{% endfor -%}
</select>
</div>
{% endmacro render_language -%}
{% macro metaOgpLangs() -%}
{% for t in page.translations -%}
{% if t.lang == lang -%}
@@ -6,4 +32,5 @@
<meta property="og:locale:alternate" content="{{t.lang}}_{{t.lang | upper}}" />
{% endif -%}
{% endfor -%}
{% endmacro metaOgpLangs -%}
{% endmacro metaOgpLangs -%}
+51 -16
View File
@@ -1,18 +1,53 @@
{% macro render_2ndlayer() %}
{% for subsection in section.subsections | sort %}
<div class="subsection">
{% set subsection_item = get_section(path=subsection) %}
{{ subsection_item.title }}
</dvi>
{% endfor %}
{% endmacro render_2ndlayer %}
{% macro render_language(longlang=true) -%}
<!-- Language -->
<div class="languages">
<select class="lang" onchange="window.location.href=this.value">
{% for t in section.translations -%}
{% if t.lang != config.default_language -%}
<option value="{{t.permalink}}"
{% else -%}
<option value="{{t.permalink}}"
{% endif -%}
{%- if t.lang == lang -%}
selected="selected"
{%- endif -%}
>
{%- if longlang -%}
{{ trans(key=t.lang, lang=lang) }} ({{t.lang}})
{%- else -%}
{{ t.lang }}
{%- endif -%}
</option>
{% endfor -%}
</select>
</div>
{% endmacro render_language -%}
{% macro metaOgpLangs() -%}
{% for t in section.translations -%}
{% if t.lang == lang -%}
<meta property="og:locale" content="{{t.lang}}_{{t.lang | upper}}" />
{% else -%}
<meta property="og:locale:alternate" content="{{t.lang}}_{{t.lang | upper}}" />
{% endif -%}
{% endfor -%}
{% endmacro metaOgpLangs -%}
{% for t in section.translations -%}
{% if t.lang == lang -%}
<meta property="og:locale" content="{{t.lang}}_{{t.lang | upper}}" />
{% else -%}
<meta property="og:locale:alternate" content="{{t.lang}}_{{t.lang | upper}}" />
{% endif -%}
{% endfor -%}
{% endmacro metaOgpLangs -%}
{% macro getPictures(num_iterate=1,width=240, height=180, withimagelink=false,link="/",alt="picture") %}
{% set i=0 %}
{% for asset in section.assets -%}
{%- if asset is matching("[.](jpg|png)$") -%}
{% set image = resize_image(path=asset, width=width, height=height) %}
<a href="{{ get_url(path=asset) }}" target="_blank">
<img src="{{ image.url }}" alt="{{alt}}"/>
</a>
{% elif asset is matching("[.](svg)$")%}
<img src="{{ get_url(path=asset) }}" width="{{width}}" height="{{height}} alt="picture{{ i| as_str }}" />
{%- endif %}
{% set i = i + 1 %}
{% if i==num_iterate %}
{% break %}
{% endif %}
{%- endfor %}
{% endmacro getPictures%}
+89 -10
View File
@@ -1,26 +1,105 @@
{% import "_macros.html" as macros %}
<!DOCTYPE html>
<html lang="{{lang}}">
<head>
<meta charset="UTF-8" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{get_url(path='home.css')}}" />
<script src="/js/serinty-theme.js"></script>
{% block head %}{% endblock %}
<link rel="icon" type="image/x-icon" sizes="192x192" href="/images/serinty_logo.png" />
<link rel="apple-touch-icon" href="/images/serinty_logo.png" />
<link rel="stylesheet" href="{{get_url(path='style.css')}}" />
{% block head -%}{% endblock -%}
<!-- head end base.html-->
</head>
<body>
<header>
{% block header %}{% endblock %}
{% block header %}
<!-- Large Navbar -->
<div class="nav-large">
<div class="container">
<div class="wrapper flex justify-between align-center">
{{ macros::render_logo() }}
<!-- Nav links -->
<nav class="flex justify-center align-center">
{% block nav %} {% endblock %}
<!-- Dark Mode Toggle -->
<div class="mode-toggle flex align-center justify-center">
<!-- Sun -->
<svg
class="sun hide"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 16 16"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path>
</svg>
<!-- Moon -->
<svg
class="moon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 16 16"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"></path>
</svg>
</div>
<!-- Hamburger -->
<div class="hamburger flex flex-col" onclick="hamburger()">
<svg
stroke="currentColor"
fill="none"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path d="M2 5.99519C2 5.44556 2.44556 5 2.99519 5H11.0048C11.5544 5 12 5.44556 12 5.99519C12 6.54482 11.5544 6.99039 11.0048 6.99039H2.99519C2.44556 6.99039 2 6.54482 2 5.99519Z"
fill="currentColor"
></path>
<path
d="M2 11.9998C2 11.4501 2.44556 11.0046 2.99519 11.0046H21.0048C21.5544 11.0046 22 11.4501 22 11.9998C22 12.5494 21.5544 12.9949 21.0048 12.9949H2.99519C2.44556 12.9949 2 12.5494 2 11.9998Z"
fill="currentColor"
></path>
<path
d="M2.99519 17.0096C2.44556 17.0096 2 17.4552 2 18.0048C2 18.5544 2.44556 19 2.99519 19H15.0048C15.5544 19 16 18.5544 16 18.0048C16 17.4552 15.5544 17.0096 15.0048 17.0096H2.99519Z"
fill="currentColor"
></path>
</svg>
</div>
</nav>
</div>
</div>
</div>
{% endblock %}
</header>
<div class="hero">{% block content %}{% endblock %}</div>
<main>{% block content %}{% endblock %}</main>
<footer>
{% if config.extra.debug %}
<div><code>{{ __tera_context }}</code></div>
{% block footer %}
<div class="container wrapper grid">
<!-- footer -->
{{ macros::render_footerlist() }}
<!-- Copyright -->
<div class="copyright flex justify-center align-center">
<span>© {{ config.extra.startyear }} - <span id="year">current year</span> Serinty Ltd.</span>
</div>
{% if config.extra.debug==true %}
<hr/>
<div class="debug"><code>{{ __tera_context }}</code></div>
{% endif %}
<div>{% block footer %}{% endblock %}</div>
{% endblock %}
</div>
</footer>
<!-- Scripts -->
<script src="{{get_url(path='js/script.js')}}"></script>
</body>
</html>
+53 -26
View File
@@ -1,26 +1,53 @@
{% extends "base.html"%}
{% import "_macros.html" as macros %}
{% block head %}
<link rel="stylesheet" href="{{get_url(path='navbar.css')}}" />
<title>{{ section.title }}</title>
{{ super() }}
{% endblock %}
{% block header %}
{{ macros::render_header() }}
{% endblock %}
{% block content %}
<section>
<div class="section-cont">
<div class="text">
<h1>{{section.title}}</h1>
<p>{{section.description}}</p>
</div>
<div class="image">
<img src="{{get_url(path='images/group.png')}}" alt="" />
</div>
</div>
<div class="extra-cont">
<p>{{section.content | safe}}</p>
</div>
</section>
{% endblock %}
{% extends "base.html"%}
{% import "_section_macros.html" as smacros %}
{% import "_macros.html" as macros %}
{% block head -%}
<meta name="description" content="section.description" />"
<meta property="og:title" content="{{ section.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" />
{% if section.description -%}
<meta property="og:description" content="{{ section.description }}" />
{% endif -%}
<meta property="og:determiner" content="the" />
{{ smacros::metaOgpLangs() }}
<meta property="og:site_name" content="{{ config.title }}" />
<title>{{ section.title }}</title>
<!-- head end index.html -->
{{ super() }}
{% endblock -%}
{% block nav -%}
{{ macros::render_nav( section=get_section(path="_index.md")) }}
{{ smacros::render_language() }}
{% endblock -%}
{% block content %}
{{ super() }}
<!-- Hero Section -->
<section class="hero">
<div class="container wrapper justify-center align-center">
<hgroup>
<h1>{{section.title}}</h1>
<p>{{section.description}}</p>
</hgroup>
{% if section.assets %}
<!-- img -->
<div class="img flex justify-center align-center">
<!-- TODO: get image name and alternative text dynamically -->
{{ smacros::getPictures() }}
<!-- <img src="{{get_url(path='images/group.png')}}" alt="group" /> -->
</div>
{% endif %}
</div>
</section>
<!-- Pagecontent Section -->
<section class="pagecontent">
<div class="container wrapper grid">
<!-- Paras -->
<div class="paras grid">
{{section.content | safe}}
</div>
</div>
</section>
{% endblock %}
+55 -54
View File
@@ -1,54 +1,55 @@
{% extends "base.html"%}
{% import "_macros.html" as macros %}
{% import "_page_macros.html" as pmacros -%}
{% block head %}
<link rel="stylesheet" href="{{get_url(path='navbar.css')}}" />
<title>{{ page.title }}</title>
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" />
{% if section.description -%}
<meta property="og:description" content="{{ page.description }}" />
{% endif -%}
<meta property="og:determiner" content="the" />
{{ pmacros::metaOgpLangs() }}
<meta property="og:site_name" content="{{ config.title }}" />
{{ super() }}
{% endblock %}
{% block header %}
{{ macros::render_header() }}
{% endblock %}
<div id="toc_container">
{% if page.toc %}
<p class="toc_title">Contents</p>
<div class="toc_list">
{% for h1 in page.toc %}
<div>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<div>
{% for h2 in h1.children %}
<div>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% block content %}
<main>
<article>
{{ page.content | safe }}
</article>
</main>
{% endblock %}
{% block footer %}
<div><p>{{ page.toc }} </p></div>
{% endblock %}
{% extends "base.html"%}
{% import "_macros.html" as macros -%}
{% import "_page_macros.html" as pmacros -%}
{% block head %}
<link rel="stylesheet" href="{{get_url(path='navbar.css')}}" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" />
{% if page.description -%}
<meta property="og:description" content="{{ page.description }}" />
{% endif -%}
<meta property="og:determiner" content="the" />
{{ pmacros::metaOgpLangs() }}
<meta property="og:site_name" content="{{ config.title }}" />
<title>{{ page.title }}</title>
{{ super() }}
{% endblock %}
{% block nav %}
{{ macros::render_nav( section=get_section(path="_index.md")) }}
{{ pmacros::render_language() }}
{% endblock %}
<div id="toc_container">
{% if page.toc %}
<p class="toc_title">Contents</p>
<div class="toc_list">
{% for h1 in page.toc %}
<div>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<div>
{% for h2 in h1.children %}
<div>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% block content %}
<main>
<article>
{{ page.content | safe }}
</article>
</main>
{% endblock %}
{% block footer %}
<div><p>{{ page.toc }} </p></div>
{% endblock %}
-16
View File
@@ -1,17 +1 @@
{% extends "index.html" -%}
{% import "_section_macros.html" as smacros -%}
{% block head -%}
<meta property="og:title" content="{{ section.title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" />
{% if section.description -%}
<meta property="og:description" content="{{ section.description }}" />
{% endif -%}
<meta property="og:determiner" content="the" />
{{ smacros::metaOgpLangs() }}
<meta property="og:site_name" content="{{ config.title }}" />
{{ super() }}
{% endblock -%}
{% block content -%}
{{ section.content | safe }}
{% endblock -%}
+3
View File
@@ -0,0 +1,3 @@
{% if phonenumber -%}
<a aria-label="Chat on WhatsApp" target="_blank" href="https://wa.me/{{ phonenumber }}"> <img alt="Chat on WhatsApp" src="/images/WhatsAppButtonGreenSmall.svg" /> </a>
{% endif -%}