Skip to content

Commit

Permalink
Add alt attribute to cover, include it in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
sukiletxe committed Oct 8, 2020
1 parent 6008bc8 commit 8a4d454
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 @@ -79,7 +79,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("<main>")
fp.write("\n\n\n".join(nchapters))
Expand Down

0 comments on commit 8a4d454

Please sign in to comment.