diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-06-27 02:20:00 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-06-27 02:20:00 +0300 |
commit | 12ef16cbeef97b58a5e660230eaa84ceb80afdbc (patch) | |
tree | a4ca8b8a5ed07b8406467f1919e2d76fd44c7952 /templates |
first commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/fs.go | 6 | ||||
-rw-r--r-- | templates/telegram.gotmpl | 5 |
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 |