mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
feat: add save-for-later buttons to frontend pages
Add shared save-later.js module and per-item save buttons to blogroll, podroll, listening, and news pages. Buttons are hidden by default and only visible when logged in. Posts to the readlater plugin API at /readlater/save.
This commit is contained in:
11
podroll.njk
11
podroll.njk
@@ -144,6 +144,17 @@ permalink: /podroll/
|
||||
</svg>
|
||||
RSS
|
||||
</a>
|
||||
<button
|
||||
class="save-later-btn"
|
||||
:data-save-url="episode.url"
|
||||
:data-save-title="episode.title"
|
||||
data-save-source="podroll"
|
||||
title="Save for later"
|
||||
aria-label="Save for later"
|
||||
>
|
||||
<span class="save-later-icon">📑</span>
|
||||
<span class="save-later-label">Save</span>
|
||||
</button>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user