{"repo":"kowainik/hakyll-shortcut-links","free":true,"listed":false,"github":"https://github.com/kowainik/hakyll-shortcut-links","clone":"git clone https://github.com/kowainik/hakyll-shortcut-links.git","description":"✂️ Hakyll shortcut-links in markdown files","language":"Haskell","stars":11,"topics":["haskell","hakyll","links","shortcut","pandoc","markdown"],"license":"MPL-2.0","category":"productivity","readme_excerpt":"hakyll-shortcut-links This library adds the support of the shortcut-links library in the static website generator library — Hakyll . That being said, it means that you can use shortcuts from shortcut-links library or custom ones in your markdown files which would be extended into complete URLs during the Hakyll site compilation process. Here is the example of how links could look like before expansion: which is going to be transformed into the ordinary links automatically by the library functions: For the full list of the supported shortcuts, you can check ShortcutLinks.All module of the shortcut-links library. How to use in a Hakyll project To use hakyll-shortcut-links in your ready Hakyll project, you would need to go through the following steps: Add the dependency Add hakyll-shortcut-links under the build-depends section in your .cabal file. If you use Stack build tool, you would need to add the library into extra-deps list in the stack.yaml file. Change a standard pandocCompiler Here we assume that you already have a Hakyll project. If not then you can use these tutorials to create one. Anyway, you would eventually have the code that uses pandocCompiler that could look like this function: All you need to change is to use allShortcutLinksCompiler or shortcutLinksCompiler function from this library instead of the standard pandocCompiler : That's all! There could be another situation. You could already have some custom Compiler function: In this case, you can use the applyAl","default_branch":null,"files":null,"tree":[],"storefront":"/r/kowainik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kowainik/hakyll-shortcut-links/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}