This is an open-source blogging platform built with Eleventy, TailwindCSS, and DaisyUI. It's designed to be SEO-friendly and easily customizable.
Clone the repository
Install dependencies:
npm install
Run the development server:
npm run dev
Open your browser and navigate to:
http://localhost:8081
To build the app for production:
npm run build
This will generate optimized HTML, CSS, and assets in the dist
folder.
The platform supports both local and remote blog posts. To switch between them, set the SUPER_USEFUL_API
environment variable:
SUPER_USEFUL_API
unsetSUPER_USEFUL_API
to your API keyThe main Eleventy configuration is located in eleventy.config.js
. Here you can modify:
Tailwind CSS configuration can be found in tailwind.config.js
. Modify this file to customize your design system.
To add a local blog post, create a new Markdown file in the views/blog
directory. Use the following frontmatter:
---
title: Your Blog Post Title
description: A brief description of your post
date: 2023-05-01
tags: [tag1, tag2]
layout: blog_post
---
Your blog post content goes here...
Remote blog posts are fetched from an API. Ensure your API returns posts in the format expected by the blogSuperUseful
global data function.
views/_layouts/main.liquid
views/_layouts/blog_post.liquid
views/blog.local.liquid
or views/blog.server.liquid
The main CSS file is style/app.css
. You can add custom styles here or create new CSS files and import them.
Contributions are welcome! Please feel free to submit a Pull Request.