[minor] hljs css fix for html tags, {next}=blank if not found

This commit is contained in:
Anand Doshi 2015-05-05 12:40:04 -07:00
parent fd1ec5d907
commit c15c6c4959
2 changed files with 5 additions and 2 deletions

View file

@ -18,7 +18,7 @@ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiac
.hljs,
.hljs-subst,
.hljs-tag .hljs-title,
/*.hljs-tag .hljs-title,*/
.nginx .hljs-title {
color: black;
}

View file

@ -118,7 +118,10 @@ def add_index(out, context):
if next_item:
if next_item.name[0]!="/": next_item.name = "/" + next_item.name
html = ('<p class="btn-next-wrapper"><a class="btn-next" href="{name}">'+_("Next")+': {title}</a></p>').format(**next_item)
out["content"] = out["content"].replace("{next}", html)
else:
html = ""
out["content"] = out["content"].replace("{next}", html)
def add_hero(out, context):
"""Add a hero element if specified in content or hooks.