diff options
Diffstat (limited to 'layouts/go')
-rw-r--r-- | layouts/go/list.html | 26 | ||||
-rw-r--r-- | layouts/go/partials/list.html | 24 | ||||
-rw-r--r-- | layouts/go/single.html | 4 |
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> |