diff options
author | Patrick Collins <thepatrickcollins@gmail.com> | 2017-10-12 17:25:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 17:25:29 +0300 |
commit | 19d472ac1451f59800307f7f9d1eeb9043355cbe (patch) | |
tree | ab2ae415fe73374d5c8400a9c9e74312b481f4a8 | |
parent | 94207f4938a24d36ef5a891c7babea7b292d6d9a (diff) |
Adding patches from lfkeitel (#57)
* Use linktitle in item type
The linktitle was available in the example item types
but it didn't do anything. I changed the link on the
right side of an item use linktitle for the, well, title
of the link. I also made it open the link in a new tab.
* Support Markdown todo lists
* Show uncategorized items as "Uncategorized" in category list
-rw-r--r-- | layouts/itemized/header.html | 3 | ||||
-rw-r--r-- | layouts/taxonomy/category.terms.html | 4 | ||||
-rw-r--r-- | static/css/main.css | 14 |
3 files changed, 14 insertions, 7 deletions
diff --git a/layouts/itemized/header.html b/layouts/itemized/header.html index 9193947..ec6307b 100644 --- a/layouts/itemized/header.html +++ b/layouts/itemized/header.html @@ -15,8 +15,7 @@ <span class="author">{{ .Params.author }}</span> <span class="author">{{ .Params.format }}</span> {{ if isset .Params "link" }} - <a href="{{ .Params.link }}">Link</a> + <a href="{{ .Params.link }}" target="_blank">{{ .Params.linktitle }}</a> {{ end }} - <!--<a href="#" class="author"><span class="name">Jane Doe</span><img src="images/avatar.jpg" alt="" /></a>--> </div> </header> diff --git a/layouts/taxonomy/category.terms.html b/layouts/taxonomy/category.terms.html index 5e504c0..7fa38d2 100644 --- a/layouts/taxonomy/category.terms.html +++ b/layouts/taxonomy/category.terms.html @@ -19,7 +19,11 @@ <li> <article> <header> + {{ if ne $value.Name "" }} <a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}">{{ $value.Name }}</a> + {{ else }} + Uncategorized + {{ end }} <span style="float:right;">{{ $value.Count }}</span> </header> </article> diff --git a/static/css/main.css b/static/css/main.css index d1ac152..1f33a18 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -636,7 +636,6 @@ height: 5em; } - input[type="checkbox"], input[type="radio"] { -moz-appearance: none; -webkit-appearance: none; @@ -650,7 +649,6 @@ z-index: -1; } - input[type="checkbox"] + label, input[type="radio"] + label { text-decoration: none; color: #646464; @@ -663,7 +661,6 @@ position: relative; } - input[type="checkbox"] + label:before, input[type="radio"] + label:before { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -684,7 +681,6 @@ width: 1.65em; } - input[type="checkbox"]:checked + label:before, input[type="radio"]:checked + label:before { background: #3c3b3b; border-color: #3c3b3b; @@ -692,7 +688,6 @@ content: '\f00c'; } - input[type="checkbox"]:focus + label:before, input[type="radio"]:focus + label:before { border: solid 1px #2ebaae; } @@ -833,6 +828,15 @@ /* List */ + ul.task-list { + list-style: none; + } + + .task-list-item { + position: relative; + top: -1px; + } + ol { list-style: decimal; margin: 0 0 2em 0; |