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

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/index')
-rw-r--r--layouts/partials/index/homePageArticle.html14
-rw-r--r--layouts/partials/index/pinnedPost.html8
-rw-r--r--layouts/partials/index/recentPost.html16
3 files changed, 17 insertions, 21 deletions
diff --git a/layouts/partials/index/homePageArticle.html b/layouts/partials/index/homePageArticle.html
index 65d4e84..b7ec88a 100644
--- a/layouts/partials/index/homePageArticle.html
+++ b/layouts/partials/index/homePageArticle.html
@@ -1,17 +1,7 @@
-<div class="pinned-post card shadow round-corner">
- <div class="card-links"></div>
+
<h1 style="margin: 0"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<p class="document-date">
{{ dateFormat .Site.Params.theme.dateFormat .Date }} &middot; {{ .Params.author }}
</p>
- <hr />
+ <hr class="red-hr"/>
{{ .Content }}
- {{ if .Site.Params.theme.pinnedPosts }}
- <hr />
- <a
- href="{{ `pinnedposts` | relURL }}"
- style="display: block; text-align: right"
- >Previously Pinned Posts</a
- >
- {{ end }}
- </div> \ No newline at end of file
diff --git a/layouts/partials/index/pinnedPost.html b/layouts/partials/index/pinnedPost.html
index b5d8ce3..dfeef70 100644
--- a/layouts/partials/index/pinnedPost.html
+++ b/layouts/partials/index/pinnedPost.html
@@ -1,9 +1,17 @@
+<div class="pinned-post card shadow round-corner">
{{ if .Site.Params.theme.pinnedPosts }}
{{ range ((where .Site.Pages "Params.pinned" true).ByDate.Reverse) | first 1 }}
{{ partial "index/homePageArticle" . }}
{{ end }}
+ <hr class="red-hr"/>
+ <div style="text-align: right; margin-bottom: 1em;">
+ <a class="card-links"
+ href="{{ `pinnedposts` | relURL }}"
+ >Previously Pinned Posts</a
+ ></div>
{{ else }}
{{ range site.RegularPages | first 1 }}
{{ partial "index/homePageArticle" . }}
{{ end }}
{{ end }}
+</div> \ No newline at end of file
diff --git a/layouts/partials/index/recentPost.html b/layouts/partials/index/recentPost.html
index 5ad744c..7517e0a 100644
--- a/layouts/partials/index/recentPost.html
+++ b/layouts/partials/index/recentPost.html
@@ -1,9 +1,7 @@
-
-<h4 style="margin:0 0 1em 0;">Recent Posts</h4>
- {{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }}
- {{ partial "listPage" . }}
- {{ end }}
- <div class="card-links">
- <a href="{{ `archive` | relURL }}">All Posts</a>
- </div>
-
+<h4 style="margin: 0 0 1em 0">Recent Posts</h4>
+{{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }}
+{{ partial "listPage" . }}
+{{ end }}
+<div style="margin-top: 1.5em;">
+<a class="card-links" href="{{ `archive` | relURL }}">All Posts</a>
+</div> \ No newline at end of file