From 86478e3d872d573669f50453c766649762653204 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 7 Jul 2018 13:42:14 -0700 Subject: [PATCH] Phantom style prev/next links --- src/article.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/article.py b/src/article.py index 0af2b06..5e0adce 100644 --- a/src/article.py +++ b/src/article.py @@ -170,11 +170,11 @@ class LexiconArticle: citeblock = "
\n" # Prev/next links if next_article is not None: - citeblock += "

Next →

\n".format( - next_article.title_filesafe) + citeblock += "

Next →

\n".format( + next_article.title_filesafe, " class=\"phantom\"" if next_article.player is None else "") if prev_article is not None: - citeblock += "

← Previous

\n".format( - prev_article.title_filesafe) + citeblock += "

← Previous

\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 += "

 

\n" # Citations