add base pages
This commit is contained in:
		
							parent
							
								
									c01138a81c
								
							
						
					
					
						commit
						ea69050587
					
				
					 22 changed files with 365 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -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