mirror of https://github.com/lxndrblz/anatole.git

Alexander Eble
22.42.2021 3b4e8f37c6d17f73f211627f4b80dd23cfcb76be
Support Additional Footer Links (#218)

* feat: add markup to allow additional footer links

* feat: style footer list

* feat: add imprint footer link

* docs: add imprint example page

* refactor: use partial with modular class name modifier

* fix: removed title from index page

* feat: show footer on mobile; make aside fixed; rework css

* feat: show footer on mobile; make aside fixed, rework css (RTL)

* fix: Improved presentation on Utrawide Screen monitors

Co-authored-by: Alexander Bilz <mail@alexbilz.com>
1 files added
10 files modified
1467 ■■■■ changed files
assets/css/style.css 173 ●●●●● patch | view | raw | blame | history
assets/css/style.rtl.css 1119 ●●●●● patch | view | raw | blame | history
assets/js/anatole-header.js 2 ●●●●● patch | view | raw | blame | history
exampleSite/config/_default/menus.en.toml 8 ●●●● patch | view | raw | blame | history
exampleSite/content/english/imprint.md 8 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 22 ●●●●● patch | view | raw | blame | history
layouts/index.html 1 ●●●● patch | view | raw | blame | history
layouts/partials/footer.html 28 ●●●● patch | view | raw | blame | history
layouts/partials/head.html 18 ●●●●● patch | view | raw | blame | history
layouts/partials/navbar.html 52 ●●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 36 ●●●● patch | view | raw | blame | history
assets/css/style.css
@@ -53,7 +53,7 @@
    font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
    font-size: 15px;
    width: 100%;
    margin: 0 auto 30px auto;
    margin: 0 auto;
    background-color: var(--bg-color);
}
@@ -185,106 +185,106 @@
}
/*animation ends*/
.content {
    height: auto;
    float: right;
    width: var(--content-width);
    margin-top: 60px;
.nav__list {
    margin: 0;
}
.page-top {
main {
    width: var(--content-width);
}
.content {
    height: auto;
    margin-top: 80px;
}
header {
    width: var(--content-width);
    position: fixed;
    right: 0;
    z-index: 3;
    background-color: var(--bg-color);
    height: 60px;
    border-bottom: 1px solid var(--border-color);
}
.page-top .nav {
header .nav__list {
    list-style: none;
    padding: 11px 30px;
    float: left;
    padding: 20px 30px;
    font-size: 12px;
    display: block;
    width: calc(100% - 30px);
}
.page-top .nav li {
header .nav__list li {
    position: relative;
    display: initial;
}
header .nav__list li:not(:last-of-type) {
    padding-right: 20px;
}
.page-top .nav a {
header .nav__list a {
    color: var(--nav-text-color);
}
.page-top .nav a:hover {
header .nav__list a:hover {
    color: #2660ab;
}
.page-top .nav a.current {
header .nav__list a.current {
    color: var(--nav-text-color);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--nav-text-color);
}
.theme-switch-item {
    float: right;
    font-size: 2em;
.theme-switch {
    margin-top: -5px;
    color: var(--nav-text-color);
    font-size: 1rem;
}
.page-top .information {
header .information {
    float: right;
    padding-top: 12px;
    padding-right: 20px;
}
.page-top .information .avatar {
header .information .avatar {
    float: right;
}
.page-top .information .avatar img {
header .information .avatar img {
    width: 32px;
    height: 32px;
    border-radius: 300px;
}
.page-top .information .back_btn {
header .information .back_btn {
    float: left;
    padding-top: 5px;
    margin-right: -10px;
}
.page-top .information .back_btn li {
header .information .back_btn li {
    display: initial;
    padding-right: 40px;
}
.sidebar {
aside {
    width: var(--sidebar-width);
}
.sidebar {
    -webkit-background-size: cover;
    background-size: cover;
    background-color: var(--bg-color);
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 4;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    float: left;
}
.sidebar .logo-title {
    top: 40%;
    text-align: center;
    padding-top: 240px;
    flex: 1;
}
.sidebar .logo-title .description {
@@ -323,7 +323,6 @@
    padding: 0;
    font-size: 14px;
    text-align: center;
    flex: 7;
}
.sidebar .social-links i {
@@ -619,6 +618,18 @@
    color: #2660ab;
}
.footer__list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}
.footer__item:not(:first-of-type)::before {
  content: "\00B7";
  padding: 4px;
}
/*for archive*/
.archive {
    width: 100%;
@@ -905,13 +916,61 @@
    display: none;
}
@media screen and (min-width: 960px), print {
    header {
        border-bottom: 1px solid var(--border-color);
    }
    .sidebar {
        height: 100vh;
        display: flex;
        flex-direction: column;
        position: fixed;
        width: var(--sidebar-width);
    }
    .sidebar__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .nav__list {
        display: flex;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        min-height: 0;
    }
    .wrapper {
        display: flex;
    }
    .footer--base {
        display: none;
    }
}
@media screen and (max-width: 960px),
print {
    aside {
        width: 100%;
    }
    .sidebar {
        width: 100%;
        position: absolute;
        border-right: none;
        z-index: 1;
        height: auto;
        min-height: auto;
    }
    .sidebar .logo-title {
@@ -927,7 +986,7 @@
        font-size: 20px;
    }
    .page-top {
    header {
        width: 100%;
    }
@@ -935,11 +994,12 @@
        line-height: 1.6;
    }
    .content {
        margin-top: 420px;
    main {
        width: 100%;
    }
    .content {
        z-index: 2;
        position: absolute;
    }
    .post figure.right {
@@ -955,7 +1015,7 @@
    }
    
    .footer {
    .footer--sidebar {
        display: none;
    }
@@ -963,21 +1023,23 @@
        display: grid;
    }
    .page-top .nav {
    nav {
        display: none;
    }
    header .nav__list {
        background-color: var(--secondary-bg-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, .1);
        padding: .5rem 0;
        width: 100%;
        display: none;
        margin-top: 0px;
    }
    .page-top .nav.is-active {
        /* display: block; */
    header nav.is-active {
        display: block;
    }
    .page-top .nav li {
    header .nav__list li {
        display: block;
        flex-grow: 0;
        flex-shrink: 0;
@@ -989,7 +1051,7 @@
        font-size: 1.3em;
    }
    .page-top .nav a.current {
    header .nav__list a.current {
        border-bottom: none;
    }
@@ -1027,10 +1089,6 @@
        top: calc(50% + 4px);
    }
    .theme-switch-item {
        float: none;
    }
    .list-with-title .listing .listing-post .post-time {
        max-width: 20%;
    }
@@ -1085,7 +1143,7 @@
}
@media print {
    .page-top {
    header {
        display: none;
    }
}
@@ -1093,20 +1151,17 @@
@media (min-width: 1921px){
    .sidebar {
        padding-left: 17%;
        width: calc(var(--sidebar-width) - 20%);
        padding-right: 3%;
        width: calc(var(--sidebar-width) - 20%);
    }
    .content {
        margin-left: calc(15% + var(--sidebar-width));
        width: calc(var(--content-width) - 20%);
        padding-right: 20%;
    }
    .page-top{
    header{
        position: fixed;
        width: calc(var(--content-width));
        width: var(--content-width);
    }
}
/* (CONTACT) FORM */
.contact-form {
assets/css/style.rtl.css
@@ -1,1178 +1,103 @@
@charset "UTF-8";
:root {
    --bg-color: #fff;
    --secondary-bg-color: #eeeeee;
    --heading-color: #464646;
    --body-color: rgba(0, 0, 0, 0.7);
    --post-color: rgba(0, 0, 0, 0.44);
    --border-color: rgba(0, 0, 0, 0.15);
    --form-border-color: #9f9f9f;
    --form-button-hover-border-color: #000;
    --pre-bg-color: #f9f9fd;
    --nav-text-color: #5a5a5a;
    --tag-color: #424242;
    --blockquote-text-color: #858585;
    --blockquote-border-color: #dfe2e5;
    --link-color: #0366d7;
    --thumbnail-height: 15em;
    scroll-padding-top: 100px;
    --body-max-width: 1920px;
    --content-ratio: {{ .Site.Params.contentratio | default 0.6 }};
    --sidebar-ratio: calc(1 - var(--content-ratio));
    --content-max-width: calc(var(--body-max-width) * var(--content-ratio));
    --sidebar-max-width: calc(var(--body-max-width) - var(--content-max-width));
    --content-width: calc(var(--content-ratio) * 100%);
    --sidebar-width: calc(var(--sidebar-ratio) * 100%);
}
html[data-theme='dark'] {
    --bg-color: #010408;
    --secondary-bg-color: rgb(56, 56, 56);
    --heading-color: #c9d1d9;
    --body-color: rgb(169, 169, 179);
    --post-color: rgba(0, 0, 0, 0.44);
    --border-color: #30363d;
    --form-border-color: rgb(169, 169, 179);
    --form-button-hover-border-color: #fff;
    --pre-bg-color: rgb(33, 33, 45);
    --nav-text-color: rgb(191, 191, 191);
    --tag-color: rgb(191, 191, 191);
    --blockquote-text-color: #808080;
    --blockquote-border-color: #424242;
    --link-color: #58a6fe;
}
html {
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}
body {
    color: var(--body-color);
    font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
    font-size: 15px;
    width: 100%;
    margin: 0 auto 30px auto;
    background-color: var(--bg-color);
}
p {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
a {
    text-decoration: none;
}
blockquote {
    padding: 0 1em;
    border-right: .25em solid var(--blockquote-border-color);
    color: var(--blockquote-text-color);
}
.category {
    padding: 4px 6px;
    border-radius: 3px;
    color: var(--tag-color) !important;
    background-color: var(--secondary-bg-color);
    border: 1px solid var(--border-color);
}
.tag::before {
    content: "#";
    opacity: .5;
    border-left: inherit;
}
.tag,
.category {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    margin: 5px 0 5px 8px;
}
pre {
    background-color: var(--pre-bg-color);
    padding: 5px;
    display: block;
    overflow-x: auto;
}
.info i {
    opacity: 0.5;
    margin-left: 5px;
    margin-right: inherit;
}
a:link,
a:visited {
    opacity: 1;
    color: var(--tag-color);
}
a:hover,
a:active {
    color: #2660ab;
}
/*basic styles ends*/
/*animation starts*/
.animated {
    transition: top .8s linear;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -ms-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
}
.animated.hinge {
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -ms-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
}
@-webkit-keyframes fadeInDown {
    0% {
        -webkit-transform: translateY(-20px);
    }
    100% {
        -webkit-transform: translateY(0);
    }
}
@-moz-keyframes fadeInDown {
    0% {
        -moz-transform: translateY(-20px);
    }
    100% {
        -moz-transform: translateY(0);
    }
}
@-o-keyframes fadeInDown {
    0% {
        -o-transform: translateY(-20px);
    }
    100% {
        -o-transform: translateY(0);
    }
}
@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    -moz-animation-name: fadeInDown;
    -o-animation-name: fadeInDown;
    animation-name: fadeInDown;
}
/*animation ends*/
.content {
    height: auto;
    float: left;
    width: var(--content-width);
    margin-top: 60px;
}
.page-top {
    width: var(--content-width);
    position: fixed;
    left: 0;
    z-index: 3;
    background-color: var(--bg-color);
    height: 60px;
    border-bottom: 1px solid var(--border-color);
}
.page-top .nav {
    list-style: none;
    padding: 11px 30px;
    float: right;
    font-size: 12px;
    display: block;
    width: calc(100% - 30px);
}
.page-top .nav li {
    position: relative;
    display: initial;
    padding-left: 20px;
}
.page-top .nav a {
    color: var(--nav-text-color);
}
.page-top .nav a:hover {
    color: #2660ab;
}
.page-top .nav a.current {
    color: var(--nav-text-color);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--nav-text-color);
}
.theme-switch-item {
    float: left;
    font-size: 2em;
    margin-top: -5px;
}
.page-top .information {
    float: left;
    padding-top: 12px;
    padding-left: 20px;
}
.page-top .information .avatar {
    float: left;
}
.page-top .information .avatar img {
    width: 32px;
    height: 32px;
    border-radius: 300px;
}
.page-top .information .back_btn {
    float: right;
    padding-top: 5px;
    margin-left: -10px;
}
.page-top .information .back_btn li {
    display: initial;
    padding-left: 40px;
}
.sidebar {
    width: var(--sidebar-width);
    -webkit-background-size: cover;
    background-size: cover;
    background-color: var(--bg-color);
    height: 100%;
    top: 0;
    right: 0;
    position: fixed;
    z-index: 4;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.sidebar .logo-title {
    text-align: center;
    padding-top: 240px;
    flex: 1;
}
.sidebar .logo-title .description {
    font-size: 14px;
    margin: 0 1em;
}
.sidebar .logo-title .logo {
    margin: 0 auto;
}
.sidebar .logo-title .title img {
    width: 127px;
    height: 127px;
    border-radius: 50%;
}
.sidebar .logo-title .title h3 {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
    margin: 1em;
}
.sidebar .logo-title .title a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 2rem;
    font-weight: bold;
}
.sidebar .social-links {
    list-style: none;
    padding: 0;
    font-size: 14px;
    text-align: center;
    flex: 7;
    border-right: inherit;
}
.sidebar .social-links i {
    margin-left: 3px;
}
.sidebar .social-links li {
    display: inline;
    padding: 0 4px;
    line-height: 0;
}
.sidebar .social-links a {
    color: var(--heading-color);
}
.sidebar .social-links a:hover {
    color: #2660ab;
}
.post {
    background-color: var(--bg-color);
    margin: 30px;
}
.post .post-title h1 {
    text-transform: uppercase;
    font-size: 30px;
    letter-spacing: 5px;
    line-height: 1;
}
.post .post-title h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    color: var(--heading-color);
}
.post .post-title h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    font-weight: 600;
    /* color: #464646; */
    color: var(--heading-color);
    font-size: 22px;
    margin: 0;
}
.post .post-title a {
    text-decoration: none;
    letter-spacing: 1px;
    color: var(--heading-color);
}
.post .post-title a:hover {
    text-decoration: underline;
}
.post .post-content a {
    text-decoration: none;
    letter-spacing: 1px;
    color: #2660ab;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.post .post-content a:hover {
    color: #2F69B3;
}
.post .post-content h3 {
    font-size: 22px;
    font-weight: 600;
}
.post .post-content h4 {
    /* color: var(--heading-color); */
    font-size: 16px;
}
.post .post-content img {
    max-width: 100%;
}
.post .post-content ul {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-content ol {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-footer {
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.post .post-footer .meta {
    max-width: 100%;
    display: flex;
    color: #bbbbbb;
}
.post .post-footer .meta .info {
    float: right;
    font-size: 12px;
    margin-bottom: 1em;
    color: var(--body-color);
    margin-right: inherit;
}
.post .post-footer .info .separator a {
    margin-left: 0.2em;
    margin-right: inherit;
}
.post .post-footer .meta .info .date {
    margin-left: 10px;
    margin-right: 5px
}
.post figure {
    max-width: 100%;
    height: auto;
    margin: 0;
    text-align: center;
}
.post figure.right {
    float: left;
    margin-right: 1.5em;
    max-width: 50%;
    margin-left: inherit;
}
.post figure.left {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}
.post figure.big {
    max-width: 100vw;
}
.info {
    margin: 1em;
    margin-right: inherit;
}
.info span {
    margin-left: 0.5em;
}
.post .post-footer .meta a {
    text-decoration: none;
    color: var(--body-color);
}
.post .post-footer .meta a:hover {
    color: #2660ab;
    margin-right: inherit;
}
.post .post-footer .meta i {
    margin-left: 6px;
    margin-right: inherit;
}
.post .post-footer .tags {
    padding-bottom: 15px;
    font-size: 13px;
}
.post .post-footer .tags ul {
    list-style-type: none;
    display: inline;
    margin: 0;
    padding: 0;
}
.post .post-footer .tags ul li {
    list-style-type: none;
    margin: 0;
    padding-left: 5px;
    display: inline;
}
.post .post-footer .tags a {
    text-decoration: none;
    color: var(--post-color);
    font-weight: 400;
}
.post .post-footer .tags a:hover {
    text-decoration: none;
}
.post .post-thumbnail {
    width: 100%;
    padding-bottom: 1em;
    box-shadow: #000;
    border-radius: 0.5em;
    overflow: hidden;
    transition: box-shadow .3s ease;
}
.post .post-thumbnail img {
    width: 100%;
    height: var(--thumbnail-height);
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-bottom: 0px;
}
.pagination {
    margin: 30px;
    padding: 0px 0 56px 0;
    text-align: center;
}
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 13px;
}
.pagination ul li {
    margin: 0 2px 0 2px;
    display: inline;
    line-height: 1;
}
.pagination ul li a {
    text-decoration: none;
    color: var(--body-color);
    padding-right: inherit;
}
.pagination .pre {
    float: right;
}
.pagination .next {
    float: left;
}
.like-reblog-buttons {
    float: left;
}
.like-button {
    float: left;
    padding: 0 10px 0 0;
}
.reblog-button {
    float: left;
    padding: 0;
}
#install-btn {
    position: fixed;
    bottom: 0px;
    left: 6px;
}
#disqus_thread {
    margin: 30px;
    border-bottom: 1px solid var(--border-color);
}
.footer {
    clear: both;
    text-align: center;
    font-size: 10px;
    margin: 0 auto;
    bottom: 0;
    width: 100%;
    padding-bottom: 20px;
    flex: 0;
    position: relative;
}
.footer a {
    color: #A6A6A6;
}
.footer a:hover {
    color: #2660ab;
}
/*for archive*/
.archive {
    width: 100%;
}
.list-with-title {
    font-size: 14px;
    margin: 30px;
    padding: 0;
}
.list-with-title li {
    list-style-type: none;
    padding: 0;
}
.list-with-title .listing-title {
    font-size: 24px;
    color: #666666;
    font-weight: 600;
    line-height: 2.2em;
}
.list-with-title .listing {
    padding: 0;
}
.list-with-title .listing .listing-post {
    padding-bottom: 5px;
}
.list-with-title .listing .listing-post .post-time {
    float: left;
    display: inline-block;
    max-width: 10%;
    text-align: left;
    color: #C5C5C5;
}
.list-with-title .listing .listing-post a {
    color: #8F8F8F;
    width: 90%;
    display: inline-block;
}
.list-with-title .listing .listing-post a:hover {
    color: #2660ab;
}
/* share */
.share {
    margin: 0px 30px;
    display: inline-flex;
}
.evernote {
    width: 32px;
    height: 32px;
    border-radius: 300px;
    background-color: #3E3E3E;
    margin-left: 5px;
}
.evernote a {
    color: #fff;
    padding: 11px;
    font-size: 12px;
}
.evernote a:hover {
    color: #ED6243;
    padding: 11px;
}
.weibo {
    width: 32px;
    height: 32px;
    border-radius: 300px;
    background-color: #ED6243;
    margin-left: 5px;
}
.weibo a {
    color: #fff;
    padding: 9px;
}
.weibo a:hover {
    color: #BD4226;
}
.twitter {
    width: 32px;
    height: 32px;
    border-radius: 300px;
    background-color: #59C0FD;
    margin-left: 5px;
}
.twitter a {
    color: #fff;
    padding: 9px;
}
.twitter a:hover {
    color: #4B9ECE;
}
/* about */
.about {
    margin: 30px;
}
.about h3 {
    font-size: 22px;
}
/* links*/
.links {
    margin: 30px;
}
.links h3 {
    font-size: 22px;
}
.links a {
    cursor: pointer;
}
/* Comments */
.comment-count {
    color: #666;
}
.tab-community {
    color: #666;
}
.read_more {
    font-size: 14px;
}
.back-button {
    padding-top: 30px;
    max-width: 100px;
    padding-right: 40px;
    float: right;
}
/* Facebook Comments */
#fb_comments_container {
    margin: 30px;
}
.utterances {
    max-width: unset;
}
/* Buttons */
a.btn {
    color: #868686;
    font-weight: 400;
}
.btn {
    display: inline-block;
    position: relative;
    outline: 0;
    color: var(--post-color);
    background: transparent;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    font-weight: 400;
    font-style: normal;
    border-radius: 999em;
}
.btn:hover {
    display: inline-block;
    position: relative;
    outline: 0px;
    color: #464545;
    background: transparent;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #464545;
    white-space: nowrap;
    font-weight: 400;
    font-style: normal;
    border-radius: 999em;
}
[role="back"] {
    padding: 0.5em 1.25em;
    line-height: 1.666em;
}
[role="home"] {
    padding: 0.5em 1.25em;
    line-height: 1.666em;
}
[role="navigation"] {
    padding: 0.5em 1.25em;
    line-height: 1.666em;
}
[role="tags"] {
    padding: 6px 12px;
}
/* Menu */
.menu {
    float: left;
    padding-top: 30px;
}
.menu .btn-down {
    margin: 0px;
}
.menu .btn-down li {
    list-style: none;
    width: 100px;
}
.menu .btn-down li a {
    display: inline-block;
    position: relative;
    padding: 0.5em 1.25em;
    outline: 0;
    color: var(--post-color);
    background: transparent;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    font-weight: 400;
    font-style: normal;
    border-radius: 999em;
    margin-top: 5px;
}
.menu .btn-down li a:hover {
    position: relative;
    padding: 0.5em 1.25em;
    outline: 0;
    color: #fff;
    background: #3CBD10;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-weight: 400;
    font-style: normal;
    border-radius: 999em;
    margin-top: 5px;
}
.menu .btn-down div {
    position: absolute;
    visibility: hidden;
    width: 100px;
    float: left;
}
.page_404 {
    text-align: center;
    padding-top: 50px;
}
.navbar-burger {
    display: none;
}
@media screen and (max-width: 960px),
print {
    .sidebar {
        width: 100%;
        position: absolute;
        border-left: none;
        z-index: 1;
@media screen and (min-width: 960px), print {
    header {
        position: fixed;
        left: 0;
        right: auto;
    }
    .sidebar .logo-title {
        padding-top: 120px;
    header .nav__list li {
        padding-left: 20px;
    }
    .sidebar .logo-title .title img {
        width: 100px;
        height: 100px;
    }
    .sidebar .logo-title .title h3 {
        font-size: 20px;
    }
    .page-top {
        width: 100%;
    }
    .post-title h3 {
        line-height: 1.6;
    }
    .content {
        margin-top: 420px;
        width: 100%;
        z-index: 2;
        position: absolute;
    }
    .post figure.right {
        float: unset;
        max-width: 100%;
        margin: 0;
    header .nav__list li:not(:last-of-type) {
        padding-right: inherit;
    }
    
    .post figure.left {
        float: unset;
        max-width: 100%;
        margin: 0;
    }
    .footer {
        display: none;
    }
    .share {
        display: grid;
    }
    .page-top .nav {
        background-color: var(--secondary-bg-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, .1);
        padding: .5rem 0;
        width: 100%;
        display: none;
        margin-top: 0px;
    }
    .page-top .nav.is-active {
        /* display: block; */
        display: block;
    }
    .page-top .nav li {
        display: block;
        flex-grow: 0;
        flex-shrink: 0;
        line-height: 2.5;
        padding: .5rem .75rem;
        position: relative;
        text-transform: uppercase;
        text-align: center;
        font-size: 1.3em;
    }
    .page-top .nav a.current {
        border-bottom: none;
    }
    .navbar-burger {
        cursor: pointer;
        display: block;
        height: 3.25rem;
        position: relative;
        width: 3.25rem;
        margin-right: auto;
    }
    .navbar-burger span {
        background-color: var(--heading-color);
        display: block;
        height: 1px;
        right: calc(50% - 8px);
        position: absolute;
        transform-origin: center;
        transition-duration: 86ms;
        transition-property: background-color, opacity, transform;
        transition-timing-function: ease-out;
        width: 16px;
    }
    .navbar-burger span:nth-child(1) {
        top: calc(50% - 6px);
    }
    .navbar-burger span:nth-child(2) {
        top: calc(50% - 1px);
    }
    .navbar-burger span:nth-child(3) {
        top: calc(50% + 4px);
    }
    .theme-switch-item {
        float: none;
    }
    .list-with-title .listing .listing-post .post-time {
        max-width: 20%;
    }
    .list-with-title .listing .listing-post a {
        width: 80%;
    }
}
/* Medium zoom */
.medium-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: opacity 300ms;
    will-change: opacity;
    background: var(--bg-color);
}
.medium-zoom--opened .medium-zoom-overlay {
    cursor: pointer;
    cursor: zoom-out;
    opacity: 1;
}
.medium-zoom-image {
    cursor: pointer;
    cursor: zoom-in;
    /*
      The `transition` is marked as "!important" for the animation to happen
      even though it's overriden by another inline `transition` style attribute.
      This is problematic with frameworks that generate inline styles on their
      images (e.g. Gatsby).
      See https://github.com/francoischalifour/medium-zoom/issues/110
     */
    transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;
    z-index: 100;
}
.medium-zoom-image--hidden {
    visibility: hidden;
}
.medium-zoom-image--opened {
    position: relative;
    cursor: pointer;
    cursor: zoom-out;
    will-change: transform;
}
@media print {
    .page-top {
        display: none;
    }
}
@media (min-width: 1921px){
    .sidebar {
        padding-right: 17%;
        width: calc(var(--sidebar-width) - 20%);
        padding-left: 3%;
    }
    .content {
        margin-right: calc(15% + var(--sidebar-width));
        width: calc(var(--content-width) - 20%);
        padding-right: inherit;
        padding-left: 20%;
    }
    .page-top{
        position: fixed;
        width: calc(var(--content-width));
    }
}
/* (CONTACT) FORM */
.contact-form {
    margin-top: 30px;
}
.form-style{
    width: 100%;
}
.form-style ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.form-style ul li {
    display: block;
    margin-bottom: 10px;
    min-height: 35px;
}
.form-style ul li .field-style {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-size: 14px;
    padding: 8px;
    outline: none;
    background-color: var(--bg-color);
    border: 1px solid var(--form-border-color);
    color: var(--body-color);
}
.form-style ul li    .field-style:focus {
    box-shadow: 0 0 5px;
    border:1px solid;
}
.form-style ul li .field-split {
    width: 49%;
}
.form-style ul li .field-full {
    width: 100%;
}
.form-style ul li input.align-left {
    float:right;
}
.form-style ul li input.align-right {
    float:left;
}
.form-style ul li textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--form-border-color);
    color: var(--body-color);
    width: 100%;
    height: auto;
}
.form-style ul li input[type="button"],
.form-style ul li input[type="submit"] {
    background-color: var(--bg-color);
    border: 1px solid var(--form-border-color);
    display: inline-block;
    cursor: pointer;
    color: var(--body-color);
    text-decoration: none;
    width: 100%;
}
.form-style ul li input[type="button"]:hover,
.form-style ul li input[type="submit"]:hover {
    background-color: var(--bg-color);
    border: 1px solid var(--form-button-hover-border-color);
}
/* (CONTACT) FORM END */
}
assets/js/anatole-header.js
@@ -1,6 +1,7 @@
document.addEventListener("DOMContentLoaded", function () {
// Get all "navbar-burger" elements
    var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"), 0);
    var nav = document.querySelector("nav");
// Check if there are any navbar burgers
    if ($navbarBurgers.length > 0) {
        // Add a click event on each of them
@@ -10,6 +11,7 @@
                var $target = document.getElementById(target);
                $el.classList.toggle("is-active");
                $target.classList.toggle("is-active");
                nav.classList.toggle("is-active");
            });
        });
    }
exampleSite/config/_default/menus.en.toml
@@ -20,4 +20,10 @@
  name = "Contact"
  weight = 400
  identifier = "contact"
  url = "/contact/"
  url = "/contact/"
  [[footer]]
  name = "imprint"
  weight = 1
  identifier = "imprint"
  url = "/imprint/"
exampleSite/content/english/imprint.md
New file
@@ -0,0 +1,8 @@
# Legal Disclosure
Information in accordance with the applicable law
Jane Doe\
Anatole Street 10\
2016 GoHugo\
Germany
layouts/_default/baseof.html
@@ -2,18 +2,22 @@
<html  dir="{{ .Site.Language.LanguageDirection | default "ltr" }}" lang="{{- site.Language.Lang -}}" data-theme="{{- .Site.Params.displayMode -}}">
{{- partial "head.html" . -}}
<body>
{{- partial "sidebar.html" . -}}
<div class="main">
    {{ partial "navbar.html" . }}
    <div class="autopagerize_page_element">
        <div class="content">
            {{- block "main" . }}{{- end }}
<header>{{ partial "navbar.html" . }}</header>
<div class="wrapper">
    <aside>
        {{- partial "sidebar.html" . -}}
    </aside>
    <main>
        <div class="autopagerize_page_element">
            <div class="content">
                {{- block "main" . }}{{- end }}
            </div>
        </div>
    </div>
    </main>
</div>
{{- partial "footer.html" . -}}
{{- partial "footer.html" (dict "context" . "footerClassModifier" "base") -}}
{{- if (eq .Site.Params.simpleAnalytics.enable true) -}}
    {{- partial "analytics/simpleanalytics.html" . -}}
{{- end -}}
layouts/index.html
@@ -1,7 +1,6 @@
{{ define "main" }}
    <div class="post {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
        <div class="post-title post-content">
            <h1>{{ .Title }}</h1>
            {{ .Content }}
        </div>
layouts/partials/footer.html
@@ -1,6 +1,26 @@
{{- partial "medium-zoom.html" . -}}
{{- partial "math.html" . -}}
{{- template "_internal/google_analytics_async.html" . -}}
<footer class="footer footer--{{ .footerClassModifier }}">
    <div class="by_farbox">
        <ul class="footer__list">
            <li class="footer__item">&copy;
                {{ if isset .context.Site.Params "copyright" }}
                    {{ replace .context.Site.Params.copyright "{{ YEAR }}" (now.Format "2006") | markdownify }}
                {{ else }}
                    {{ .context.Site.Params.author }} {{ now.Format "2006"}}
                {{end}}
            </li>
            {{ range .context.Site.Menus.footer }}
            <li class="footer__item">
                <a href="{{ .URL }}" {{ if strings.HasPrefix .URL "http" }} target="_blank" rel="noopener noreferrer" {{ end }} title="{{ .Title }}">
                    {{ .Name }}
                </a>
            </li>
            {{ end }}
        </ul>
    </div>
</footer>
{{- partial "medium-zoom.html" .context -}}
{{- partial "math.html" .context -}}
{{- template "_internal/google_analytics_async.html" .context -}}
{{- if and (hugo.IsProduction) (.Site.Params.gtagId) -}}
    {{ partial "google-analytics-gtag-async.html" . }}
    {{ partial "google-analytics-gtag-async.html" .context }}
{{- end -}}
layouts/partials/head.html
@@ -14,16 +14,6 @@
    {{- end -}}
    <!-- CSS -->
    {{ if eq .Site.Language.LanguageDirection "rtl"}}
    {{ $templateStyle := resources.Get "css/style.rtl.css" }}
    {{ $style := $templateStyle  | resources.ExecuteAsTemplate "css/main.css" . | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet"
          href="{{ $style.RelPermalink }}"
          integrity="{{ $style.Data.Integrity }}"
          crossorigin="anonymous"
          type="text/css">
    {{else}}
    {{ $templateStyle := resources.Get "css/style.css" }}
    {{ $style := $templateStyle  | resources.ExecuteAsTemplate "css/main.css" . | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet"
@@ -31,6 +21,14 @@
        integrity="{{ $style.Data.Integrity }}"
        crossorigin="anonymous"
        type="text/css">
    {{ if eq .Site.Language.LanguageDirection "rtl"}}
    {{ $templateStyle := resources.Get "css/style.rtl.css" }}
    {{ $style := $templateStyle  | resources.ExecuteAsTemplate "css/main.rtl.css" . | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet"
          href="{{ $style.RelPermalink }}"
          integrity="{{ $style.Data.Integrity }}"
          crossorigin="anonymous"
          type="text/css">
    {{end}}
    {{ $markupHighlightStyle := resources.Get "css/markupHighlight.css" | resources.Minify | resources.Fingerprint }}
    <link rel="stylesheet"
layouts/partials/navbar.html
@@ -1,34 +1,38 @@
<div class="page-top {{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
<div class="page-top {{ with .Site.Params.doNotLoadAnimations }} . {{ else }}animated fadeInDown{{ end }}">
    <a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
        <span aria-hidden="true"></span>
        <span aria-hidden="true"></span>
        <span aria-hidden="true"></span>
    </a>
    <ul class="nav" id="navMenu">
        {{ $url := .RelPermalink }}
        {{ range .Site.Menus.main }}
            {{ $active := eq $url .URL }}
            <li><a {{if $active }}class="current"{{end}}
                   href="{{ .URL }}"
                        {{ if strings.HasPrefix .URL "http" }}
                            target="_blank"
                            rel="noopener noreferrer"
                        {{ end }}
                   title="{{ .Title }}">{{ .Name }}</a></li>
        {{ end }}
        {{ if .Site.IsMultiLingual }}
            {{ range $.Site.Home.AllTranslations }}
                <li><a href="{{ .RelPermalink }}"
                       title="{{ .Language.LanguageName }}">{{ .Language.LanguageName }}</a>
                </li>
            {{ end }}
        {{ end }}
        {{ if not .Site.Params.disableThemeSwitcher }}
            <li class="theme-switch-item">
    <nav>
        <ul class="nav__list" id="navMenu">
            <div class="nav__links">
                {{ $url := .RelPermalink }}
                {{ range .Site.Menus.main }}
                    {{ $active := eq $url .URL }}
                    <li><a {{if $active }}class="current"{{end}}
                        href="{{ .URL }}"
                                {{ if strings.HasPrefix .URL "http" }}
                                    target="_blank"
                                    rel="noopener noreferrer"
                                {{ end }}
                        title="{{ .Title }}">{{ .Name }}</a></li>
                {{ end }}
                {{ if .Site.IsMultiLingual }}
                    {{ range $.Site.Home.AllTranslations }}
                        <li><a href="{{ .RelPermalink }}"
                            title="{{ .Language.LanguageName }}">{{ .Language.LanguageName }}</a>
                        </li>
                    {{ end }}
                {{ end }}
            </div>
            <li>
                {{ if not .Site.Params.disableThemeSwitcher }}
                <a class="theme-switch" title="Switch Theme">
                    <i class="fas fa-adjust fa-fw" aria-hidden="true"></i>
                </a>
                {{ end }}
            </li>
        {{ end }}
    </ul>
        </ul>
    </nav>
</div>
layouts/partials/sidebar.html
@@ -1,23 +1,23 @@
<div class="sidebar{{ with .Site.Params.doNotLoadAnimations }} . {{ else }} animated fadeInDown {{ end }}">
    <div class="logo-title">
        <div class="title">
            <img src="{{ .Site.Params.profilePicture | relURL }}" alt="profile picture">
            <h3 title=""><a href="/">{{ .Site.Params.Title }}</a></h3>
            <div class="description">
                <p>{{ replace .Site.Params.description "\n" "<br>" | safeHTML }}</p>
    <div class="sidebar__content">
        <div class="logo-title">
            <div class="title">
                <img src="{{ .Site.Params.profilePicture | relURL }}" alt="profile picture">
                <h3 title=""><a href="/">{{ .Site.Params.Title }}</a></h3>
                <div class="description">
                    <p>{{ replace .Site.Params.description "\n" "<br>" | safeHTML }}</p>
                </div>
            </div>
        </div>
        <ul class="social-links">
            {{ range $item := .Site.Params.socialIcons }}
                <li>
                    <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}">
                        <i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i>
                    </a>
                </li>
            {{ end }}
        </ul>
    </div>
    <ul class="social-links">
        {{ range $item := .Site.Params.socialIcons }}
            <li>
                <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}">
                    <i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i>
                </a>
            </li>
        {{ end }}
    </ul>
    <div class="footer">
        <div class="by_farbox">&copy; {{ if isset .Site.Params "copyright" }} {{ replace .Site.Params.copyright "{{ YEAR }}" (now.Format "2006") | markdownify }} {{ else }} {{ .Site.Params.author }} {{ now.Format "2006"}} {{end}}</div>
    </div>
    {{- partial "footer.html" (dict "context" . "footerClassModifier" "sidebar") -}}
</div>