summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/fs.go6
-rw-r--r--templates/telegram.gotmpl5
2 files changed, 11 insertions, 0 deletions
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"}}
+<b>Новый пост в блоге Уголок NeonXP:</b>
+
+<a href="{{.Link}}">{{.Title}}</a>
+{{end}} \ No newline at end of file