mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 06:55:42 -05:00
use 30vw of padding, makefile use latest hugo-obsidian, set dark mode as default, remove copyright
This commit is contained in:
parent
2f718f629b
commit
b114855859
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ serve: ## Serve Quartz locally
|
|||||||
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server --enableGitInfo --minify
|
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && hugo server --enableGitInfo --minify
|
||||||
|
|
||||||
install: ## use v2.12 commit in hugo-obsidian repo
|
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:
|
build:
|
||||||
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && \
|
$(GOPATH)/bin/hugo-obsidian -input=content -output=assets/indices -index -root=. && \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'
|
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");
|
const syntaxTheme = document.querySelector("#theme-link");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -301,7 +301,6 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.singlePage {
|
.singlePage {
|
||||||
|
|
||||||
.index-container {
|
.index-container {
|
||||||
width: 160%;
|
width: 160%;
|
||||||
margin-left: -30%;
|
margin-left: -30%;
|
||||||
@ -311,7 +310,7 @@ hr {
|
|||||||
}
|
}
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
}
|
}
|
||||||
padding: 4em 25vw;
|
padding: 4em 30vw;
|
||||||
|
|
||||||
@media all and (max-width: 1200px) {
|
@media all and (max-width: 1200px) {
|
||||||
padding: 25px 5vw;
|
padding: 25px 5vw;
|
||||||
@ -384,18 +383,18 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-icon {
|
// #search-icon {
|
||||||
background-color: var(--lightgray);
|
// background-color: var(--lightgray);
|
||||||
border-radius: 4px;
|
// border-radius: 4px;
|
||||||
height: 2em;
|
// height: 2em;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
cursor: pointer;
|
// cursor: pointer;
|
||||||
& > p {
|
// & > p {
|
||||||
display: inline;
|
// display: inline;
|
||||||
padding: 0 1.5em 0 2em;
|
// padding: 0 1.5em 0 2em;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
& svg {
|
& svg {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@ -62,4 +62,4 @@ other = "Search for something..."
|
|||||||
other = "Table of Contents"
|
other = "Table of Contents"
|
||||||
|
|
||||||
[copyright]
|
[copyright]
|
||||||
other = "Made by {{ .name }} using <a href=\"https://github.com/jackyzha0/quartz\">Quartz</a>, © {{ .year }}"
|
other = ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user