-
Notifications
You must be signed in to change notification settings - Fork 189
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
Allow About Me to be written in rST or Markdown #85
Comments
That would be great. How can this be done? Jinja discourages and doesn't let you put logic into template. There is no straight forward way to do it in Elegant theme. Possible solutions are to create a Pelican Plugin or change Pelican code base. |
If user has a page with slug |
Hmm, so Elegant will have to iterate over the pages and find the one that What if user wants to use this slug but don't want it to be put in |
She can make use of |
This will not stop Pelican from generating "About Me" page. It will also be What if we miss skipping some where? How will this filtering affect IMHO, a cleaner way is to have a About Me plugin. It can call Pelican |
Shouldn't there be a way in Pelican to create any particular section of text (like the About Me) from markdown? What if I wanted, say, a Message of the Day to appear in the right column of each page? How would I go about putting this md content in its own file, and have it treated as a "section", rather than a page? |
Figured out an easy way to do this. Put "About Me" markdown in a page, but make it |
@codecachet very cool. Love it. Let me know if you can open a PR. |
@iranzo can you find time to implement what @codecachet has suggested? This is in Q3 milestone, it's not as urgent as tasks in Q2 milestone. |
I was having a look at this yesterday night, I need to find how to loop in jinja for this and then extract the data and make the relevant code changes |
Talha, do you have a pointer on how to perform the loop against the filter for articles? Not familiar enough with pelican templates for writing the loop for this :-/ |
Can you try {% for article in articles %}
{% if article.status == blah and article.title == "Landing Page About Me" %} I think we need a specific title for the article we are going to use for about me. |
@tshepang and @calfzhou, it took five years 😆 but the feature is finally here. Currently in beta. https://next.elegant.oncrashreboot.com/customize-home-page (You may have to add ssl error exception to visit the page. Netlify SSL has some issue.) It gives me immense pleasure to close a five year old feature request. |
@all-contributors please add @codecachet for ideas |
I've put up a pull request to add @codecachet! 🎉 |
# [3.0.0](V2.5.0...V3.0.0) (2019-07-03) ### Bug Fixes * **admonition:** links should inherit the admonition color ([60c9184](60c9184)) * **freelists:** use SUBSCRIBE_BUTTON_TITLE instead of generic GO ([c346d1f](c346d1f)) * **home:** remove redundant title ([808cd1d](808cd1d)) ### Features * **home:** write about me in markdown, reST or asciidoc ([9b5b2ec](9b5b2ec)), closes [#85](#85) * **menu:** set home URL to root if SITEURL is not ([23e0b94](23e0b94)) ### BREAKING CHANGES * **home:** Previously LANDING_PAGE_ABOUT was a dictionary that contained html tags. We used it to create landing page. But users have demanded from the very beginning to be able to write the landing page in markdown. This patch adds this feature. But in order to use it, you have to update your configuration.
🎉 This issue has been resolved in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Curremtly,
LANDING_PAGE_ABOUT
is used for that, which is not ideal, especially since it needs (I think) to be written in raw html. Perhaps a solution where this file is read off some file somewhere?(encouraged by #77 (comment) to request a feature before 2.0 gets released)
The text was updated successfully, but these errors were encountered: