Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
make a new line each time a tag needs to be revmoved
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveParr committed Jun 11, 2020
1 parent d4f29da commit 6c39c76
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions layouts/_default/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ <h1>{{ .Params.title }}</h1>
<div class="post-feed">
<div class="post-feed-inside">
{{ $display_posts := (((.Site.GetPage "section" "/posts").Pages).ByDate.Reverse) }}
{{ range $post := (where $display_posts "Params.tags" "intersect" (slice "Rstats" "rstats" "python")) }}
{{ range $post := $display_posts }}
{{ if in .Params.tags "help" }}
{{ else if in .Params.tags "question" }}
{{ else if in .Params.tags "meta" }}
{{ else if in .Params.tags "discuss" }}
{{ else if in .Params.tags "watercooler" }}
{{ else }}
<article class="post post-card">
<div class="post-inside">
{{ if $post.Params.thumb_img_path }}
Expand All @@ -21,16 +27,17 @@ <h2 class="post-title"><a href="{{ $post.URL }}" rel="bookmark">{{ $post.Params.
{{ if $post.Params.excerpt }}
<div class="post-content">
<p>{{ $post.Params.excerpt }}</p>
<p> {{ $post.Params.tags }} </p>
</div>
{{ end }}
<footer class="post-meta">
<time class="published"
datetime="{{ $post.Date | dateFormat "2006-01-02 15:04" }}">{{ $post.Date | dateFormat "January 02, 2006" }}</time>
<p> {{ $post.Params.tags }} </p>
</footer>
</div>
</article><!-- .post -->
{{ end }}
{{ end }}
</div>
</div><!-- .post-feed -->

Expand Down

0 comments on commit 6c39c76

Please sign in to comment.