From 57eb8f6712361a3bf75983ce153fac4846dc0273 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 11 Feb 2025 16:31:08 +0530 Subject: Initial commit --- .../users/partials/article-favorite-button.tmpl | 12 +++++ .../templates/users/partials/feed-navigation.tmpl | 17 ++++++ .../templates/users/partials/follow-button.tmpl | 14 +++++ cmd/web/templates/users/partials/post-preview.tmpl | 61 ++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 cmd/web/templates/users/partials/article-favorite-button.tmpl create mode 100644 cmd/web/templates/users/partials/feed-navigation.tmpl create mode 100644 cmd/web/templates/users/partials/follow-button.tmpl create mode 100644 cmd/web/templates/users/partials/post-preview.tmpl (limited to 'cmd/web/templates/users/partials') diff --git a/cmd/web/templates/users/partials/article-favorite-button.tmpl b/cmd/web/templates/users/partials/article-favorite-button.tmpl new file mode 100644 index 0000000..c63182a --- /dev/null +++ b/cmd/web/templates/users/partials/article-favorite-button.tmpl @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/feed-navigation.tmpl b/cmd/web/templates/users/partials/feed-navigation.tmpl new file mode 100644 index 0000000..00629d9 --- /dev/null +++ b/cmd/web/templates/users/partials/feed-navigation.tmpl @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/follow-button.tmpl b/cmd/web/templates/users/partials/follow-button.tmpl new file mode 100644 index 0000000..d893ea0 --- /dev/null +++ b/cmd/web/templates/users/partials/follow-button.tmpl @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/post-preview.tmpl b/cmd/web/templates/users/partials/post-preview.tmpl new file mode 100644 index 0000000..4e00357 --- /dev/null +++ b/cmd/web/templates/users/partials/post-preview.tmpl @@ -0,0 +1,61 @@ +
+ {{ if .HasArticles }} + {{ $isSelf := .IsSelf }} + {{ 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 -- cgit v1.2.3