-
Hey, great people, It goes without saying that you're doing an awesome job. I wonder if there is anyway we can grow a newsletter and asking people for their emails; one which will be used to push new posts right into their inbox. I have seen Adding buttons. I have also seen this discussion in this repository. Yet, I am not sure how this functionality works. Do you, e.g., use ConvertKit or something similar to get their emails? And what happens after that? Do you I'm a bit unclear as to how to grow a newsletter with email subscribers the same way you'd have in platforms like Medium or Substack. Much appreciated in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Hello @meysam81,
*I can imagine some sort of security/optimization measure that doesn't allow customization of the email HTML structure too much, and only allows to style the structure provided by the mailing list manager, so best to check the capabilities before diving into custom template creation. Sorry for the lack of specifics, and I hope my rambling helped you in some way. |
Beta Was this translation helpful? Give feedback.
-
I've been trying different things related to the topic of this discussion. Based on my understanding, the best way to achieve a newsletter-like with mkdocs blogs is probably some manual manipulation of the DOM to grab the content of the article and pass that as the body of an email-template to the subscribers (whichever platform it is). Would you say there is something wrong with the following approach? Should I not rely on these class and element names? Is it that just pinning my document.querySelector('header[data-md-component="header"]').remove()
document.querySelector('div[data-md-component="announce"]').remove()
document.querySelector('div.md-sidebar.md-sidebar--post').remove()
document.querySelector('div.md-sidebar.md-sidebar--primary').remove()
document.querySelector('div.md-sidebar.md-sidebar--secondary').remove()
document.querySelector('aside.md-source-file').remove()
document.querySelector('form.md-feedback').remove()
document.querySelector('footer.md-footer').remove()
document.querySelectorAll('body > :not(div[data-md-component="container"])').forEach(e => e.remove()) |
Beta Was this translation helpful? Give feedback.
-
good example here but I don't how he realized it, there no much information in it's repo |
Beta Was this translation helpful? Give feedback.
Hello, Tim here :)
Setting up email subscriptions to a static site is something completely separate from mkdocs. There are two components basically:
To get the RSS feed from my mkdocs-material blog, I used the mkdocs RSS plugin.
Good luck!