From 3fe8a9162248b38d349783516d06d45a7b98b714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B3=D0=B0=D0=BB=D1=8C=D1=86=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sun, 26 Apr 2026 20:50:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=20=D0=91=D0=B0?= =?UTF-8?q?=D0=B7=D0=B0=20=D0=B7=D0=BD=D0=B0=D0=BD=D0=B8=D0=B9=20(kb)=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D0=B5=D1=80=D1=85=D0=BD=D0=B5=D0=BC=20?= =?UTF-8?q?=D1=83=D1=80=D0=BE=D0=B2=D0=BD=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/kb/_index.md | 4 ++++ themes/a2v/layouts/index.html | 10 ++++++++++ themes/a2v/layouts/kb/list.html | 25 +++++++++++++++++++++++++ themes/a2v/layouts/kb/single.html | 16 ++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 content/kb/_index.md create mode 100644 themes/a2v/layouts/kb/list.html create mode 100644 themes/a2v/layouts/kb/single.html diff --git a/content/kb/_index.md b/content/kb/_index.md new file mode 100644 index 0000000..8cee65d --- /dev/null +++ b/content/kb/_index.md @@ -0,0 +1,4 @@ ++++ +title = "База знаний" +draft = false ++++ diff --git a/themes/a2v/layouts/index.html b/themes/a2v/layouts/index.html index 40b4eb3..5005328 100644 --- a/themes/a2v/layouts/index.html +++ b/themes/a2v/layouts/index.html @@ -23,6 +23,16 @@ + +
+
+
+

База знаний

+

Статьи и документация по различным темам.

+ Открыть +
+
+
{{ end }} diff --git a/themes/a2v/layouts/kb/list.html b/themes/a2v/layouts/kb/list.html new file mode 100644 index 0000000..6a22e0b --- /dev/null +++ b/themes/a2v/layouts/kb/list.html @@ -0,0 +1,25 @@ +{{ define "main" }} +
+

База знаний

+ +
+ {{ range .Pages.ByDate.Reverse }} +
+
+
+

{{ .Title }}

+

{{ .Summary }}

+ {{ if .Params.tags }} +
+ {{ range .Params.tags }} + {{ . }} + {{ end }} +
+ {{ end }} +
+
+
+ {{ end }} +
+
+{{ end }} diff --git a/themes/a2v/layouts/kb/single.html b/themes/a2v/layouts/kb/single.html new file mode 100644 index 0000000..d60921f --- /dev/null +++ b/themes/a2v/layouts/kb/single.html @@ -0,0 +1,16 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{ partial "source-path.html" . }} + + {{ if .Params.tags }} +
+ {{ range .Params.tags }} + {{ . }} + {{ end }} +
+ {{ end }} + + {{ .Content }} +
+{{ end }}