Skip to content

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

License

Notifications You must be signed in to change notification settings

cybergrunge-ops/auto-anchors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

auto-anchors

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

anchors link to {keyword}.html by default

screenshot:

demo

useage

to add more/custom keywords:

  • add new class styling as you like, name new classes "link"+{id}
  • at the bottom, give the functions a word to replace, x, and class id, y

improve this

instead of calling addlinks() multiple times, take apart the function and make a forEach loop so you can simply pass an array of keywords.

About

Quick sketch for replacing keywords with anchors linking to their relevant pages, kinda Wikipedia style.

Topics

Resources

License

Stars

Watchers

Forks

Languages