From 57eb8f6712361a3bf75983ce153fac4846dc0273 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 11 Feb 2025 16:31:08 +0530 Subject: Initial commit --- .../home/partials/article-favorite-button.tmpl | 6 +++ .../templates/home/partials/feed-navigation.tmpl | 17 ++++++ cmd/web/templates/home/partials/pagination.tmpl | 18 +++++++ cmd/web/templates/home/partials/post-preview.tmpl | 60 ++++++++++++++++++++++ cmd/web/templates/home/partials/tag-item-list.tmpl | 12 +++++ 5 files changed, 113 insertions(+) create mode 100644 cmd/web/templates/home/partials/article-favorite-button.tmpl create mode 100644 cmd/web/templates/home/partials/feed-navigation.tmpl create mode 100644 cmd/web/templates/home/partials/pagination.tmpl create mode 100644 cmd/web/templates/home/partials/post-preview.tmpl create mode 100644 cmd/web/templates/home/partials/tag-item-list.tmpl (limited to 'cmd/web/templates/home/partials') diff --git a/cmd/web/templates/home/partials/article-favorite-button.tmpl b/cmd/web/templates/home/partials/article-favorite-button.tmpl new file mode 100644 index 0000000..c26226a --- /dev/null +++ b/cmd/web/templates/home/partials/article-favorite-button.tmpl @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/cmd/web/templates/home/partials/feed-navigation.tmpl b/cmd/web/templates/home/partials/feed-navigation.tmpl new file mode 100644 index 0000000..0a2356a --- /dev/null +++ b/cmd/web/templates/home/partials/feed-navigation.tmpl @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/cmd/web/templates/home/partials/pagination.tmpl b/cmd/web/templates/home/partials/pagination.tmpl new file mode 100644 index 0000000..2ca4042 --- /dev/null +++ b/cmd/web/templates/home/partials/pagination.tmpl @@ -0,0 +1,18 @@ + diff --git a/cmd/web/templates/home/partials/post-preview.tmpl b/cmd/web/templates/home/partials/post-preview.tmpl new file mode 100644 index 0000000..7ef2111 --- /dev/null +++ b/cmd/web/templates/home/partials/post-preview.tmpl @@ -0,0 +1,60 @@ +
+ {{ if .HasArticles }} + {{ range $article := .Articles }} + +
+ + +

{{ $article.Title }}

+

{{ $article.Description }}

+ +
+ Read more... + +
    + {{ range $tag := $article.Tags }} +
  • {{ $tag.Name }}
  • + {{ end }} +
+
+
+
+ {{ end }} + {{ end }} + + {{ if not .HasArticles }} +
+ +
+ {{ end }} +
\ No newline at end of file diff --git a/cmd/web/templates/home/partials/tag-item-list.tmpl b/cmd/web/templates/home/partials/tag-item-list.tmpl new file mode 100644 index 0000000..eac4e53 --- /dev/null +++ b/cmd/web/templates/home/partials/tag-item-list.tmpl @@ -0,0 +1,12 @@ + \ No newline at end of file -- cgit v1.2.3