Convert a Jekyll template to Blot
This guide shows how to convert a Jekyll template to Blot. It uses the base Jekyll theme Minima as an example. It helps to skim Minima’s source code first.
Before
After
- Source code for Minima as Blot template
- Demo of Minima on Blot
Get the source
Download the code from GitHub and unzip the results. Here is what I have:
- _config.yml9/26/269/26/2026 9:35 AM26 Sep 2026824 bytes824 bytes824 bytesYML File
- _includes, folder6/21/256/21/2025 2:11 PM21 Jun 2025--0 itemsFile folder
- _layouts, folder10/9/2510/9/2025 7:57 AM9 Oct 2025--0 itemsFile folder
- _posts, folder11/26/2611/26/2026 7:21 PM26 Nov 2026--0 itemsFile folder
- _sass, folder12/7/2512/7/2025 12:10 PM7 Dec 2025--0 itemsFile folder
- 404.htmlYesterday12/1/2026 8:06 AMYesterday 8:06124 bytes124 bytes124 bytesMicrosoft Edge HTML Document
- about.md10/19/2510/19/2025 2:57 PM19 Oct 20252 KB2 KB1.5 kBMD File
- assets, folder9/10/259/10/2025 10:25 AM10 Sep 2025--0 itemsFile folder
- CODE_OF_CONDUCT.md9/26/259/26/2025 9:48 AM26 Sep 20251 KB2 KB1.0 kBMD File
- Gemfile, folder11:07 AM12/2/2026 11:07 AMToday 11:07--0 itemsFile folder
- History.markdown9/15/259/15/2025 10:22 PM15 Sep 2025516 bytes516 bytes516 bytesMARKDOWN File
- index.md11/28/2611/28/2026 9:33 PM28 Nov 20261 KB2 KB1.0 kBMD File
- LICENSE.txt7/15/267/15/2026 8:12 AM15 Jul 2026632 bytes632 bytes632 bytesText Document
- minima.gemspec8/21/268/21/2026 2:01 AM21 Aug 20261 KB2 KB1.3 kBGEMSPEC File
- README.md11/16/2611/16/2026 2:34 PM16 Nov 20261 KB2 KB1.1 kBMD File
- screenshot.png10/11/2510/11/2025 1:13 AM11 Oct 20254 KB4 KB3.8 kBPNG File
- script, folder11/11/2611/11/2026 4:47 AM11 Nov 2026--0 itemsFile folder
Clean up the files
Remove files and directories that are not relevant to Blot. The _posts directory is not needed because Blot posts do not live inside the template directory. The script directory is also not needed because it contains Jekyll-specific scripts:
- _config.ymlYesterday12/1/2026 7:56 AMYesterday 7:56824 bytes824 bytes824 bytesYML File
- _includes, folder9/29/269/29/2026 6:26 PM29 Sep 2026--0 itemsFile folder
- _layouts, folder11/22/2611/22/2026 1:07 AM22 Nov 2026--0 itemsFile folder
- _sass, folder11/27/2611/27/2026 9:10 AM27 Nov 2026--0 itemsFile folder
- 404.html8:34 AM12/2/2026 8:34 AMToday 8:34124 bytes124 bytes124 bytesMicrosoft Edge HTML Document
- assets, folder11/8/2611/8/2026 9:15 PM8 Nov 2026--0 itemsFile folder
- LICENSE.txt11/28/2611/28/2026 11:42 PM28 Nov 2026632 bytes632 bytes632 bytesText Document
Compile the Sass/SCSS files
Move minima-social-icons.svg out of the assets directory. Blot does not compile SCSS, so compile assets/css/style.scss to CSS and save it as style.css in the template root. You can then remove the _sass and assets directories. If needed, you can reference the compiled CSS from the Minima demo:
- _config.ymlYesterday12/1/2026 7:56 AMYesterday 7:56824 bytes824 bytes824 bytesYML File
- _includes, folder9/29/269/29/2026 6:26 PM29 Sep 2026--0 itemsFile folder
- _layouts, folder11/22/2611/22/2026 1:07 AM22 Nov 2026--0 itemsFile folder
- 404.html8:34 AM12/2/2026 8:34 AMToday 8:34124 bytes124 bytes124 bytesMicrosoft Edge HTML Document
- minima-social-icons.svg11/5/2611/5/2026 2:06 AM5 Nov 2026510 bytes510 bytes510 bytesSVG File
- LICENSE.txt11/26/2611/26/2026 11:42 PM26 Nov 2026632 bytes632 bytes632 bytesText Document
- style.css11/28/2611/28/2026 8:08 PM28 Nov 2026182 bytes182 bytes182 bytesCSS File
Layouts, includes and partial templates
The template systems used by Blot and Jekyll offer ways to avoid repeating the same code across different pages. For example, the Minima template has a header that is present on every page on your site. This header is stored in its own file _includes/header.html.
Jekyll allows you to embed this file in another template file using the following syntax:
{%- include head.html -%}
Jekyll also uses ‘layouts’, which specify a combination of included template files that are used to render the HTML sent to your readers. Here’s the contents of layouts/default.html which is used to render all the pages in the Minima template:
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<body>
{%- include header.html -%}
<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>
{%- include footer.html -%}
</body>
</html>
Flatten directory structure
Blot template files cannot exist in subdirectories, so move the files inside ‘_includes’ and ‘_layouts’ into the root directory.
- _config.yml11/19/2611/19/2026 3:09 PM19 Nov 2026824 bytes824 bytes824 bytesYML File
- 404.html8:34 AM12/2/2026 8:34 AMToday 8:34124 bytes124 bytes124 bytesMicrosoft Edge HTML Document
- default.html9/20/269/20/2026 10:11 PM20 Sep 20263 KB3 KB2.6 kBMicrosoft Edge HTML Document
- head.html2/10/262/10/2026 8:33 PM10 Feb 20262 KB2 KB1.5 kBMicrosoft Edge HTML Document
- footer.html6/15/256/15/2025 7:55 AM15 Jun 20251 KB2 KB1.1 kBMicrosoft Edge HTML Document
- home.html1/17/261/17/2026 7:42 AM17 Jan 20262 KB3 KB2.2 kBMicrosoft Edge HTML Document
- LICENSE.txt11/9/2611/9/2026 3:00 PM9 Nov 2026632 bytes632 bytes632 bytesText Document
- minima-social-icons.svg5/25/265/25/2026 2:51 PM25 May 2026510 bytes510 bytes510 bytesSVG File
- post.html9/9/269/9/2026 2:43 AM9 Sep 20261 KB2 KB1.5 kBMicrosoft Edge HTML Document
- page.html2/12/262/12/2026 8:32 AM12 Feb 20262 KB2 KB1.6 kBMicrosoft Edge HTML Document
- social.html11/28/2611/28/2026 5:11 PM28 Nov 2026334 bytes334 bytes334 bytesMicrosoft Edge HTML Document
- header.html12/18/2512/18/2025 12:26 AM18 Dec 2025284 bytes284 bytes284 bytesMicrosoft Edge HTML Document
- disqus_comments.html11/27/2611/27/2026 12:48 PM27 Nov 20263 KB3 KB2.8 kBMicrosoft Edge HTML Document
- google-analytics.htmlYesterday12/1/2026 9:30 AMYesterday 9:30482 bytes482 bytes482 bytesMicrosoft Edge HTML Document
Convert the index page
The homepage of this Jekyll template is inside ‘home.html’. On Blot, this file must be called ‘entries.html’. So rename it and open the file in your text editor:
---
layout: default
---
<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
{{ content }}
{%- if site.posts.size > 0 -%}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
<ul class="post-list">
{%- for post in site.posts -%}
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>
<p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p>
{%- endif -%}
</div>
Here’s how it should look using Blot’s template system:
{{> header}}
<div class="home">
<h2 class="post-list-heading">Posts</h2>
<ul class="post-list">
{{#entries}}
<li>
<span class="post-meta">{{date}}</span>
<h3>
<a class="post-link" href="{{{url}}}">
{{title}}
</a>
</h3>
{{#show_excerpts}}
{{summary}}
{{/show_excerpts}}
</li>
{{/entries}}
</ul>
<p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="/minima-social-icons.svg#rss"></use></svg><a href="/feed.xml">Subscribe</a></p>
</div>
{{> footer}}
We have changed Jekyll’s {%- for post in site.posts -%} syntax with Blot’s {{#entries}} syntax.
Config.yml to Package.json
Jekyll stores information about the theme in a file called _config.yml. Blot uses a file called package.json. The “locals” property of package.json is passed to render your template.