From b114855859a073c22323ea9154df3d7626934927 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Sun, 18 Sep 2022 18:43:52 -0400 Subject: [PATCH] use 30vw of padding, makefile use latest hugo-obsidian, set dark mode as default, remove copyright --- Makefile | 2 +- assets/js/darkmode.js | 2 +- assets/styles/base.scss | 27 +++++++++++++-------------- i18n/en.toml | 2 +- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 563632a0b..86ad52778 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ serve: ## Serve Quartz locally $(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server --enableGitInfo --minify install: ## use v2.12 commit in hugo-obsidian repo - go install github.com/jackyzha0/hugo-obsidian@3ce308411ee36c94b33e082f984e1741c6354584 + go install github.com/jackyzha0/hugo-obsidian@latest build: $(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && \ diff --git a/assets/js/darkmode.js b/assets/js/darkmode.js index 0b4bd5f4f..62f6705d2 100644 --- a/assets/js/darkmode.js +++ b/assets/js/darkmode.js @@ -1,5 +1,5 @@ const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark' -const currentTheme = localStorage.getItem('theme') ?? userPref +const currentTheme = 'dark'; const syntaxTheme = document.querySelector("#theme-link"); diff --git a/assets/styles/base.scss b/assets/styles/base.scss index 57e90b75f..4316ccbe4 100644 --- a/assets/styles/base.scss +++ b/assets/styles/base.scss @@ -301,7 +301,6 @@ hr { } .singlePage { - .index-container { width: 160%; margin-left: -30%; @@ -311,7 +310,7 @@ hr { } padding: 0 16px; } - padding: 4em 25vw; + padding: 4em 30vw; @media all and (max-width: 1200px) { padding: 25px 5vw; @@ -384,18 +383,18 @@ header { } } - #search-icon { - background-color: var(--lightgray); - border-radius: 4px; - height: 2em; - display: flex; - align-items: center; - cursor: pointer; - & > p { - display: inline; - padding: 0 1.5em 0 2em; - } - } + // #search-icon { + // background-color: var(--lightgray); + // border-radius: 4px; + // height: 2em; + // display: flex; + // align-items: center; + // cursor: pointer; + // & > p { + // display: inline; + // padding: 0 1.5em 0 2em; + // } + // } & svg { cursor: pointer; diff --git a/i18n/en.toml b/i18n/en.toml index b9ce33e6c..c419954a4 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -62,4 +62,4 @@ other = "Search for something..." other = "Table of Contents" [copyright] -other = "Made by {{ .name }} using Quartz, © {{ .year }}" +other = ""