elementary / blog-template

Template for the Jekyll-powered elementary blog
https://blog.elementary.io
GNU General Public License v3.0
32 stars 20 forks source link

Handle `target` for external links at build time #13

Closed dar5hak closed 5 years ago

dar5hak commented 5 years ago

Fixes #3

Using this technique.

Demo.

cassidyjames commented 5 years ago

@dar5hak I think since the error and post templates inherit default, you shouldn't need to do the replace on each one. Can you check if it still works as expected when only applying to default?

cassidyjames commented 5 years ago

We should also remember to drop the line from the README about using JS to replace links. :)

dar5hak commented 5 years ago

@cassidyjames It does indeed work fine without specifying the filter in post.html and error.html.