mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-16 23:12:45 +02:00
v0.1.0
Theme should be useable, but there might be some minor stylistic tweaks here and there.
This commit is contained in:
parent
e3d2a647f9
commit
82958f2609
10 changed files with 227 additions and 217 deletions
|
@ -1,10 +1,7 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "subheader.html" . }}
|
||||
|
||||
<section id="main">
|
||||
<div>
|
||||
<h1 id="title">{{ .Title }}</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,43 +1,36 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<body>
|
||||
<div id="layout" class="pure-g">
|
||||
<div class="content content-column pure-u-1 pure=u-md-4-5">
|
||||
{{ partial "brand.html" . }}
|
||||
|
||||
<h1 class="content-title-mini">{{ .Title }}</h1>
|
||||
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<details open>
|
||||
<summary>{{ .Key }} ({{ len .Pages }})</summary>
|
||||
|
||||
{{ range .Pages.GroupByDate "January" }}
|
||||
<div class="list-page">
|
||||
<ul>
|
||||
<li>
|
||||
<details open>
|
||||
<summary>{{ .Key }} ({{ len .Pages }})</summary>
|
||||
{{ range .Pages }}
|
||||
<ul>
|
||||
<li>
|
||||
<span class="list-date">{{ .Date.Format "Jan 2" }} ·</span>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</details>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</details>
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ partial "content.header.html" . }}
|
||||
<section class="list-page">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<details open>
|
||||
<summary class="year">{{ .Key }} ({{ len .Pages }})</summary>
|
||||
{{ range .Pages.GroupByDate "January" }}
|
||||
<ul>
|
||||
<li>
|
||||
<details open>
|
||||
<summary>{{ .Key }} ({{ len .Pages }})</summary>
|
||||
{{ range .Pages }}
|
||||
<ul>
|
||||
<li>
|
||||
<span class="list-date">{{ .Date.Format "Jan 2" }} ·</span>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
</details>
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</details>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,23 +1,17 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<body>
|
||||
<div id="layout" class="pure-g">
|
||||
<div class="content content-column pure-u-1 pure-u-md-4-5">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ partial "content.header.html" . }}
|
||||
{{ if .Params.toc }}
|
||||
<div class="toc">
|
||||
<h1>Contents</h1>
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "body.includes.html" . }}
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ partial "content.header.html" . }}
|
||||
{{ partial "toc.html" . }}
|
||||
<section>{{ .Content }}</section>
|
||||
<section>
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,60 +1,64 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<body>
|
||||
|
||||
<div id="layout" class="pure-g">
|
||||
<div class="content content-column pure-u-1 pure-u-md-4-5">
|
||||
{{ partial "brand.html" . }}
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ partial "content.header.html" . }}
|
||||
{{ $data := .Data }}
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-sm-1-2">
|
||||
<h2>By Frequency</h2>
|
||||
<section>
|
||||
<table class="pure-table pure-table-horizontal pure-table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Term</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ $data.Plural }}/{{ $value.Name| urlize }}">
|
||||
{{ $value.Name}}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $value.Count }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<h1 class="content-title-mini">{{ .Title }}</h1>
|
||||
{{ $data := .Data }}
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-sm-1-2">
|
||||
<h2 class="list-title">By Frequency</h2>
|
||||
<table class="pure-table pure-table-horizontal pure-table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Term</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
<tr>
|
||||
<td><a href="{{ $data.Plural }}/{{ $value.Name| urlize }}">
|
||||
{{ $value.Name}}
|
||||
</a></td>
|
||||
<td>{{ $value.Count }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-sm-1-2">
|
||||
<h2 class="list-title">Alphabetically</h2>
|
||||
<table class="pure-table pure-table-horizontal pure-table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Term</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical}}
|
||||
<tr>
|
||||
<td><a href="{{ $data.Plural }}/{{ $value.Name| urlize }}">
|
||||
{{ $value.Name}}
|
||||
</a></td>
|
||||
<td>{{ $value.Count }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-sm-1-2">
|
||||
<h2>Alphabetically</h2>
|
||||
<section>
|
||||
<table class="pure-table pure-table-horizontal pure-table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Term</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical}}
|
||||
<tr>
|
||||
<td><a href="{{ $data.Plural }}/{{ $value.Name| urlize }}">
|
||||
{{ $value.Name}}
|
||||
</a></td>
|
||||
<td>{{ $value.Count }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,23 +1,17 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "math.html" . }}
|
||||
<body>
|
||||
|
||||
<article>
|
||||
{{ partial "brand.html" . }}
|
||||
|
||||
{{ range first 5 .Site.Pages }}
|
||||
<section class="post-summary">
|
||||
{{ partial "content.header.html" . }}
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .RelPermalink }}">Read On →</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "body.includes.html" . }}
|
||||
</article>
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ range first 5 .Site.Pages }}
|
||||
{{ partial "content.header.html" . }}
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ if .Truncated }}
|
||||
<p><a href="{{ .RelPermalink }}">Read On →</a></p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<div class="header">
|
||||
<div class="brand">
|
||||
<h1>{{ .Site.Title}}</h1>
|
||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||
{{ partial "nav.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<header class="brand">
|
||||
<h1>{{ .Site.Title}}</h1>
|
||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||
{{ partial "nav.html" . }}
|
||||
</header>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<div class="fineprint">
|
||||
<ul class="footer-menu">
|
||||
<footer class="page-footer">
|
||||
<hr>
|
||||
<ul class="page-footer-menu">
|
||||
{{ range .Site.Menus.footer }}
|
||||
<li><a href="{{.URL}}">{{.Pre }}{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
|
@ -8,7 +9,7 @@
|
|||
{{ if .Site.Params.showPoweredBy}}
|
||||
<p>
|
||||
Powered by <a href="https://gohugo.io">Hugo</a> and the
|
||||
<a href="https://github.com/shawnohare/hugo-morphism">Morphism theme</a>.
|
||||
<a href="https://github.com/shawnohare/hugo-tufte">Tufte theme</a>.
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
|
@ -23,4 +24,5 @@
|
|||
{{end}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{ partial "body.includes.html" . }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!-- Load MathJax, if necessary. -->
|
||||
{{ if eq .Params.math true }}
|
||||
{{ if or (eq .Params.math "true") (.IsHome) }}
|
||||
{{ partial "math.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<span class="nav">
|
||||
<nav class="menu">
|
||||
<ul>
|
||||
{{ range .Site.Menus.nav }}
|
||||
<a href="{{ .URL }}">{{ .Pre }}{{ .Name }}</a>
|
||||
<li><a href="{{ .URL }}">{{ .Pre }}{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</span>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue