From 12ef16cbeef97b58a5e660230eaa84ceb80afdbc Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Thu, 27 Jun 2024 02:20:00 +0300 Subject: first commit --- templates/fs.go | 6 ++++++ templates/telegram.gotmpl | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 templates/fs.go create mode 100644 templates/telegram.gotmpl (limited to 'templates') diff --git a/templates/fs.go b/templates/fs.go new file mode 100644 index 0000000..197a5e1 --- /dev/null +++ b/templates/fs.go @@ -0,0 +1,6 @@ +package templates + +import "embed" + +//go:embed *.gotmpl +var Templates embed.FS diff --git a/templates/telegram.gotmpl b/templates/telegram.gotmpl new file mode 100644 index 0000000..9e2b91a --- /dev/null +++ b/templates/telegram.gotmpl @@ -0,0 +1,5 @@ +{{define "telegram"}} +Новый пост в блоге Уголок NeonXP: + +{{.Title}} +{{end}} \ No newline at end of file -- cgit v1.2.3