Questions tagged [jbake]

JBake is a Java based, open source, static site/blog generator

JBake [JavaBake] is a Java based, open source, static site/blog generator. It supports AsciiDoc, Markdown and conventional HTML formatted content as well as Freemarker, Thymeleaf and Groovy template engines.

18 questions
3
votes
2 answers

Sorting lists in Thymeleaf template using a custom comparator

The Thymeleaf documentation states about sorting lists: /* * Sort a copy of the given list. The members of the list must implement * comparable or you must define a comparator. */ ${#lists.sort(list)} ${#lists.sort(list, comparator)} In my…
haui
  • 567
  • 5
  • 18
2
votes
1 answer

Which Static Site Generator can generate pages by just iterating through an assets directory of images (without any content format (e.g. MD) files)?

I'm thinking of publishing a photography blog. Normally, a Static Site Generator generates the site pages based on .MD files and the linked images placed in an assets directory. I'm looking for a Static Site Generator which can generated all the…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
2
votes
1 answer

Is it possible to use `:toc: left` with JBake?

I'd like to render asciidoc pages with JBake that have the floating TOC in the left frame. However, JBake seems to only support putting the TOC at the top of the file. If I 'bake' my site with pages that have the following document header syntax,…
2
votes
1 answer

I'm using the asciidoc formatting in JBake. How can I use a custom backend for the asciidoc to html generation?

I'm using the asciidoc formatting in JBake. I'm using version 2.4.0 of JBake. All is working well, but i want to make some changes in the HTML generated from the asciidoc content. Normally in Asciidoctor you can specify the template_dirs option for…
Marco Tolk
  • 842
  • 1
  • 10
  • 26
2
votes
1 answer

In orientDB, how to search entries for which date are in a given year?

In my OrientDB instance, entries have date property which is stored as a java.util.Date. I would like to get all documents written on a given year. But I don't think writing SELECT FROM posts WHERE date.format('yyyy')=2012 Is the best way to do. or…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
2
votes
1 answer

How to get only year from a date stored in OrientDB

I'm working on JBake, and would like to get the year part of the date at which a document was stored. I know I can get the date by doing SELECT date FROM post And OrientDB will return me a java.util.Date. I know I can also add the year as another…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1
vote
1 answer

Does JBake 're-bake' pages which were already 'baked'?

I'd like to ask a question regarding JBake. Does JBake have any mechanism to detect pages which are already 'baked' (ie. compiled into final output)? If so, could someone please point me the code? I'm hoping that JBake can do this so that when the…
ikevin8me
  • 4,253
  • 5
  • 44
  • 84
1
vote
1 answer

JBake Templates: highlight latest post

I am new to JBake. I saw the default way of creating an index page. <#list posts as post> <#if (post.status == "published")> -- design your posts here This…
Mohit Kanwar
  • 2,962
  • 7
  • 39
  • 59
1
vote
1 answer

Accessing custom jbake confing properties in asciidoc

After some time I spent staring at the jbake code, I figured out that if I declare my own property in jbake.properties : ... foo=bar ... I can reuse that in files that go through a template engine by referencing it as ${config.foo}. I'd like to…
Jiri Kremser
  • 12,471
  • 7
  • 45
  • 72
0
votes
1 answer

How to list all tags from post / pages

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…
Sukma Wardana
  • 540
  • 8
  • 21
0
votes
1 answer

JBake: list all posts with a particular tag (tagged_posts)

In freemarker, how do I iterate over all blog posts with a particular tag, for example the tag "algorithms"? <#assign relatedBlogs = ...> <#if relatedBlogs?size > 0>

Related blog posts

    <#list relatedBlogs as blog> …
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
0
votes
2 answers

Freemarker templates double inheritence (child extends parent extends grandparent)

In Freemarker, how can I create a template that inherits from a template that itself inherits? Single inheritance works fine with the <#nested> tag: File base.ftl: <#macro layout> ...
... (navigation…
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
0
votes
1 answer

JBake Freemarker errror "this has evaluated to a sequence (wrapper: f.t.SimpleSequence"

Given a jbake.properties with: description: OptaPlanner optimizes business resource usage. It is a lightweight, embeddable, open source planning engine, written in 100% Java. And a template with:
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
0
votes
1 answer

Loop through all jbake configuration options

Is there any way to loop through all jbake configuration options? I know that you can do config.[option] for single options. But is there a way to get all of them?
Hengrui Jiang
  • 861
  • 1
  • 10
  • 23
0
votes
1 answer

Problems baking my blog using JBake 2.5.1

When I am trying to "bake" my JBake project using jbake -b I keep getting the following error. ➜ git:(master) ✗ jbake -b JBake v2.5.1 (2017-01-31 23:24:52PM) [http://jbake.org] 18:28:33.646 WARN c.o.o.c.d.r.ODatabaseRecordAbstract$2 - Current…
saw303
  • 8,051
  • 7
  • 50
  • 90
1
2