Skip to content

Commit

Permalink
Fix/simplify the tags and categories pages on test site
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Nov 29, 2017
1 parent 0dc672a commit 447d361
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
7 changes: 2 additions & 5 deletions test/site/themes/bare_min/layouts/_default/li.html
Expand Up @@ -5,11 +5,8 @@
right-justified horizontal list of categories for that post.
(3) The contents of the description field in the metadata of the actual
markdown source of the post.
-->
-->
<li>
<span>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
</span>
<br />
<a href='{{ .Permalink }}'> {{ .Title }}</a>
{{ .Description }}
</li>
12 changes: 3 additions & 9 deletions test/site/themes/bare_min/layouts/_default/list.html
@@ -1,17 +1,11 @@
{{ define "main" }} <!-- List of all posts -->

<p>
Here are all my {{ .Type }}, in descending order by creation date.
</p>
<h2>Posts with the {{ .Type | singularize }} ‘{{ .URL | replaceRE (printf "/%s/" .Type) "" | replaceRE "/" "" }}’</h2>

<section>
<ul class="post-list">
<!-- https://github.com/juh2/hugo-phantom/blob/master/layouts/_default/list.html -->
{{ range .Data.Pages.GroupByDate "2006" }}
<h1>{{ .Key }}</h1>
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
</ul>
</section>
Expand Down

0 comments on commit 447d361

Please sign in to comment.