Quellcode durchsuchen

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

version-14
Anand Doshi vor 10 Jahren
Ursprung
Commit
c15c6c4959
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      frappe/public/css/hljs.css
  2. +4
    -1
      frappe/website/template.py

+ 1
- 1
frappe/public/css/hljs.css Datei anzeigen

@@ -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;
}


+ 4
- 1
frappe/website/template.py Datei anzeigen

@@ -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.


Laden…
Abbrechen
Speichern