aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <olivier@oroques.dev>2020-08-02 18:37:58 +0200
committerOlivier Roques <olivier@oroques.dev>2020-08-02 18:37:58 +0200
commit1263088ed542e0745db78d9c969fc1dbdece58e2 (patch)
tree72e2d23a52b8289638d59507ab9e54bf1350ee6b
parentadd43ba4a99df589c4fefb73c0e8668c8806140c (diff)
Update partials
-rw-r--r--README.md7
-rw-r--r--layouts/partials/header.html14
2 files changed, 15 insertions, 6 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6b3aa07
--- /dev/null
+++ b/README.md
@@ -0,0 +1,7 @@
+# Researcher
+
+A single column, monospace, resume theme for Hugo. It was ported from
+the Jekyll theme [ankitsultana/researcher](https://github.com/ankitsultana/researcher).
+
+## License
+[GPL-3.0 License](./LICENSE)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 45b67a8..195573e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -2,13 +2,15 @@
<nav class="navbar navbar-expand-sm flex-column flex-sm-row p-0">
<a class="navbar-brand mr-sm-auto" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<div class="navbar-nav flex-row">
- {{ $navbar_len := len .Site.Menus.navbar }}
- {{ range $i, $nav_item := .Site.Menus.navbar }}
- <a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a>
- {{ if ne (add $i 1) $navbar_len }}
- <span class="nav-item navbar-text mx-1">/</span>
+ {{ with .Site.Menus.navbar }}
+ {{ $navbar_len := len . }}
+ {{ range $i, $nav_item := . }}
+ <a class="nav-item nav-link" href="{{ $nav_item.URL | relURL }}">{{ $nav_item.Name }}</a>
+ {{ if ne (add $i 1) $navbar_len }}
+ <span class="nav-item navbar-text mx-1">/</span>
+ {{ end }}
+ {{ end }}
{{ end }}
- {{ end }}
</div>
</nav>
</div>