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

Alexander Bilz
25.04.2020 1ab4d273aedb61782e04cd0fb32575174a8a7840
🧹 Minor bug fixes identified by Sonarcube
4 files modified
7 ■■■■ changed files
assets/css/style.css 1 ●●●● patch | view | raw | blame | history
assets/js/anatole-header.js 3 ●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
layouts/partials/head.html 1 ●●●● patch | view | raw | blame | history
assets/css/style.css
@@ -324,7 +324,6 @@
  color: #2F69B3;
}
.post .post-content h3 {
  /*  */
  font-size: 22px;
  font-weight: 600;
}
assets/js/anatole-header.js
@@ -23,7 +23,6 @@
        }
    }
    else {
        console.log(theme);
        // load a stored theme
        if (theme == 'light') {
            document.documentElement.setAttribute('data-theme', 'light');
@@ -47,7 +46,7 @@
}
document.addEventListener('DOMContentLoaded', function() {
    themeSwitcher = document.querySelector('.theme-switch');
    var themeSwitcher = document.querySelector('.theme-switch');
    themeSwitcher.addEventListener('click', switchTheme, false);
}, false);
layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{- site.Language.Lang -}}">
<html lang="{{- site.Language.Lang -}}" data-theme="light">
    {{- partial "head.html" . -}}
    <body>
        {{- partial "sidebar.html" . -}}
layouts/partials/head.html
@@ -1,4 +1,3 @@
<html lang="en" data-theme="light">
<head>
    <title> {{.Site.Params.author}}{{ with .Title }} | {{ . }}{{ end }} </title>
    <meta charset="utf-8">