Skip to content

Commit

Permalink
Polity-Dance
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Tetarwal committed Aug 12, 2024
1 parent 482122b commit 1c153e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/article.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<a href="/pAll/<%= article.user.username %>"><h2 class="text-zinc-500 hover:underline">-<%= article.user.name %></h2></a>
<img src="<%= article.articlePic %>" alt="<%= article.title %>" class="w-full max-w-xl object-cover rounded-lg">
<p class="tracking-tight border-t border-zinc-900 py-4 w-full max-w-xl"><%- article.content %></p>
<p class="text-zinc-500">Added on: <%= article._id.getTimestamp().toLocaleDateString('en-GB') %></p>
</div>

<a href="/login" target="_blank" class="text-white fixed right-3 bottom-2 px-3 py-2 bg-gradient-to-r from-red-500 to-red-600">Write your article</a>
Expand Down

0 comments on commit 1c153e0

Please sign in to comment.