diff options
author | Zack Scholl <zack.scholl@gmail.com> | 2017-11-03 13:09:29 +0300 |
---|---|---|
committer | Zack Scholl <zack.scholl@gmail.com> | 2017-11-03 13:09:29 +0300 |
commit | 0f0486e5ab263dc262d72cfb4c37523a35d002af (patch) | |
tree | 4c6c7983713e8ac6c5e7649d7211627eb187b957 | |
parent | 7a49b5a2cac87484beaa50bd99ac3e42e71a6a53 (diff) |
Update
-rwxr-xr-x | README.md | 18 | ||||
-rwxr-xr-x | layouts/partials/header.html | 8 | ||||
-rw-r--r-- | layouts/partials/middle.html | 10 |
3 files changed, 23 insertions, 13 deletions
@@ -1,24 +1,30 @@ -portcullis
-==========
+onetwothree
+===========
-This is a very simple, minimalistic, responsive theme that I'm using for my personal website. It has some neat features like captioning images, but its best quality is its lack of features (no jQuery, no huge image banners, no post previews, no word counts, etc.).
+This is a minimalistic, responsive theme that is simple as *one, two, three.*
+It has some neat features like captioning images, but its best quality is its lack of features (no jQuery, no huge image banners, no post previews, no word counts, etc.) which I've always found unnecessary and thus cluttering.
# Using
```
-git clone https://github.com/schollz/portcullis.git themes/portcullis
-hugo server -t portcullis
+git clone https://github.com/schollz/onetwothree.git themes/onetwothree
+hugo server -t onetwothree
```
# Configuration
-You can add your Twitter handle to the configuration file for people can comment you via Direct Messages or Tweets. For example,
+Add these parameters to your configuration file:
```
[params]
twitter = "yakczar"
+ navigation = ["about.md"]
```
+The `twitter` parameter will put a footer on your pages on how to contact you (with the subject being the page URL) to comment on the page.
+
+The `navigation` parameter will pick which pages to list at the top bar. I'm aware that the template HTML could just loop through the pages, but I've found that this method is 120x faster, which is useful when you have thousands of posts.
+
# License
MIT
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index da4a5f1..75ecc48 100755 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,11 +29,9 @@ <header> <a href="/">/posts</a> -{{ range $.Site.Params.navigation }} -{{ with $.Site.GetPage "page" . }} - · <a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a> -{{ end }} -{{ end }} +{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }} + · <a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a> +{{ end }}{{ end }} {{ if .Draft }} DRAFT diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html index 13718b4..73854a2 100644 --- a/layouts/partials/middle.html +++ b/layouts/partials/middle.html @@ -4,10 +4,16 @@ <p> <aside>{{ .Date.Format "January 2, 2006"}} {{ if .Params.tags }} - /// <em>{{ range .Params.tags }}<a href="/tags/{{.}}/">{{.}}</a> {{end}}</em> + /// <em> +{{ range $i, $e := .Params.tags }} + {{ if $i }}, {{ end }} + <a href="/tags/{{$e}}/">{{ $e }}</a> +{{ end }} + </em> + {{ end }} </aside> - <a href="{{ if .Slug }}/{{ .Slug }}{{ else }}{{ .URL}}{{end}}">{{ .Title }}</a> + <a href="{{ .Permalink }}">{{ .Title }}</a> </p> {{ end }} {{ end }} |