add tags in a post and change basic

8 views
Skip to first unread message

bussiere adrien

unread,
Dec 14, 2016, 6:25:37 AM12/14/16
to nikola-discuss
I would like to put tags in a specific place in my post and not at the end automatically.

Is there a short code for doing that like {% tags %} ?

regards and thanks

Roberto Alsina

unread,
Dec 14, 2016, 7:42:44 AM12/14/16
to nikola-discuss
It doesn't exist but you can do it yourself!

Here's a basic one that you could put in shortcodes/post_tags.tmpl  (not tags.tmpl because I think we have a template called tags and it would break things)

${ post.tags }

If you want to do something nicer, you will probably have to do something like

<li>
% for t in post.tags:
    <ul> ${t}
</li>

Remember that the templated shortcodes use the same template engine as your theme, so it may be mako or jinja2


--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bussiere adrien

unread,
Dec 14, 2016, 8:15:12 AM12/14/16
to nikola-discuss
Thanks a lot
Reply all
Reply to author
Forward
0 new messages