a
This commit is contained in:
parent
057ebf6374
commit
bdc8feb6d0
6 changed files with 16 additions and 10 deletions
|
@ -1,3 +1,4 @@
|
|||
baseURL = "http://example.org/"
|
||||
languageCode = "en-us"
|
||||
title = "My New Hugo Site"
|
||||
enableGitInfo = true
|
||||
|
|
4
content/_index.md
Normal file
4
content/_index.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
+++
|
||||
[cascade]
|
||||
type = "page"
|
||||
+++
|
|
@ -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
|
|
@ -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 -}}
|
||||
|
||||
<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
9
layouts/page/single.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{- range .Resources -}}
|
||||
<li><a href="{{ .Permalink }}">{{ . }}</a></li>
|
||||
{{- end -}}
|
||||
</ul>
|
Loading…
Reference in a new issue