Github Linker with Last Updated, Stars, etc... #544
patrickcurl
started this conversation in
Templates Showcase
Replies: 1 comment
-
the code doesn't work for me anymore on the main repo page. const lastUpdate = $('relative-time').getAttribute('datetime'); returns null on the wiki page const lastUpdate = $('relative-time').getAttribute('datetime'); returns the last updated time though.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a nifty ...albeit a little ugly/hackety script to basically paste github links w/ extra meta data. It scrapes the github page for stars, description, user/repo, and last update time. I use this for package lists, personal 'awesome-like' lists so I know I'm using packages that are still being maintained, updated, etc.... Helps when I prune my lists too.
Format looks like:
GitHub - kmaasrud / awesome-obsidian - 🕶️ Awesome stuff for Obsidian
(2.4k ⭐'s) | Sat, Jan 15, 2022 1:05 PM
there's the template file and the script...
git_linker.js
and the template file | GitLinker.md:
Beta Was this translation helpful? Give feedback.
All reactions