Commit 751acd44 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Update directives.py

voir [ce commentaire](/merge_requests/152#note_7831)
parent 801a8952
Pipeline #3813 passed with stages
in 45 seconds
......@@ -396,11 +396,13 @@ class myHTMLTranslator(PelicanHTMLTranslator):
def visit_button(self, node):
self.body.append('<div class="savoirplus detail">\n')
self.body.append('<a href={} target="_blank" rel="noopener noreferrer">\n'.format(node['target']))
self.body.append('<div class="header-btn btn btn-outline-dark">\n')
self.body.append('<a href={}>{}</a>\n'.format(node['target'], node['text']))
self.body.append('{}\n'.format(node['text']))
def depart_button(self, node):
self.body.append('</div>\n')
self.body.append('</a>')
self.body.append('</div>\n')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment