🧹 Minor bug fixes identified by Sonarcube
| | |
| | | color: #2F69B3; |
| | | } |
| | | .post .post-content h3 { |
| | | /* */ |
| | | font-size: 22px; |
| | | font-weight: 600; |
| | | } |
| | |
| | | } |
| | | } |
| | | else { |
| | | console.log(theme); |
| | | // load a stored theme |
| | | if (theme == 'light') { |
| | | document.documentElement.setAttribute('data-theme', 'light'); |
| | |
| | | } |
| | | |
| | | document.addEventListener('DOMContentLoaded', function() { |
| | | themeSwitcher = document.querySelector('.theme-switch'); |
| | | var themeSwitcher = document.querySelector('.theme-switch'); |
| | | themeSwitcher.addEventListener('click', switchTheme, false); |
| | | }, false); |
| | | |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="{{- site.Language.Lang -}}"> |
| | | <html lang="{{- site.Language.Lang -}}" data-theme="light"> |
| | | {{- partial "head.html" . -}} |
| | | <body> |
| | | {{- partial "sidebar.html" . -}} |
| | |
| | | <html lang="en" data-theme="light"> |
| | | <head> |
| | | <title> {{.Site.Params.author}}{{ with .Title }} | {{ . }}{{ end }} </title> |
| | | <meta charset="utf-8"> |