Phantom style prev/next links

This commit is contained in:
Tim Van Baak 2018-07-07 13:42:14 -07:00
parent 1f897ecbb0
commit 86478e3d87

View File

@ -170,11 +170,11 @@ class LexiconArticle:
citeblock = "<div class=\"content citeblock\">\n"
# Prev/next links
if next_article is not None:
citeblock += "<p style=\"float:right\"><a href=\"{}.html\">Next &#8594;</a></p>\n".format(
next_article.title_filesafe)
citeblock += "<p style=\"float:right\"><a href=\"{}.html\"{}>Next &#8594;</a></p>\n".format(
next_article.title_filesafe, " class=\"phantom\"" if next_article.player is None else "")
if prev_article is not None:
citeblock += "<p><a href=\"{}.html\">&#8592; Previous</a></p>\n".format(
prev_article.title_filesafe)
citeblock += "<p><a href=\"{}.html\"{}>&#8592; Previous</a></p>\n".format(
prev_article.title_filesafe, " class=\"phantom\"" if prev_article.player is None else "")
if next_article is None and prev_article is None:
citeblock += "<p>&nbsp;</p>\n"
# Citations