proper backlink and graph display in footer

This commit is contained in:
jackyzha0 2021-07-18 13:02:53 -04:00
parent 672a641cec
commit 6896cb007b
14 changed files with 96 additions and 20 deletions

View file

@ -3,9 +3,9 @@
{{ partial "head.html" . }}
<body>
<div id="landing-container">
<div>
{{partial "darkmode.html" .}}
<div id="landing-overlay" class="lt-content-column">
<div>
<h1>404.</h1>
<h3>Hey! You look a little lost.</h3>
<ul id="sub-nav">

View file

@ -9,7 +9,7 @@
{{.Content}}
<!-- Contact Info -->
<div class="lt-centre">
<div>
{{partial "footer.html" .}}
</div>
</div>

View file

@ -1,9 +1,16 @@
<ol class="backlinks">
<h3>Backlinks</h3>
<ul class="backlinks">
{{$curPage := strings.TrimRight "/" .Page.RelPermalink }}
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
{{if $inbound}}
{{- range $inbound -}}
<li>
<a href="{{index . "source"}}">{{index . "source"}}</a>
</li>
{{- end -}}
</ol>
{{else}}
<li>
No backlinks found
</li>
{{end}}
</ul>

View file

@ -1,11 +1,15 @@
<div>
<hr/>
{{partial "backlinks.html" .}}
{{partial "graph.html" .}}
<hr/>
<div class="page-end">
<div class="backlinks-container">
{{partial "backlinks.html" .}}
</div>
<div>
{{partial "graph.html" .}}
</div>
</div>
<!-- Contact Info -->
<div id="contact_buttons" class="lt-centre">
<div id="contact_buttons">
<footer>
<p>Made by {{ $.Site.Data.config.name }} using <a href="https://github.com/jackyzha0/quartz">Quartz</a>, © {{ dateFormat "2006" now }}</p>
{{ if not .IsHome }}

View file

@ -1,4 +1,5 @@
<script src="https://cdn.jsdelivr.net/npm/d3@6"></script>
<h3>Interactive Graph</h3>
<div id="graph-container"></div>
<style>
:root {

View file

@ -1,12 +1,12 @@
<head>
<link rel="preconnect" href="https://www.googletagmanager.com">
<link crossorigin rel="preconnect" href="https://www.google-analytics.com">
{{ template "_internal/google_analytics_async.html" . }}
{{ template "_internal/google_analytics.html" . }}
<!-- Meta tags -->
<meta charset="UTF-8">
<meta name="description" content="{{$.Site.Data.config.description}}">
<title>{{$.Site.Data.config.page_title}}</title>
<title>{{ if .Title }}{{ .Title }}{{ else }}{{ $.Site.Data.config.page_title }}{{ end }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="/icon.png" />