[minor] hljs css fix for html tags, {next}=blank if not found
This commit is contained in:
parent
fd1ec5d907
commit
c15c6c4959
2 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue