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

github.com/natarajmb/charaka-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/layouts/index.html b/layouts/index.html
index f7b0e5d..e5f6403 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,32 +1,32 @@
<div class="container">
-{{ partial "header" . }}
-{{ partial "nav" . }}
-<main class="container">
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
- <h1 class="title is-3">{{ .Key }}</h1>
- {{ range .Pages }}
- <article class="columns">
- <div class="column is-2">
- <h6 class="is-inline" style="white-space: nowrap">{{ .Date.Format "Jan 2" }}</h2>
- </div>
- <div class="column">
- <h2 class="subtitle is-inline is-size-4-mobile is-size-3-desktop"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}</h1>
- <div class="content is-hidden-mobile">
- {{ .Summary | plainify | safeHTML | truncate 400 }}
- {{ if .Truncated }}
- <br>
- <a class="button is-marginless is-paddingless" href="{{ .Permalink }}">
- <span class="icon-link is-small" style="line-height: 100%">
- <i class="fa fa-angle-double-right" aria-hidden="true"></i>
- </span>
- <p style="padding:0 5px"></p>more</p>
- </a>
- {{ end }}
+ {{ partial "header" . }}
+ {{ partial "nav" . }}
+ <main class="container">
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
+ <h1 class="title is-3">{{ .Key }}</h1>
+ {{ range where .Pages "Section" "posts" }}
+ <article class="columns">
+ <div class="column is-2">
+ <h6 class="is-inline" style="white-space: nowrap">{{ .Date.Format "Jan 2" }}</h2>
</div>
- </article>
- {{ end }}
- {{ end }}
- </main>
-{{ partial "pager" . }}
-{{ partial "footer" . }}
+ <div class="column">
+ <h2 class="subtitle is-inline is-size-4-mobile is-size-3-desktop"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}</h1>
+ <div class="content is-hidden-mobile">
+ {{ .Summary | plainify | safeHTML | truncate 400 }}
+ {{ if .Truncated }}
+ <br>
+ <a class="button is-marginless is-paddingless" href="{{ .Permalink }}">
+ <span class="icon-link is-small" style="line-height: 100%">
+ <i class="fa fa-angle-double-right" aria-hidden="true"></i>
+ </span>
+ <p style="padding:0 5px"></p>more</p>
+ </a>
+ {{ end }}
+ </div>
+ </article>
+ {{ end }}
+ {{ end }}
+ </main>
+ {{ partial "pager" . }}
+ {{ partial "footer" . }}
</div> \ No newline at end of file