A template repository to build a blog with Lume static site generator
A starter repository showing how to build a blog with the Lume static site generator.
This project started as a fork of eleventy-base-blog but adapted to Lume and with the NetlifyCMS.
git clone https://github.com/lumeland/base-blog.git my-blog-name
_data/site.yml
. Specifically have a look at _config.js
to see if you
want to configure any option differently. See the
Lume documentation site.deno task serve
.about.md
shows how to add a content page.posts/
has the blog posts but really they can live in any directory. The
posts/_data.yml
file adds the value for type
and layout
fields to all
posts.menu
field adds any page to the top level site navigation. For example,
this is in use on index.njk
and about.md
. You can configure the order with
menu.order
and the text with menu.title
.css
files are processed with postcss
plugin. The imported styles are in
_includes/css
img
folder is copied as is, (keeping the same directory structure).feed.xml.njk
and feed.tmpl.js
._includes/layouts/
:
base.njk
: the top level HTML structurehome.njk
: the home page template (wrapped into base.njk
)post.njk
: the blog post template (wrapped into base.njk
)tag.njk
: the tag page template (wrapped into base.njk
)_includes/templates/postlist.njk
is a Nunjucks a reusable template used to
display a list of all the posts. index.njk
has an example of how to use it.admin/
has the NetlifyCMS configuration so
you can edit or create new posts using a friendly CMS..github/workflows/build.yml
and edit the --location
option
with the url of the site, for example
--location=https://username.github.io/repo/
gh-pages
as source..gitlab-ci.yml
and edit the --location
option with the url
of the site, for example --location=https://username.gitlab.io/repo/
.github/workflows/deno_deploy.yml
and edit the following:
--location
option with the url of the site, for example:
--location=https://my-blog.deno.dev
denoland/deployctl
step with the name of your
project.curl -fsSL https://deno.land/x/install/install.sh | sh && /vercel/.deno/bin/deno task build --location=https://example.vercel.app/
.
Edit the --location
option with the name of your domain._site
netlify.toml
file and edit the
--location=https://deno-blog.netlify.app/
option with your own domain..fleek.json
file and edit the
--location=https://example.on.fleek.co
option with your own domain.curl -fsSL https://deno.land/x/install/install.sh | sh && /opt/buildhome/.deno/bin/deno task build --location=https://example.pages.dev/
.
Edit the --location
option with the name of your domain._site
amplify.yml
file with the following values:
version: 1
frontend:
phases:
build:
commands:
- curl -fsSL https://deno.land/x/install/install.sh | sh
- /root/.deno/bin/deno task build
artifacts:
baseDirectory: /_site
files:
- '**/*'
cache:
paths: []