forked from saberhaoren/haoren
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
365 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- hugo | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Link Index | ||
uses: jackyzha0/[email protected] | ||
with: | ||
input: content | ||
output: data | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.79.1' | ||
extended: true | ||
|
||
- name: Build | ||
run: hugo --minify | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
publish_branch: master # deploying branch | ||
cname: quartz.jzhao.xyz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
public | ||
resources | ||
.idea | ||
content/.obsidian | ||
content/.obsidian | ||
data/linkIndex.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# quartz | ||
# Quartz | ||
Simple second brain and digital garden. | ||
|
||
```shell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
:root { | ||
--lt-colours-light: var(--light) !important; | ||
--lt-colours-lightgray: var(--lightgray) !important; | ||
--lt-colours-dark: var(--navy) !important; | ||
--lt-colours-secondary: var(--olive) !important; | ||
--lt-colours-gray: var(--outlinegray) !important; | ||
} | ||
|
||
h1, h2, h3, h4, ol, ul, thead { | ||
font-family: Inter; | ||
color: var(--dark) | ||
} | ||
|
||
p, ul, text { | ||
font-family: 'Source Sans Pro', sans-serif; | ||
color: var(--gray); | ||
fill: var(--gray); | ||
} | ||
|
||
a { | ||
font-family: Inter; | ||
font-weight: 700; | ||
font-size: 1em; | ||
text-decoration: none; | ||
transition: all 0.2s ease; | ||
color: var(--navy); | ||
|
||
&:hover { | ||
color: var(--olive) !important; | ||
} | ||
} | ||
|
||
#TableOfContents > ol { | ||
counter-reset: section; | ||
margin-left: 0em; | ||
padding-left: 1.5em; | ||
& > li { | ||
counter-increment: section; | ||
& > ol { | ||
counter-reset: subsection; | ||
& > li { | ||
counter-increment: subsection; | ||
&::marker { | ||
content: counter(section) "." counter(subsection) " "; | ||
} | ||
} | ||
} | ||
} | ||
|
||
& > li::marker { | ||
content: counter(section) " "; | ||
} | ||
|
||
& > li::marker, & > li > ol > li::marker { | ||
font-family: Source Sans Pro; | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
footer { | ||
margin-top: 4em; | ||
text-align: center; | ||
} | ||
|
||
|
||
table { | ||
width: 100%; | ||
} | ||
|
||
img { | ||
width: 100%; | ||
border-radius: 3px; | ||
margin: 1em 0; | ||
} | ||
|
||
p>img+em { | ||
display: block; | ||
transform: translateY(-1em); | ||
} | ||
|
||
sup { | ||
line-height: 0 | ||
} | ||
|
||
p, tbody, li { | ||
font-family: Source Sans Pro; | ||
color: var(--gray); | ||
line-height: 1.5em; | ||
} | ||
|
||
h2 { | ||
opacity: 0.85; | ||
} | ||
|
||
h3 { | ||
opacity: 0.75; | ||
} | ||
|
||
blockquote { | ||
margin-left: 0em; | ||
border-left: 3px solid var(--navy); | ||
padding-left: 1em; | ||
transition: border-color 0.2s ease; | ||
|
||
&:hover { | ||
border-color: var(--olive); | ||
} | ||
} | ||
|
||
table { | ||
padding: 1.5em; | ||
} | ||
|
||
td, th { | ||
padding: 0.1em 0.5em; | ||
} | ||
|
||
.footnotes p { | ||
margin: 0.5em 0; | ||
} | ||
|
||
article a { | ||
font-family: Source Sans Pro; | ||
font-weight: 600; | ||
text-decoration: underline; | ||
text-decoration-color: var(--olive); | ||
text-decoration-thickness: .15em; | ||
} | ||
|
||
sup > a { | ||
text-decoration: none; | ||
padding: 0 0.1em 0 0.2em; | ||
} | ||
|
||
pre { | ||
font-family: 'Fira Code'; | ||
padding: 0.75em; | ||
border-radius: 3px; | ||
overflow-x: scroll; | ||
} | ||
|
||
code { | ||
font-family: 'Fira Code'; | ||
font-size: 0.85em; | ||
padding: 0.15em 0.3em; | ||
border-radius: 5px; | ||
background: var(--lightgray); | ||
} | ||
|
||
html { | ||
scroll-behavior: smooth; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
height: 100vh; | ||
width: 100vw; | ||
overflow-x: hidden; | ||
background-color: var(--light); | ||
} | ||
|
||
@keyframes fadeIn { | ||
0% {opacity:0;} | ||
100% {opacity:1;} | ||
} | ||
|
||
footer { | ||
margin-top: 4em; | ||
|
||
& > a { | ||
font-size: 1em; | ||
color: var(--navy); | ||
padding: 0 0.5em 3em 0.5em; | ||
} | ||
} | ||
|
||
hr { | ||
width: 25%; | ||
margin: 4em auto; | ||
height: 2px; | ||
border-radius: 1px; | ||
border-width: 0; | ||
color: var(--dark); | ||
background-color: var(--dark); | ||
} | ||
|
||
// internal link | ||
a[href^="/"] { | ||
text-decoration: none; | ||
background-color: #afbfc922; | ||
padding: 0 0.2em; | ||
border-radius: 3px; | ||
} | ||
|
||
.singlePage { | ||
margin: 4em 30vw; | ||
|
||
@media all and (max-width: 1200px) { | ||
margin: 25px 5vw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Add your own CSS here! | ||
:root { | ||
--light: #faf8f8; | ||
--dark: #141021; | ||
--navy: #284b63; | ||
--olive: #84a59d; | ||
--visited: #afbfc9; | ||
--salmon: #f28482; | ||
--gray: #4e4e4e; | ||
--lightgray: #f0f0f0; | ||
--outlinegray: #dadada; | ||
} | ||
|
||
[saved-theme="dark"] { | ||
--light: #1e1e21 !important; | ||
--dark: #fbfffe !important; | ||
--navy: #5b778a !important; | ||
--visited: #4a575e !important; | ||
--olive: #84a59d !important; | ||
--salmon: #f58382 !important; | ||
--gray: #d4d4d4 !important; | ||
--lightgray: #292633 !important; | ||
--outlinegray: #343434 !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
baseURL = "https://quartz.jzhao.xyz/" | ||
languageCode = "en-us" | ||
googleAnalytics = "UA-148413215-1" | ||
pygmentsUseClasses = true | ||
pygmentsUseClasses = true | ||
ignoreFiles = ["/content/templates/*"] | ||
|
||
[markup] | ||
[markup.tableOfContents] | ||
endLevel = 3 | ||
ordered = true | ||
startLevel = 2 | ||
[markup.highlight] | ||
anchorLineNos = false | ||
codeFences = true | ||
guessSyntax = true | ||
hl_Lines = "" | ||
lineAnchors = "" | ||
lineNoStart = 1 | ||
lineNos = true | ||
lineNumbersInTable = true | ||
style = "dracula" | ||
tabWidth = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 💎 Quartz | ||
Simple second brain and digital garden. 🌱 | ||
|
||
## Why Quartz? | ||
|
||
## Get Started | ||
[directory](moc/directory.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "Directory" | ||
--- | ||
|
||
[setup](notes/setup.md) | ||
[config](notes/config.md) | ||
[troubleshooting](notes/troubleshooting.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: "config" | ||
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "Setup" | ||
--- | ||
|
||
![](/notes/images/obsidian-settings.png) | ||
|
||
|
||
Having problems? [troubleshooting](notes/troubleshooting.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: "troubleshooting" | ||
--- |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: "{{title}}" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name: Quartz Example Page | ||
name: Jacky Zhao | ||
enableToc: true | ||
description: | ||
Here is the page description. This is an example Quartz site that details installation, | ||
setup, customization, and troubleshooting for Quartz itself. | ||
page_title: | ||
Quartz Example Page | ||
links: | ||
- link_name: twitter | ||
- link_name: Twitter | ||
link: https://twitter.com/_jzhao | ||
- link_name: github | ||
- link_name: Github | ||
link: https://github.com/jackyzha0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
{{ partial "head.html" . }} | ||
|
||
<body> | ||
<div id="landing-container"> | ||
{{partial "darkmode.html" .}} | ||
<div id="landing-overlay" class="lt-content-column"> | ||
<h1>404.</h1> | ||
<h3>Hey! You look a little lost.</h3> | ||
<ul id="sub-nav"> | ||
<li><a href="/">↳ Let's get you home.</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{{$trimmed := strings.TrimSuffix ".md" (.Destination | safeURL)}} | ||
<a href="{{ if (hasPrefix $trimmed "/") }}{{ $trimmed }}{{ else }}{{ print "/" $trimmed }}{{ end }}" rel="noopener">{{ .Text | safeHTML }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.