Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 4.03 KB

default-template.md

File metadata and controls

42 lines (32 loc) · 4.03 KB

<% const today = new Date(); -%> <% const date = ${today.getFullYear()}--${today.getMonth() + 1}--${today.getDate()}; -%> <% const count = Object.keys(rows).length; -%> <% const categories = [...new Set(rows.map((content) => content.Category))].sort(); -%> <% const categorizedLists = categories.map((category) => rows.filter((article) => category === article.Category)); -%>

Awesome Reading List Awesome

A curated reading list sync with the Notion Database. Generated by Awesome Reading List

<% if (count) { -%> ![Total](https://img.shields.io/badge/Total-<%= count %>-green.svg) <% } -%> <%- -%> <% if (date) { -%> ![Updated](https://img.shields.io/badge/Updated-<%= date %>-blue.svg) <% } -%>

<% if (categories && categories.length) { -%>

Contents

<% categories.forEach(function(category, index) { -%> <%- - [${category ? category : 'Uncategorized'} (${categorizedLists[index].length})](#${category ? category.split(' ').join('-') : 'Uncategorized'}) %> <% }) -%> <%- -%> <% categories.forEach(function(category, index) { -%>

<%- ## ${category ? category : 'Uncategorized'} %>

Link Created Time Read Memo
<% categorizedLists[index].forEach(function(item) { -%>
<%- ` [${item.Title ''}](${item.URL
<% }) %>
⬆ Back to Index
<% }) -%>
<% } -%>

This README was generated with ❤️ by awesome-reading-list