Skip to content

Commit

Permalink
Merge pull request #3 from sukiletxe/cover-alt
Browse files Browse the repository at this point in the history
Add alt attribute to cover, include it in TOC
  • Loading branch information
wyattscarpenter authored Dec 16, 2020
2 parents f0f6f79 + fb64ef1 commit 5d1c3a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get_unsong.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def create_book():
fp.write(header)
fp.write("<header>")
if INCLUDE_AUTOGEN_COVER:
fp.write("<img src='%s' alt=''>" % make_cover())
fp.write("<h1>Cover</h1>")
fp.write("<img src='%s' alt='Unsong by Scott Alexander'>" % make_cover())
fp.write("</header>")
fp.write("<main>")
fp.write("\n\n\n".join(nchapters))
Expand Down

0 comments on commit 5d1c3a5

Please sign in to comment.