jbake.org | Contents behind the http : //jbake.org web site | Continuous Backup library
kandi X-RAY | jbake.org Summary
kandi X-RAY | jbake.org Summary
Contents behind the http://jbake.org web site
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jbake.org
jbake.org Key Features
jbake.org Examples and Code Snippets
Community Discussions
Trending Discussions on jbake.org
QUESTION
I would like to print tags that related with post / page with Jbake. But, after read the JBake documentation, especially for Data Model documentation so far I'm aware about:
- alltags
- tags
- tagged_posts
- tagged_documents
But, among those list there is no data model for tags that specific to post / page. It's possible to print tags specific to post / page?
I'm using:
- JBake version 2.7.0-rc.4
- Apache Freemarker as the template engine
ANSWER
Answered 2021-Oct-06 at 08:15After do trial and error finally I could list all tags from post / page.
JBake documentation for data model is only documented for global data model, so listed below model is for global use and is not what I want.
- alltags
- tags
- tagged_posts
- tagged_documents
The tags for post / page is actually exist within content
data model. You can access it with ${content.tags}
, this will list all tags that related with post / page that you want.
Now, to print it is the tricky part. Because the tags
key within content
model is only exist within post
/ page
template.
post
/ page
template.
List all post / page tags is easier when you're working under post
/ page
template. What you need to do is iterate the content.tags
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jbake.org
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page