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:
authorNataraj Basappa <n5j.b5a@gmail.com>2018-10-06 12:22:50 +0300
committerNataraj Basappa <n5j.b5a@gmail.com>2018-10-06 12:22:50 +0300
commit30524a8293e3e79f56a34770b73576488310bf0a (patch)
treeca187400fd9712e92d2119ed67eefe741128a43a
parentc238396243c5cd3a8ec5f30292ac796bfb7f8f68 (diff)
Added list page for tags and corrected content posts folder name
-rw-r--r--exampleSite/content/about/_index.md (renamed from exampleSite/content/about.md)0
-rw-r--r--layouts/_default/list.html34
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html58
-rw-r--r--layouts/section/about.html16
5 files changed, 79 insertions, 31 deletions
diff --git a/exampleSite/content/about.md b/exampleSite/content/about/_index.md
index f8cad87..f8cad87 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about/_index.md
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 4cbefcf..acfc6af 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1 +1,33 @@
-<!-- This theme doesn't supported list page -->
+<!-- same as index.html for tags listing -->
+<div class="container">
+ {{ 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>
+ <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
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 985c3ff..60e1f20 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,7 @@
{{ partial "nav" . }}
<div class="container">
<h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2>
- <h2 class="subtitle is-size-4-mobile is-size-3-desktop">{{ .Title }}</h1>
+ <h1 class="subtitle is-size-4-mobile is-size-3-desktop">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
</div>
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
diff --git a/layouts/section/about.html b/layouts/section/about.html
new file mode 100644
index 0000000..821adf1
--- /dev/null
+++ b/layouts/section/about.html
@@ -0,0 +1,16 @@
+{{ partial "header" . }}
+{{ partial "nav" . }}
+<div class="container">
+ <h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2>
+ <h2 class="subtitle is-size-4-mobile is-size-3-desktop">{{ .Title }}</h1>
+ <div class="content">
+ {{ .Content }}
+ </div>
+ <h2 class="subtitle is-size-5-mobile is-size-4-desktop">Frequent Tags</h2>
+ {{ range .Site.Taxonomies.tags.ByCount }}
+ <a href="/tags/{{ .Name | urlize }}"> {{ .Name }} ({{ .Count }}) &nbsp;</a>
+ {{end}}
+</div>
+{{ partial "jsshare" . }}
+{{ partial "disqus" . }}
+{{ partial "footer" . }}