aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-29 18:06:57 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-29 18:06:57 +0300
commit2ffb4215645b463e9755d9663c100728fe0ebb57 (patch)
tree251a9735640b1acdd448ebeeb0672ed64826339d /layouts
parent54375572e11d23dacb20c5742d171af3072d7b9c (diff)
Новый пост + небольшие фиксы
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/home.html10
-rw-r--r--layouts/partials/list.html2
2 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index 99524d3..b160025 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -11,12 +11,14 @@
<header>
<div class="row between-xs">
<span class="p-name"> {{ .Title }} </span>
- <a href="/posts/index.xml">{{ partial "icon.html" "rss" }}</a>
+ <a href="/feed">{{ partial "icon.html" "rss" }}</a>
</div>
</header>
- <div class="e-content">
- {{ .Content }}
- </div>
+ {{ if .Params.Image }}
+ <img src="{{.Params.Image}}" />
+ {{ end }}
+ <div class="p-summary">{{ .Summary }}</div>
+ <div class="e-content">{{ .Content }}</div>
</article>
{{ $pages := where site.RegularPages "Type" "posts" }}
{{ $paginator := .Paginate $pages 7 }}
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index 329d47b..cd62507 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -1,6 +1,6 @@
<article>
<header>
- <div class="row between-sm">
+ <div class="row between-xs">
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ if .Date }}
<span>