Phantom style prev/next links
This commit is contained in:
parent
1f897ecbb0
commit
86478e3d87
|
@ -170,11 +170,11 @@ class LexiconArticle:
|
||||||
citeblock = "<div class=\"content citeblock\">\n"
|
citeblock = "<div class=\"content citeblock\">\n"
|
||||||
# Prev/next links
|
# Prev/next links
|
||||||
if next_article is not None:
|
if next_article is not None:
|
||||||
citeblock += "<p style=\"float:right\"><a href=\"{}.html\">Next →</a></p>\n".format(
|
citeblock += "<p style=\"float:right\"><a href=\"{}.html\"{}>Next →</a></p>\n".format(
|
||||||
next_article.title_filesafe)
|
next_article.title_filesafe, " class=\"phantom\"" if next_article.player is None else "")
|
||||||
if prev_article is not None:
|
if prev_article is not None:
|
||||||
citeblock += "<p><a href=\"{}.html\">← Previous</a></p>\n".format(
|
citeblock += "<p><a href=\"{}.html\"{}>← Previous</a></p>\n".format(
|
||||||
prev_article.title_filesafe)
|
prev_article.title_filesafe, " class=\"phantom\"" if prev_article.player is None else "")
|
||||||
if next_article is None and prev_article is None:
|
if next_article is None and prev_article is None:
|
||||||
citeblock += "<p> </p>\n"
|
citeblock += "<p> </p>\n"
|
||||||
# Citations
|
# Citations
|
||||||
|
|
Loading…
Reference in New Issue