trys / sergey

A tiny lil' static site generator
https://sergey.trysmudford.com
MIT License
302 stars 39 forks source link

Nav Links not working #26

Closed matto2 closed 5 years ago

matto2 commented 5 years ago

I tried switching the navigation from standard html to sergy-links, but they did not rendering as links.

whyboris commented 5 years ago

Confirming that links work following the example provided:

  <sergey-link to="index.html">Home</sergey-link>

Becomes:

  <a href="index.html">Home</a>

I spent some time figuring out why it didn't work at first for me ... and I can confirm that sergey fails when you have a class in the link, for example:

  <sergey-link to="index.html" class="my-link-class">Home</sergey-link>

Will fail ⚠️

trys commented 5 years ago

@whyboris Ahh, great spot, thanks for investigating - I'll have a look into it!