mirror of
https://github.com/simon987/dataarchivist.net.git
synced 2025-04-10 14:06:41 +00:00
fix urls
This commit is contained in:
parent
6b12dbadb1
commit
25461befcb
48
layouts/_default/single.html
Normal file
48
layouts/_default/single.html
Normal file
@ -0,0 +1,48 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-24 pure-u-md-5-24"></div>
|
||||
<div class="pure-u-11-12 pure-u-md-7-12">
|
||||
<div class="post">
|
||||
|
||||
<div class="post-title">
|
||||
<p class="footnote">
|
||||
<time datetime="{{ .Date }}">
|
||||
{{ if .Site.Params.dateformatpretty }}
|
||||
{{ .Date.Format .Site.Params.dateformatpretty }}
|
||||
{{ else }}
|
||||
{{ .Date.Format "01-02-2006" }}
|
||||
{{ end }}
|
||||
</time>
|
||||
{{ $baseurl := .Site.BaseURL }}
|
||||
{{ if or .Params.tags .Params.categories .Params.series }}
|
||||
|
|
||||
{{ end }}
|
||||
{{ if isset .Params "tags" }}
|
||||
tags: [ {{ range .Params.tags }}<a href="{{ $baseurl }}tags/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
|
||||
{{ if isset .Params "categories" }}
|
||||
categories: [ {{ range .Params.categories }}<a href="{{ $baseurl }}categories/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
|
||||
{{ if isset .Params "series" }}
|
||||
series: [ {{ range .Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
</p>
|
||||
<h1>{{ if .Draft }}DRAFT: {{end}}{{ .Title }}</h1>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
{{ if or .Params.toc (and (eq .Params.toc nil) .Site.Params.toc) -}}
|
||||
{{ .TableOfContents }}
|
||||
{{- end }}
|
||||
{{ replace .Content "<table>" "<table class='pure-table pure-table-striped'>" | safeHTML }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pure-u-1-24 pure-u-md-5-24"></div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
56
layouts/index.html
Normal file
56
layouts/index.html
Normal file
@ -0,0 +1,56 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-24 pure-u-md-5-24"></div>
|
||||
<div class="pure-u-11-12 pure-u-md-7-12">
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
<p class="posts-name">Recent posts:</p>
|
||||
|
||||
<ul class="posts">
|
||||
{{ $baseurl := .Site.BaseURL }}
|
||||
{{ range $name, $page := .Site.RegularPages }}
|
||||
{{ if eq .Type "posts" }}
|
||||
<li>
|
||||
{{ if .Draft }}
|
||||
DRAFT:
|
||||
{{ end }}
|
||||
<a class="post-list" href="{{ .Permalink }}">{{ $page.Title }}</a>
|
||||
|
||||
<p class="footnote">
|
||||
<time datetime="{{ $page.Date }}">
|
||||
{{ if .Site.Params.dateformatpretty }}
|
||||
{{ $page.Date.Format .Site.Params.dateformatpretty }}
|
||||
{{ else }}
|
||||
{{ $page.Date.Format "01-02-2006" }}
|
||||
{{ end }}
|
||||
</time>
|
||||
|
||||
{{ if or $page.Params.tags $page.Params.categories $page.Params.series }}
|
||||
|
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.tags }}
|
||||
tags: [ {{ range $page.Params.tags}}<a href="{{ $baseurl }}tags/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.categories }}
|
||||
categories: [ {{ range $page.Params.categories }}<a href="{{ $baseurl }}categories/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.series }}
|
||||
series: [ {{ range $page.Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
|
||||
{{ end }}
|
||||
|
||||
</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pure-u-1-24 pure-u-md-5-24"></div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
Loading…
x
Reference in New Issue
Block a user