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
1 changed files with 4 additions and 4 deletions

View File

@ -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 &#8594;</a></p>\n".format( citeblock += "<p style=\"float:right\"><a href=\"{}.html\"{}>Next &#8594;</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\">&#8592; Previous</a></p>\n".format( citeblock += "<p><a href=\"{}.html\"{}>&#8592; 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>&nbsp;</p>\n" citeblock += "<p>&nbsp;</p>\n"
# Citations # Citations