moved buttons related function to buttons.py

This commit is contained in:
Igor Chubin 2018-10-07 12:10:07 +02:00
parent 2fce9af0ea
commit c8fb1dcc0d
2 changed files with 11 additions and 0 deletions

View file

@ -23,3 +23,14 @@ GITHUB_BUTTON_FOOTER = """
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
"""
def add_buttons(output):
"""
Add buttons to html output
"""
return output.replace('</body>',
(TWITTER_BUTTON
+ GITHUB_BUTTON
+ GITHUB_BUTTON_3
+ GITHUB_BUTTON_2
+ GITHUB_BUTTON_FOOTER) + '</body>')