add base pages
This commit is contained in:
parent
c01138a81c
commit
ea69050587
22 changed files with 365 additions and 16 deletions
|
@ -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>
|
2
layouts/_default/_markup/render-link.html
Normal file
2
layouts/_default/_markup/render-link.html
Normal file
|
@ -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>
|
|
@ -8,6 +8,12 @@
|
|||
{{partial "darkmode.html" .}}
|
||||
<article>
|
||||
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
|
||||
{{if $.Site.Data.config.enableToc}}
|
||||
<aside class="mainTOC">
|
||||
<h3>Table of Contents</h3>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
{{end}}
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{partial "footer.html" .}}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{{define "head"}}
|
||||
{{ partial "head.html" . }}
|
||||
{{end}}
|
||||
|
||||
{{define "main"}}
|
||||
<!-- Main Page -->
|
||||
<div class="singlePage">
|
||||
{{.Content}}
|
||||
|
||||
<!-- Contact Info -->
|
||||
<div class="lt-centre">
|
||||
{{partial "footer.html" .}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
|
@ -1,20 +1,17 @@
|
|||
<div>
|
||||
<hr/>
|
||||
{{partial "backlinks.html" .}}
|
||||
{{partial "graph.html" .}}
|
||||
<ul id="sub-nav">
|
||||
<li><a href="/">↳ Take me home</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Contact Info -->
|
||||
<div id="contact_buttons" class="lt-centre">
|
||||
<footer>
|
||||
<p>made by {{ $.Site.Data.config.name }}, © {{ dateFormat "2006" now }}</p>
|
||||
<a href="https://github.com/jackyzha0/quartz">source</a>
|
||||
<p>Made by {{ $.Site.Data.config.name }} using <a href="https://github.com/jackyzha0/quartz">Quartz</a>, © {{ dateFormat "2006" now }}</p>
|
||||
{{ if not .IsHome }}
|
||||
<a href="/">home</a>
|
||||
<a href="/">Home</a>
|
||||
{{end}}
|
||||
{{- range $.Site.Data.links.footer -}}
|
||||
{{- range $.Site.Data.config.links -}}
|
||||
<a href="{{.link}}">{{.link_name}}</a>
|
||||
{{- end -}}
|
||||
</footer>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
}
|
||||
|
||||
const color = (d) => {
|
||||
if (d.id === curPage) {
|
||||
if (d.id === curPage || (d.id === "/" && curPage === "")) {
|
||||
return "var(--g-node-active)"
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
|||
.on("end", enableDrag ? dragended : noop);
|
||||
}
|
||||
|
||||
const height = 400
|
||||
const height = 250
|
||||
const width = document.getElementById("graph-container").offsetWidth
|
||||
|
||||
const simulation = d3.forceSimulation(data.nodes)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<!-- CSS Stylesheets and Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Source+Sans+Pro:wght@400;700&family=Fira+Code:wght@400;700&display=swap" rel="stylesheet">
|
||||
{{ $css := slice "darkmode.scss" "syntax.scss"}}
|
||||
{{ $css := slice "custom.scss" "base.scss" "darkmode.scss" "syntax.scss"}}
|
||||
{{range $css}}
|
||||
{{$sass := resources.Get . | resources.ToCSS }}
|
||||
{{with $sass | minify}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue