This repository provides a boilerplate for creating title image slides for blog posts using Marp. Follow the steps below to easily generate a title image.
The target output image size is 1280x680. You can customize title_image.css
if adjustments are necessary.
# <!-- class: normal -->
Painting New Year Decorations with Acrylic Paint
![bg fit 100%](img/paint_with_acrylic.png)
- Node.js
- Marp CLI
-
Install Node.js.
-
Install Marp CLI globally.
npm install -g @marp-team/marp-cli
-
Clone this repository.
git clone https://github.com/motohasystem/marp_boilerplate_titleimage cd marp_boilerplate_titleimage
-
Edit the
index.md
file to add the slide content. You can create slides in Markdown format. -
Run
make.bat
to generate the slides as an image.make.bat
This will generate an image file named
index.png
.
-
A custom CSS theme is included in the
themes
folder. You can specify the theme used inmake.bat
.Example: To use
themes/title_image.css
, modify the--theme
option inmake.bat
.
- Note that
make.bat
is a batch file for Windows. - To customize slide design, edit the CSS files in the
themes
folder.
Enjoy creating fantastic slides with this boilerplate!