all repos — archive/homestead @ 4d6378483d46806d0006d6e5755e0eedd6372154

My future indieweb platform

feat: add link helper to view globals

Alan Pearce
commit

4d6378483d46806d0006d6e5755e0eedd6372154

parent

acd2fe16e6323fdf6b6a10f05603c94b3a535fd7

1 file changed, 5 insertions(+), 1 deletion(-)

changed files
M src/views/index.njksrc/views/index.njk
@@ -6,7 +6,11 @@ <h1>hello world</h1>
<ul> {% for filename, post in posts %} - <li>{{ post.data.get('title') }}</li> + <li> + <a href="{{ router.url('post', post.basename)}}"> + {{ post.data.get('title') }} + </a> + </li> {% endfor %} </ul>