aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:48:01 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 15:48:01 +0300
commita6fc1a5ccf4e49c37dec5f1403f53606088982b1 (patch)
tree2365ef07072d72c7733b89da01d48922d6de81d4 /layouts
parent4efc0341b29be5b6f3e1d9e2a31d925ce33f3ed1 (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts')
-rw-r--r--layouts/go/single.html7
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/projects/single.html21
3 files changed, 26 insertions, 4 deletions
diff --git a/layouts/go/single.html b/layouts/go/single.html
index 120c01d..a1c2407 100644
--- a/layouts/go/single.html
+++ b/layouts/go/single.html
@@ -2,9 +2,10 @@
<div class="container mx-auto my-5">
<div class="post">
{{ partial "single/header.html" . }}
- <div>
- Установка:
- <pre>go get -u neonxp.ru/go/{{ .Params.Name }}@latest</pre>
+ <div class="alert alert-info" role="alert">
+ <div>
+ <a class="btn btn-primary" href="https://pkg.go.dev/neonxp.ru/go/{{ .Params.Name }}">{{ partial "icon.html" "golang" }} Документация</a>
+ </div>
</div>
<div class="e-content">{{ .Content }}</div>
{{ partial "single/footer.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 99ec25a..93ba7b0 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,4 +1,4 @@
-<footer class="bd-footer py-4 py-md-5 mt-5 bg-body-tertiary shadow">
+<footer class="bd-footer py-4 py-md-5 mt-5 bg-body-tertiary shadow border">
<div class="container">
<div class="row">
<div class="col">
diff --git a/layouts/projects/single.html b/layouts/projects/single.html
new file mode 100644
index 0000000..c10b21c
--- /dev/null
+++ b/layouts/projects/single.html
@@ -0,0 +1,21 @@
+{{ define "main" }}
+<div class="container mx-auto my-5">
+ <div class="post">
+ {{ partial "single/header.html" . }}
+ <div class="alert alert-info" role="alert">
+ <div class="btn-group">
+ <a class="btn btn-primary" href="{{.Params.project_url}}">
+ {{ partial "icon.html" "link" }}&nbsp;{{.Params.project_url}}
+ </a>
+ {{ if .Params.git_url}}
+ <a class="btn btn-primary" href="{{.Params.git_url}}">
+ {{ partial "icon.html" "git" }}&nbsp;{{.Params.git_url}}
+ </a>
+ {{ end }}
+ </div>
+ </div>
+ <div class="e-content">{{ .Content }}</div>
+ {{ partial "single/footer.html" . }}
+ </div>
+</div>
+{{ end }}