This project provides a JBake template that uses Tailwind CSS instead of Bootstrap.
To use this template, follow these steps:
JBake requires Java to be installed on your system. You can download the latest version of Java from the official website: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
You can download JBake from the official website: https://jbake.org/download.html
-
Download the latest version of JBake from the official website.
-
Extract the downloaded ZIP file to a directory of your choice, e.g.,
C:\JBake
. -
Add the
bin
directory to your system’s PATH environment variable. -
Open a command prompt and verify the installation by running: + [source,bash] ---- jbake -v ----
-
Download the latest version of JBake from the official website.
-
Extract the downloaded ZIP file to a directory of your choice, e.g.,
/Applications/JBake
. -
Add the
bin
directory to your system’s PATH environment variable. -
Open a terminal and verify the installation by running: + [source,bash] ---- jbake -v ----
-
Download the latest version of JBake from the official website.
-
Extract the downloaded ZIP file to a directory of your choice, e.g.,
/opt/jbake
. -
Add the
bin
directory to your system’s PATH environment variable. -
Open a terminal and verify the installation by running: + [source,bash] ---- jbake -v ----
-
Open a command prompt (Windows) or terminal (Mac/Linux).
-
Navigate to the directory where you want to create your JBake project.
-
Run the following command to create a new JBake project: + [source,bash] ---- jbake -i ----
-
Clone this repository or download the ZIP file and extract it.
-
Copy the contents of the
templates
directory from this repository into thetemplates
directory of your JBake project. -
The directory structure should look like this: + [source,text] ---- your-jbake-project/ ├── jbake.properties ├── content/ ├── output/ └── templates/ ├── layouts/ │ └── default.ftl ├── assets/ │ └── css/ │ └── tailwind.css └── index.ftl ----
-
Open the
jbake.properties
file in your JBake project. -
Set the
template.folder
property totemplates
. + [source,properties] ---- template.folder=templates ----
The template includes the following:
-
Tailwind CSS for styling.
-
A basic layout (
default.ftl
) that includes the necessary Tailwind CSS setup. -
An example
index.ftl
file to get you started.
To customize the template:
-
Modify the
default.ftl
file to change the overall layout. -
Add or modify the CSS in
assets/css/tailwind.css
. -
Create new content files in the
content
directory.
You can customize the template by modifying the following files:
-
templates/layouts/default.ftl
: This file contains the main layout of the site. -
templates/assets/css/tailwind.css
: This file contains the Tailwind CSS styles. -
templates/index.ftl
: This is an example index page.