From bdc8feb6d0d4bfcaf44b6e9150c7d5cf7a162096 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 3 Nov 2020 18:11:30 -0600 Subject: [PATCH] a --- config.toml | 1 + content/_index.md | 4 ++++ .../Rivest-TheThreeBallotVotingSystem.pdf | Bin .../index.md} | 2 +- layouts/home.html | 10 +--------- layouts/page/single.html | 9 +++++++++ 6 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 content/_index.md rename {static => content/rivest-three-ballot}/Rivest-TheThreeBallotVotingSystem.pdf (100%) rename content/{rivest-three-ballot.md => rivest-three-ballot/index.md} (85%) create mode 100644 layouts/page/single.html diff --git a/config.toml b/config.toml index e4b7418..350e235 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,4 @@ baseURL = "http://example.org/" languageCode = "en-us" title = "My New Hugo Site" +enableGitInfo = true diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..fbb8d43 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ +[cascade] +type = "page" ++++ diff --git a/static/Rivest-TheThreeBallotVotingSystem.pdf b/content/rivest-three-ballot/Rivest-TheThreeBallotVotingSystem.pdf similarity index 100% rename from static/Rivest-TheThreeBallotVotingSystem.pdf rename to content/rivest-three-ballot/Rivest-TheThreeBallotVotingSystem.pdf diff --git a/content/rivest-three-ballot.md b/content/rivest-three-ballot/index.md similarity index 85% rename from content/rivest-three-ballot.md rename to content/rivest-three-ballot/index.md index 66f4c99..914c55d 100644 --- a/content/rivest-three-ballot.md +++ b/content/rivest-three-ballot/index.md @@ -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 diff --git a/layouts/home.html b/layouts/home.html index 56b96de..2d8d14b 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -14,11 +14,7 @@ {{- range (.Pages.ByParam "Lastmod") -}}
  • - {{- if .Params.document -}} - {{ .Title }} - {{- else -}} - {{ .Title }} - {{- end -}} + {{ .Title }} {{ .Lastmod.Format "Mon Jun 02, 2006" }} @@ -26,10 +22,6 @@

    {{ .Summary }}

    - - {{- if .Params.link -}} - {{- else -}} - {{- end -}}
  • {{- end -}} diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000..e6323fc --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1,9 @@ +

    {{ .Title }}

    + +{{ .Content }} + +