Switch theme to Doks
This commit is contained in:
		
							
								
								
									
										1
									
								
								layouts/partials/main/blog-meta.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/partials/main/blog-meta.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
<p><small>Posted {{ .PublishDate.Format "January 2, 2006" }} by {{ if .Params.contributors -}}{{ range $index, $contributor := .Params.contributors }}{{ if gt $index 0 }} and {{ end }}<a class="stretched-link position-relative" href="{{ "/contributors/" | absURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}} ‐ <strong>{{ .ReadingTime -}} min read</strong></small><p>
 | 
			
		||||
							
								
								
									
										24
									
								
								layouts/partials/main/docs-navigation.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								layouts/partials/main/docs-navigation.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
{{ if or .Prev .Next -}}
 | 
			
		||||
	<div class="docs-navigation d-flex justify-content-between">
 | 
			
		||||
	<!-- https://www.feliciano.tech/blog/custom-sort-hugo-single-pages/ -->
 | 
			
		||||
	{{ $pages := where site.RegularPages "Section" .Section -}}
 | 
			
		||||
	{{ with $pages.Next . -}}
 | 
			
		||||
		<a href="{{ .Permalink }}">
 | 
			
		||||
			<div class="card my-1">
 | 
			
		||||
				<div class="card-body py-2">
 | 
			
		||||
					⇐ {{ .Title }}
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		</a>
 | 
			
		||||
	{{ end -}}
 | 
			
		||||
	{{ with $pages.Prev . -}}
 | 
			
		||||
		<a class="ml-auto" href="{{ .Permalink }}">
 | 
			
		||||
			<div class="card my-1">
 | 
			
		||||
				<div class="card-body py-2">
 | 
			
		||||
					{{ .Title }} ⇒
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		</a>
 | 
			
		||||
	{{ end -}}
 | 
			
		||||
	</div>
 | 
			
		||||
{{ end -}}
 | 
			
		||||
							
								
								
									
										1
									
								
								layouts/partials/main/edit-page.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/partials/main/edit-page.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
<p class="edit-page"><a href="{{ .Site.Params.docsRepo }}/blob/master/content/{{ .File.Path }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>Edit this page on GitHub</a></p>
 | 
			
		||||
							
								
								
									
										1
									
								
								layouts/partials/main/headline-hash.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/partials/main/headline-hash.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{{ . | replaceRE "(<h[2-9] id=\"([^\"]+)\".+)(</h[2-9]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true">#</a> ${3}` | safeHTML }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user