[wip] add wip index page and table of contents for posts
authorAmin Bandali <amin@gnu.org>
Tue, 4 Sep 2018 00:19:19 +0000 (20:19 -0400)
committerAmin Bandali <amin@gnu.org>
Tue, 4 Sep 2018 00:19:19 +0000 (20:19 -0400)
config.toml
content-org/aminb.org
content/_index.md [new file with mode: 0644]
content/post/arch-macbook-air.md
layouts/index.html [new file with mode: 0644]
layouts/partials/nav.html [new file with mode: 0644]
static/.gitkeep [new file with mode: 0644]
themes/divine

index 612d8f0..2d5b974 100644 (file)
@@ -17,6 +17,9 @@ pygmentsUseClasses = true       # This applies to Chroma too.
 [Social]
   github = "aminb"
 
+[permalinks]
+  post = "/:filename/"
+
 [Params]
   disable_debug = true
   description = """\
index 5f31ecd..28c0dcc 100644 (file)
@@ -8,6 +8,16 @@
 #+macro: abbr @@html:<abbr>$1</abbr>@@
 #+macro: span @@html:<span class="$1">$2</span>@@
 
+* Home
+:PROPERTIES:
+:EXPORT_HUGO_SECTION: /
+:EXPORT_FILE_NAME: _index
+:END:
+
+I'm a [[/uw][graduate student]] in the [[https://watform.uwaterloo.ca][WatForm]] group at University of Waterloo,
+supervised by [[https://cs.uwaterloo.ca/~nday/][Dr. Nancy Day]].  I'm interested in using formal methods,
+especially type systems, to help make software more reliable.
+
 * Pages
 :PROPERTIES:
 :EXPORT_HUGO_SECTION: /
@@ -38,14 +48,17 @@ line]] if you like to geek out about any of the above.
 :PROPERTIES:
 :EXPORT_HUGO_SECTION: post
 :EXPORT_HUGO_MENU: :menu main
+:EXPORT_HUGO_AUTO_SET_LASTMOD: t
 :END:
 
 ** Arch GNU/Linux on MacBook Air 2013                         :arch:macbook:
 :PROPERTIES:
 :EXPORT_FILE_NAME: arch-macbook-air
 :EXPORT_DATE: 2016-11-01
-:EXPORT_HUGO_MENU: :menu main
 :EXPORT_OPTIONS: ^:{}
+:EXPORT_HUGO_MENU: :menu main
+:EXPORT_HUGO_ALIASES: /2016/11/arch-macbook-air
+:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :toc true
 :END:
 
 This post summarizes how I install and dual-boot Arch GNU/Linux with
diff --git a/content/_index.md b/content/_index.md
new file mode 100644 (file)
index 0000000..0ad37e4
--- /dev/null
@@ -0,0 +1,11 @@
++++
+title = "Home"
+draft = false
++++
+
+I'm a [graduate student](/uw) in the [WatForm](https://watform.uwaterloo.ca) group at University of Waterloo,
+supervised by [Dr. Nancy Day](https://cs.uwaterloo.ca/~nday/).  I'm interested in using formal methods,
+especially type systems, to help make software more reliable.
+
+[//]: # "Exported with love from a post written in Org mode"
+[//]: # "- https://github.com/kaushalmodi/ox-hugo"
index f4b3b22..5357e74 100644 (file)
@@ -1,8 +1,11 @@
 +++
 title = "Arch GNU/Linux on MacBook Air 2013"
 date = 2016-11-01
+aliases = ["/2016/11/arch-macbook-air"]
+lastmod = 2018-09-03T20:15:43-04:00
 tags = ["arch", "macbook"]
 draft = false
+toc = true
 [menu.main]
   weight = 2001
   identifier = "arch-gnu-linux-on-macbook-air-2013"
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644 (file)
index 0000000..120e05c
--- /dev/null
@@ -0,0 +1,39 @@
+{{ define "main" }}
+
+<h1 id="hello">Hello there,</h1>
+<p>
+  <img class="picture__avatar" src="https://emacsel.com/img/aminb.jpg" alt="Amin Bandali">
+</p>
+<div class="clear"></div>
+{{ with .Content }}
+{{ . }}
+{{ end }}
+
+<h2 id="publications">Publications</h2>
+<ul>
+  <li>TODO</li>
+</ul>
+
+<h2 id="talks">Talks &amp; presentations</h2>
+<ul>
+  {{ if gt (len (where .Pages "Section" "talk")) 0 }}
+  {{ range first 5 (where .Pages "Section" "talk") }}
+  <li><a href="{{substr .Permalink 0 -1}}">{{ .Title }}</a></li>
+  {{ end }}
+  {{ else }}
+  <li>TODO</li>
+  {{ end }}
+</ul>
+
+<h2 id="writings">Recent writings &amp; essays</h2>
+<ul>
+  {{ if gt (len (where .Pages "Section" "post")) 0 }}
+  {{ range first 5 (where .Pages "Section" "post") }}
+  <li><a href="{{substr .Permalink 0 -1}}" title="{{ dateFormat "January 2, 2006" .Date }}">{{ .Title }}</a></li>
+  {{ end }}
+  {{ else }}
+  <li>TODO</li>
+  {{ end }}
+</ul>
+
+{{ end }}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
new file mode 100644 (file)
index 0000000..cb32e4d
--- /dev/null
@@ -0,0 +1,11 @@
+<nav>
+  {{ $currentPage := . }}
+  {{ range .Site.Menus.topnav }}
+  <a class="{{ if $currentPage.IsMenuCurrent "topnav" . }}active{{ end }}" href="{{substr .URL 0 -1}}">
+    {{ .Pre }}
+    <span>{{ .Title }}</span>
+  </a>
+  <span class="bar">|</span>
+  {{ end }}
+  <label for="light-off" class="light-off-button"></label>
+</nav>
diff --git a/static/.gitkeep b/static/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
index dd3bc55..ba997dc 160000 (submodule)
@@ -1 +1 @@
-Subproject commit dd3bc55ba50f2320098c894a0de5458fb233920a
+Subproject commit ba997dc0a82c12c924f4842da987eabfaca0dc1a