This commit is contained in:
Michael Zhang 2020-11-03 18:11:30 -06:00
parent 057ebf6374
commit bdc8feb6d0
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
6 changed files with 16 additions and 10 deletions

View file

@ -1,3 +1,4 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
enableGitInfo = true

4
content/_index.md Normal file
View file

@ -0,0 +1,4 @@
+++
[cascade]
type = "page"
+++

View file

@ -1,6 +1,6 @@
+++
title = "ThreeBallot voting system by Ron Rivest"
document = "/Rivest-TheThreeBallotVotingSystem.pdf"
document = "Rivest-TheThreeBallotVotingSystem.pdf"
+++
A paper proposing an interesting paper-voting system that has several strong

View file

@ -14,11 +14,7 @@
{{- range (.Pages.ByParam "Lastmod") -}}
<li>
<h3 class="title">
{{- if .Params.document -}}
<a target="_blank" rel="nofollow noopener" href="{{ .Params.document }}">{{ .Title }}</a>
{{- else -}}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{- end -}}
<a href="{{ .Permalink }}">{{ .Title }}</a>
<small class="date">
<span title="{{ .Lastmod }}">{{ .Lastmod.Format "Mon Jun 02, 2006" }}</span>
@ -26,10 +22,6 @@
</h3>
<p>{{ .Summary }}</p>
{{- if .Params.link -}}
{{- else -}}
{{- end -}}
</li>
{{- end -}}
</ul>

9
layouts/page/single.html Normal file
View file

@ -0,0 +1,9 @@
<h1>{{ .Title }}</h1>
{{ .Content }}
<ul>
{{- range .Resources -}}
<li><a href="{{ .Permalink }}">{{ . }}</a></li>
{{- end -}}
</ul>