Comments (2)
I ended up with customizing the source code myself to achieve below successfully via further installing wagtail-markdown
package.
- only use
body
asMarkdown Field
to draft articles. - automate
excerpt
generation via manually selected (manually append {: .excerpt}) contents. To be specific, all**bold text contents**{: .excerpt}
elements in Markdown syntax will be rendered as<strong class="excerpt">bold text contents</strong>
, and be searched out bybeautifulsoup
, concatenated, and saved to DB as a separate column. - automate
header image
generation via manually selected (manually append {: .excerpt}) image hyperlink. To be specific,![image-name](image-URL){: .excerpt}
in Markdown syntax will be rendered as<img class="excerpt">...</img>
, then usebeautifulsoup
to search out this only<img>
tag withclass="excerpt"
and save to DB as separate column.
Lastly, I just need to fine-tune the template file to let the magic happens. It works well for me.
from puput.
Hello @tian-yan, in the new 1.2.1 version we included wagtail-markdown!
Check it out: https://github.com/APSL/puput/releases/tag/1.2.1.
from puput.
Related Issues (20)
- Upload 1.1.2 on PyPI HOT 4
- Fix broken test suite HOT 1
- Fix broken 1.1.2 package HOT 1
- Unable to relate entry between blogs
- No CSS Styling at all after fresh deployment HOT 2
- Partially working '/blog_admin' page HOT 2
- Internal Server Error: /admin/snippets/puput/category/add/
- Expected UI issues with Wagtail 3.0 release HOT 1
- How to uninstall puput and use plain wagtail without loosing content HOT 2
- Search is only working for one tree and not searching globaly
- Any update comming for v4.1 LTS HOT 7
- New release? HOT 9
- Imports from wagtail generate deprecation warnings HOT 5
- Do not publish to RSS feed if Blog post is "Private"
- Template overrides HOT 1
- Setup instructions suggest use of deprecated wagtail middleware
- ModuleNotFoundError: No module named 'wagtail.core' on a fresh install of puput HOT 1
- wagtail 5.1 compatibility HOT 2
- Django 5 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puput.