-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inserting file contents into post #2201
Comments
I don't know if there is a way for markdown, but for the theme template, we could use the |
Yes, but to include a bit of external code in a post, one would have to essentially copy the existing layout into a new layout with the partial inserted where it belongs. What I'm thinking of is the desire to have the post look identical to all the other posts, but simply include some HMTL from an external file. Essentially like I'm just curious if something like this exists or if people think it maybe should.. |
Maybe you need |
I created a plugin with the functionality to include arbitrary code and text files directly into the content of the page/post. |
Is there markdown to insert the contents of a file into a post? Ideally, it would look something like
Similar to how you can insert into a template, how can I inject the contents of
file
into the current markdown file. I understand that markdown isn't for templating, but I feel like there should be a way to do this without building a whole new layout for a single post.I'd like to do this for easy maintenance and to keep the post.md clutter-free.
The text was updated successfully, but these errors were encountered: