mirror of
https://github.com/Dasharo/docs.git
synced 2026-03-06 14:46:22 -08:00
15 lines
590 B
Python
15 lines
590 B
Python
def define_env(env):
|
|
""" Define macros for MkDocs """
|
|
|
|
@env.macro
|
|
def subscribe_form(list_id, btn_text):
|
|
return (
|
|
f'<form action="https://listmonk.3mdeb.com/subscription/form" method="post" class="subscribe-form">'
|
|
f' <input type="email" name="email" placeholder="Enter your email" required />'
|
|
f' <input type="checkbox" name="l" checked value="{list_id}" style="display: none"/>'
|
|
f' <button type="submit" class="md-button md-button--primary">'
|
|
f' {btn_text}'
|
|
f' </button>'
|
|
f'</form>'
|
|
)
|