Html Tag set classes

"'[email protected]' [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
Hello,

i convert my page to other static generator which understand not liquid
template language and i can not convert in ruby template language. So 
i ask me i can fix my problem maybe with sed. 

Seeking a way to a particular term inside the head of a article (webpage)
and then in footer want set active to class. It goes with tags and years. 

For example in head, the tag is example together have five tags. 

<span class="time">02.05.2015</span>
<span class="tags"><a href="/blog/tags/society/">society</a>

In  Header should search year and tag. 

Then in footer stand...

<aside class="blog">
<ul>
    <li><a href="/blog/tag/computer/">computer (3)</a></li>
    <li><a href="/blog/tag/society/">society (11)</a></li>
    <li><a href="/blog/tag/state/">state (10)</a></li>
    <li><a href="/blog/tag/media/">media (3)</a></li>
    <li><a href="/blog/tag/network/">network (2)</a></li>
</ul>
 
<ul>
    <li><a href="/blog/2015/">2015 (7)</a></li>
    <li><a href="/blog/2014/">2014 (14)</a></li>
    <li><a href="/blog/2013/">2013 (4)</a></li>
    <li><a href="/blog/2012/">2012 (4)</a></li>
</ul>
</aside>

This is footer should then set class="active" when year and tag is matched. 

Has someone an idea? This should work recursive, because middleman want me 
not set this chance and my coding expierence is limited. 

Thank You & Nice Day
----------------
Silvio Siefke


[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.