From 98d85738e0eb7f21669f78420d5e3a457117de66 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 21 Apr 2022 16:06:07 +0300 Subject: feat: setup templates --- .gitignore | 5 ++--- templates/openring-template.html | 23 ----------------------- templates/openring.html | 23 +++++++++++++++++++++++ templates/page.html | 1 + templates/rss.xml | 5 +++++ templates/rss_item.xml | 4 ++++ 6 files changed, 35 insertions(+), 26 deletions(-) delete mode 100644 templates/openring-template.html create mode 100644 templates/openring.html create mode 100644 templates/rss.xml create mode 100644 templates/rss_item.xml diff --git a/.gitignore b/.gitignore index 55d21d3..7f40a18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -*.html -*.xml -blog/preview.md +out +tmp diff --git a/templates/openring-template.html b/templates/openring-template.html deleted file mode 100644 index be91912..0000000 --- a/templates/openring-template.html +++ /dev/null @@ -1,23 +0,0 @@ - -

Articles from blogs I read

-
- {{range .Articles}} -
-

- {{.Title}} -

-

{{.Summary}}

-
- via {{.SourceTitle}} -
-
{{.Date | datef "January 2, 2006"}}
-
- {{end}} -
-
- - Generated by - openring - -
- diff --git a/templates/openring.html b/templates/openring.html new file mode 100644 index 0000000..be91912 --- /dev/null +++ b/templates/openring.html @@ -0,0 +1,23 @@ + +

Articles from blogs I read

+
+ {{range .Articles}} +
+

+ {{.Title}} +

+

{{.Summary}}

+ +
{{.Date | datef "January 2, 2006"}}
+
+ {{end}} +
+
+ + Generated by + openring + +
+ diff --git a/templates/page.html b/templates/page.html index 3600409..a839e46 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,7 @@ +
diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..683bdb2 --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/templates/rss_item.xml b/templates/rss_item.xml new file mode 100644 index 0000000..a3987fd --- /dev/null +++ b/templates/rss_item.xml @@ -0,0 +1,4 @@ + + + -- cgit v1.2.3