jbake | Java based open source static site/blog generator for developers & designers | Blog library
kandi X-RAY | jbake Summary
kandi X-RAY | jbake Summary
JBake is a Java based open source static site/blog generator for developers.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Reads the document header
- Gets the AsciiDoc options and attributes
- Gets the Asciidoctor
- Store header values
- Gets the document model
- Retrieves all tags from the database
- Gets the jbake properties
- Get a property by its key
- Processes the body of the parse
- Returns the extension for the given name
- Returns the option keys to be included in the application
- Gets all document types
- Overrides the default settings for a post
- Gets the contents for a given ref
- Gets the document types
- Starts the mojo
- Initializes the template engine
- Initialize the server
- Renders template
- Initialize template engine
- Load engine engines
- Creates the template configuration
- Executes the Mojo
- Create a new Utils object
- Load template engines
- Returns the model as a HashMap
jbake Key Features
jbake Examples and Code Snippets
Community Discussions
Trending Discussions on jbake
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
.
QUESTION
Given a jbake.properties
with:
ANSWER
Answered 2021-May-11 at 07:06The trick is to escape the ,
in jbake.properties
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jbake
The project uses Gradle 4.9+ as the build system. To build the JBake distribution ZIP file execute the following command from the root of the repo:. This will build a ZIP file in the /build/distributions folder. For more information see Test, Build and Deploy.
Add to Editor Code Style Scheme.
Install checkstyle-idea plugin Settings → Plugins → CheckStyle-IDEA
Configure Settings → Other Settings → Checksytle Add a new Configuration File. Enter a Description like "jbake Checkstyle" and choose "Use a local Checkstyle file". The checkstyle File is located at the project root path config/checkstyle/checkstyle.xml
Add to Editor Code Style Scheme Settings → Editor → Code Style Click the gear Symbol besides the "Scheme:" drop-down. Import Scheme → Checkstyle Configuration Pick the project checkstyle file config/checkstyle/checkstyle.xml
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