aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/icons/git.svg13
-rw-r--r--assets/icons/golang.svg12
-rw-r--r--assets/icons/link.svg8
-rw-r--r--content/projects/sh.org.ru.md3
-rw-r--r--layouts/go/single.html7
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/projects/single.html21
7 files changed, 61 insertions, 5 deletions
diff --git a/assets/icons/git.svg b/assets/icons/git.svg
new file mode 100644
index 0000000..53becfa
--- /dev/null
+++ b/assets/icons/git.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
+ stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
+ class="icon icon-tabler icons-tabler-outline icon-tabler-brand-git">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M16 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
+ <path d="M12 8m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
+ <path d="M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
+ <path d="M12 15v-6" />
+ <path d="M15 11l-2 -2" />
+ <path d="M11 7l-1.9 -1.9" />
+ <path
+ d="M13.446 2.6l7.955 7.954a2.045 2.045 0 0 1 0 2.892l-7.955 7.955a2.045 2.045 0 0 1 -2.892 0l-7.955 -7.955a2.045 2.045 0 0 1 0 -2.892l7.955 -7.955a2.045 2.045 0 0 1 2.892 0z" />
+</svg> \ No newline at end of file
diff --git a/assets/icons/golang.svg b/assets/icons/golang.svg
new file mode 100644
index 0000000..c92e99d
--- /dev/null
+++ b/assets/icons/golang.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
+ stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
+ class="icon icon-tabler icons-tabler-outline icon-tabler-brand-golang">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path
+ d="M15.695 14.305c1.061 1.06 2.953 .888 4.226 -.384c1.272 -1.273 1.444 -3.165 .384 -4.226c-1.061 -1.06 -2.953 -.888 -4.226 .384c-1.272 1.273 -1.444 3.165 -.384 4.226z" />
+ <path
+ d="M12.68 9.233c-1.084 -.497 -2.545 -.191 -3.591 .846c-1.284 1.273 -1.457 3.165 -.388 4.226c1.07 1.06 2.978 .888 4.261 -.384a3.669 3.669 0 0 0 1.038 -1.921h-2.427" />
+ <path d="M5.5 15h-1.5" />
+ <path d="M6 9h-2" />
+ <path d="M5 12h-3" />
+</svg> \ No newline at end of file
diff --git a/assets/icons/link.svg b/assets/icons/link.svg
new file mode 100644
index 0000000..bb1a29d
--- /dev/null
+++ b/assets/icons/link.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
+ stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
+ class="icon icon-tabler icons-tabler-outline icon-tabler-link">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <path d="M9 15l6 -6" />
+ <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
+ <path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
+</svg> \ No newline at end of file
diff --git a/content/projects/sh.org.ru.md b/content/projects/sh.org.ru.md
index 0d4a906..d5ff77c 100644
--- a/content/projects/sh.org.ru.md
+++ b/content/projects/sh.org.ru.md
@@ -1,7 +1,8 @@
+++
description = 'Цитатник рунета'
-project_url = 'https://sh.org.ru/'
title = 'sh.org.ru'
+project_url = 'https://sh.org.ru/'
+git_url = 'https://git.neonxp.ru/shorgru.git/'
+++
Просто воскрешение того самого Башорга. Развивать не собираюсь, просто пусть будет. \ No newline at end of file
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 }}