mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
411 B
8 lines
411 B
arrow = """<svg class="_path-arrow"><use xlink:href="#icon-dir"/></svg>"""
|
|
|
|
app.templates.path = (doc, type, entry) ->
|
|
html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.icon}">#{doc.fullName}</a>"""
|
|
html += """#{arrow}<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
|
|
html += """#{arrow}<span class="_path-item">#{$.escape entry.name}</span>""" if entry
|
|
html
|