Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/schollz/onetwothree.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Scholl <zack.scholl@gmail.com>2017-11-03 13:09:29 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-11-03 13:09:29 +0300
commit0f0486e5ab263dc262d72cfb4c37523a35d002af (patch)
tree4c6c7983713e8ac6c5e7649d7211627eb187b957
parent7a49b5a2cac87484beaa50bd99ac3e42e71a6a53 (diff)
Update
-rwxr-xr-xREADME.md18
-rwxr-xr-xlayouts/partials/header.html8
-rw-r--r--layouts/partials/middle.html10
3 files changed, 23 insertions, 13 deletions
diff --git a/README.md b/README.md
index 9393f92..cec38e8 100755
--- a/README.md
+++ b/README.md
@@ -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" . }}
-&nbsp;&nbsp;·&nbsp;<a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a>
-{{ end }}
-{{ end }}
+{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }}
+&nbsp;·&nbsp;&nbsp;<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>&nbsp;{{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 }}