UNPKG

grunt-assemble-navigation

Version:

Assemble navigation plugin. Automatically generate Bootstrap-style, multi-level side nav. See the sidenav on assemble.io for a demonstration.

20 lines (17 loc) 577 B
/*! * grunt-assemble-navigation <https://github.com/assemble/grunt-assemble-navigation> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ module.exports = [ '<span class="anchor-target" id="<%= id %>"></span>', '<a href="#<%= id %>" name="<%= id %>" class="anchor glyphicon glyphicon-link"></a>', ].join('\n'); // Needs testing var alt = [ '<a href="#<%= id %>" name="<%= id %>" class="anchor">', ' <span class="anchor-target" id="<%= id %>"></span>', ' <span class="glyphicon glyphicon-link"></span>', '</a>' ].join('\n');