aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--users/fcuny/blog/config.toml32
-rw-r--r--users/fcuny/blog/layouts/partials/postlist.html30
-rw-r--r--users/fcuny/blog/layouts/taxonomy/tag.html6
3 files changed, 48 insertions, 20 deletions
diff --git a/users/fcuny/blog/config.toml b/users/fcuny/blog/config.toml
index 44080ae..23df087 100644
--- a/users/fcuny/blog/config.toml
+++ b/users/fcuny/blog/config.toml
@@ -2,34 +2,26 @@ baseURL = "http://fcuny.net/"
languageCode = "en-us"
title = "Franck Cuny's Website"
publishDir = "docs"
+enableGitInfo = true
+markup = "org"
[params]
- homeText = "A collection of articles"
+ homeText = "A collection of notes"
+
+[taxonomies]
+ tag = "tags"
[permalinks]
articles = "/:section/:slug/"
-
-[markup]
- [markup.highlight]
- anchorLineNos = false
- codeFences = true
- guessSyntax = false
- hl_Lines = ""
- lineAnchors = ""
- lineNoStart = 1
- lineNos = false
- lineNumbersInTable = true
- noClasses = true
- style = "emacs"
- tabWidth = 2
+ tags = "/tags/:slug/"
[mediaTypes."application/atom"]
-suffixes = ["xml"]
+ suffixes = ["xml"]
[outputFormats.Atom]
-mediaType = "application/atom"
-baseName = "feed"
-isPlainText = false
+ mediaType = "application/atom"
+ baseName = "feed"
+ isPlainText = false
[outputs]
-home = [ "HTML", "Atom" ]
+ home = [ "HTML", "Atom" ]
diff --git a/users/fcuny/blog/layouts/partials/postlist.html b/users/fcuny/blog/layouts/partials/postlist.html
new file mode 100644
index 0000000..3695d82
--- /dev/null
+++ b/users/fcuny/blog/layouts/partials/postlist.html
@@ -0,0 +1,30 @@
+<p><a href="/">&larr; Back to Franck's homepage</a></p>
+
+{{ range .GroupByDate "2006-Jan" }}
+ <h2>{{ .Key }}</h2>
+ <ul>
+ {{ range .Pages.ByDate }}
+ <li>
+ <div>
+ <a href="{{ .Permalink }}"><h3>{{ .Title }}</h3></a>
+ {{ if .Params.tags }}
+ <div>
+ Tags:
+ {{ range $idx, $tag := .Params.tags }}
+ <span class="tags"><a href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a></span>
+ {{ end }}
+ </div>
+ {{ else }}
+ <div></div>
+ {{ end }}
+ </div>
+ <div>
+ <p>
+ {{ .Summary }}
+ <span><a href="{{ .Permalink }}">Read more →</a></span>
+ </p>
+ </div>
+ </li>
+ {{ end }}
+ </ul>
+{{ end }}
diff --git a/users/fcuny/blog/layouts/taxonomy/tag.html b/users/fcuny/blog/layouts/taxonomy/tag.html
new file mode 100644
index 0000000..2b7d98a
--- /dev/null
+++ b/users/fcuny/blog/layouts/taxonomy/tag.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+ {{ $pgs := where .Data.Pages "Params.hidden" "ne" "true" }}
+ {{ partial "postlist" $pgs }}
+
+{{ end }}