mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
feat: replace Post button with post-type dropdown menu
Clicking Post now shows a dropdown with Note, Bookmark, Reply, Like, Repost, and Article options. Each opens /posts/create with the selected type and pre-filled URL/title in a popup window.
This commit is contained in:
9
news.njk
9
news.njk
@@ -164,8 +164,7 @@ withSidebar: true
|
||||
class="share-post-btn"
|
||||
:data-share-url="item.link"
|
||||
:data-share-title="item.title"
|
||||
data-share-type="note"
|
||||
title="Create post"
|
||||
title="Create post"
|
||||
aria-label="Create post"
|
||||
>
|
||||
<span class="share-post-icon">✏️</span>
|
||||
@@ -219,8 +218,7 @@ withSidebar: true
|
||||
class="share-post-btn mt-2"
|
||||
:data-share-url="item.link"
|
||||
:data-share-title="item.title"
|
||||
data-share-type="note"
|
||||
title="Create post"
|
||||
title="Create post"
|
||||
aria-label="Create post"
|
||||
>
|
||||
<span class="share-post-icon">✏️</span>
|
||||
@@ -297,8 +295,7 @@ withSidebar: true
|
||||
class="share-post-btn"
|
||||
:data-share-url="item.link"
|
||||
:data-share-title="item.title"
|
||||
data-share-type="note"
|
||||
title="Create post"
|
||||
title="Create post"
|
||||
aria-label="Create post"
|
||||
>
|
||||
<span class="share-post-icon">✏️</span>
|
||||
|
||||
Reference in New Issue
Block a user