proper backlink and graph display in footer
This commit is contained in:
		
							parent
							
								
									672a641cec
								
							
						
					
					
						commit
						6896cb007b
					
				
					 14 changed files with 96 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			@ -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 }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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" />
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue