Skip to content

Commit

Permalink
feat: Ongoing likes and reposts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfedi committed Nov 10, 2023
1 parent f8d7c1c commit 6b15be5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _layouts/like.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

<link href="{{ site.url }}" rel="author">
<article class="post detailed h-entry">
<p class="author_title"><span class="p-author">{{site.author}}</span> · <span class="dt-published">{{ page.date | date: "%B %e, %Y" }}</span></p>
<div class="post-tags">
<a href="{{site.baseurl}}/categories/#like" class="p-category">Like</a>
</div>

<div class="entry e-content">
<div class="h-cite u-like-of">
<pre>
Liked this post:

<a class="u-url" href="{{ page.liked }}">{{ page.liked }}</a>
</pre>
<!--like -->
</div>
</div>
</article>
21 changes: 21 additions & 0 deletions _layouts/repost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: default
---

<link href="{{ site.url }}" rel="author">
<article class="post detailed h-entry">
<p class="author_title"><span class="p-author">{{site.author}}</span> · <span class="dt-published">{{ page.date | date: "%B %e, %Y" }}</span></p>
<div class="post-tags">
<a href="{{site.baseurl}}/categories/#repost" class="p-category">Repost</a>
</div>

<div class="entry e-content">
<div class="h-cite u-repost-of">
<pre>
Reposted:

<a class="u-url" href="{{ page.reposted }}">{{ page.reposted }}</a>
</pre>
</div>
</div>
</article>
4 changes: 4 additions & 0 deletions _posts/2023-11-10-testing-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: like
liked: https://www.aferrero.boo/why-did-i-do-this/
---
4 changes: 4 additions & 0 deletions _posts/2023-11-10-testing-repost.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: repost
reposted: https://www.aferrero.boo/why-did-i-do-this/
---

0 comments on commit 6b15be5

Please sign in to comment.