diff options
Diffstat (limited to 'layouts/partials/content')
-rw-r--r-- | layouts/partials/content/h1-title.html | 2 | ||||
-rw-r--r-- | layouts/partials/content/pagination.html | 21 | ||||
-rw-r--r-- | layouts/partials/content/post-meta.html | 15 | ||||
-rw-r--r-- | layouts/partials/content/recent-posts.html | 15 | ||||
-rw-r--r-- | layouts/partials/content/related-posts.html | 12 |
5 files changed, 30 insertions, 35 deletions
diff --git a/layouts/partials/content/h1-title.html b/layouts/partials/content/h1-title.html index 2f15bd7..a86affe 100644 --- a/layouts/partials/content/h1-title.html +++ b/layouts/partials/content/h1-title.html @@ -1 +1 @@ -<h1 class="post-title mb-1">{{ partial "content/title" . }}</h1> +<h1 class="post-title">{{ partial "content/title" . }}</h1> diff --git a/layouts/partials/content/pagination.html b/layouts/partials/content/pagination.html index 8aea3bf..3f4f64d 100644 --- a/layouts/partials/content/pagination.html +++ b/layouts/partials/content/pagination.html @@ -1,22 +1,3 @@ {{ if gt $.Paginator.TotalPages 1 }} -<div class="row "> - <ul class="pagination"> - {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} - {{ if .Paginator.HasPrev }} - <li class="page-item"> - <a class="page-link" rel="prev" href="{{ .Paginator.Prev.URL | relURL }}"> - « Previous - </a> - </li> - {{ end }} - {{ if .Paginator.HasNext }} - <li class="page-item"> - <a class="page-link" rel="next" href="{{ .Paginator.Next.URL | relURL }}"> - Next » - </a> - </li> - {{ end }} - {{ end }} - </ul> -</div> + {{ end }} diff --git a/layouts/partials/content/post-meta.html b/layouts/partials/content/post-meta.html index 2b3fcb4..9ed7b25 100644 --- a/layouts/partials/content/post-meta.html +++ b/layouts/partials/content/post-meta.html @@ -1,11 +1,6 @@ <div class="post-meta"> <div class="post-meta-item"> - <i class="fa fa-calendar"></i> - <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format .Site.Data.Formats.date }}</time> - - {{ with .Params.author }} - · {{ $.Site.Data.Strings.byauthor }} {{ . }} - {{ end }} + <time datetime="{{ .Date.Format "01 Jan 2016" }}">{{ .Date.Format .Site.Data.Formats.date }}</time> · {{ .ReadingTime }} {{ .Site.Data.Strings.metaReadinMinutes }} · {{ .WordCount }} {{ .Site.Data.Strings.words }} </div> @@ -35,13 +30,5 @@ </div> {{ end }} {{ end }} - {{ if not (eq .Site.DisqusShortname "") }} - <div class="post-meta-item"> - <i class="fa fa-comment-o"></i> - <a href="{{ .Permalink }}#disqus_thread" class="article-comment-link"> - Comments - </a> - </div> - {{end}} </div> diff --git a/layouts/partials/content/recent-posts.html b/layouts/partials/content/recent-posts.html new file mode 100644 index 0000000..0cc90e0 --- /dev/null +++ b/layouts/partials/content/recent-posts.html @@ -0,0 +1,15 @@ +<div class="container"> + <section> + <div class="section-title"> + <span>Posts</span> + </div> + <div class="row px-2"> + {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ range $paginator.Pages.ByDate.Reverse }} + {{ partial "post/card" . }} + {{ end }} + {{ partial "content/pagination" . }} + <!-- begin post --> + </div> + </section> +</div>
\ No newline at end of file diff --git a/layouts/partials/content/related-posts.html b/layouts/partials/content/related-posts.html new file mode 100644 index 0000000..2303561 --- /dev/null +++ b/layouts/partials/content/related-posts.html @@ -0,0 +1,12 @@ +{{ $related := .Site.RegularPages.Related . | first 3 }} {{ with $related }} +<div class="container"> + <section> + <div class="section-title"> + <span>Posts</span> + </div> + <div class="row px-2"> + {{ range . }} {{ partial "post/card" . }} {{ end }} + </div> + </section> +</div> +{{ end }}
\ No newline at end of file |