A
A
azslava2014-09-09 18:48:38
JavaScript
azslava, 2014-09-09 18:48:38

How to add anchors for links inside an article in hexo.io (static site generator)?

Good afternoon.
I recently started using static site generators and settled on hexo.io.
Works great.
But I can't seem to find how to create links to shortcuts inside an article.
More precisely links are created. How to make anchors.
For what? Everything is simple! I need a mini table of contents inside the article.
How did I already try to solve this problem: I tried to install the plugin hexo-renderer-haml , but the code

%strong{:class => "code", :id => "message"} Hello, World!

or
%strong.code#message Hello, World!
no response.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2014-10-22
@mannaro

Might be stupid, but try this:

{% rawblock %}
   <b id='message' class = 'code'>content</b>
{% endrawblock /%}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question