aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:58:43 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:58:43 +0300
commit57bc97fd817f819d40ccbfc5060a49a58b7e579d (patch)
tree8f9b0ff0ac0af3288107880a74c0e5e1697ca9b6 /layouts
parentb2ae4dbfef80c1b7924a4cb101430d18acbc8686 (diff)
Auto-commit 2024-12-11
Diffstat (limited to 'layouts')
-rw-r--r--layouts/go/list.html26
-rw-r--r--layouts/go/partials/list.html24
-rw-r--r--layouts/go/single.html4
3 files changed, 29 insertions, 25 deletions
diff --git a/layouts/go/list.html b/layouts/go/list.html
index 860fd5c..b040d05 100644
--- a/layouts/go/list.html
+++ b/layouts/go/list.html
@@ -20,7 +20,31 @@
{{ end }}
{{ $paginator := .Paginate .Pages 7 }}
{{ range $paginator.Pages }}
- {{ partial "list.html" . }}
+ <article>
+ <header>
+ <div class="row between-xs">
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
+
+ </div>
+ </header>
+ {{ if .Params.Image }}
+ <img src="{{ .RelPermalink }}{{.Params.Image}}" />
+ {{ end }}
+ {{ if .Description }}
+ {{ .Description }}
+ {{ else }}
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <a href="{{ .RelPermalink }}">Далее...</a>
+ {{ end }}
+ {{ end }}
+ <footer>
+ <a href="https://godoc.neonxp.ru/neonxp.ru/go/{{ .Params.Name }}">
+ <img src="https://godoc.neonxp.ru/neonxp.ru/go/{{ .Params.Name }}?status.svg" />
+ </a>
+ <pre>go get neonxp.ru/go/{{ .Params.Name }}</pre>
+ </footer>
+ </article>
{{ end }}
<nav>{{ partial "pagination.html" . }}</nav>
</div>
diff --git a/layouts/go/partials/list.html b/layouts/go/partials/list.html
deleted file mode 100644
index bfdf13b..0000000
--- a/layouts/go/partials/list.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<article>
- <header>
- <div class="row between-xs">
- <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
- <a href="https://godoc.neonxp.ru/neonxp.ru/go/{{ .Params.Name }}">
- <img src="https://godoc.neonxp.ru/neonxp.ru/go/{{ .Params.Name }}?status.svg" />
- </a>
- </div>
- </header>
- {{ if .Params.Image }}
- <img src="{{ .RelPermalink }}{{.Params.Image}}" />
- {{ end }}
- {{ if .Description }}
- {{ .Description }}
- {{ else }}
- {{ .Summary }}
- {{ if .Truncated }}
- <a href="{{ .RelPermalink }}">Далее...</a>
- {{ end }}
- {{ end }}
- <footer>
- {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
- </footer>
-</article> \ No newline at end of file
diff --git a/layouts/go/single.html b/layouts/go/single.html
index 6b287cb..98f41b0 100644
--- a/layouts/go/single.html
+++ b/layouts/go/single.html
@@ -23,6 +23,10 @@
{{ if .Params.Image }}
<img src="{{.Params.Image}}" />
{{ end }}
+ <div>
+ Установка:
+ <pre>go get neonxp.ru/go/{{ .Params.Name }}</pre>
+ </div>
<div class="p-summary">{{ .Summary }}</div>
<div class="e-content">{{ .Content }}</div>
<footer>