22
33[ Lume] ( https://lume.land ) theme to create a simple blog.
44
5- - It supports tags and post authors.
6- - RSS (Atom and JSON).
7- - Sitemap and SEO features.
8- - Instant search engine.
5+ - Supports tags and post authors
6+ - Atom and JSON feeds
7+ - Sitemap and SEO features
8+ - Instant search engine
9+
10+ ## Set up a new site
11+
12+ The ** fastest and easiest** way to configure this theme is the
13+ [ Lume init command] ( https://deno.land/x/lume_init ) , which one can also copy
14+ easily from the [ Simple Blog theme page] ( https://lume.land/theme/simple-blog/ ) .
15+ Running:
16+
17+ ``` bash
18+ deno run -A https://lume.land/init.ts --theme=simple-blog
19+ ```
20+
21+ will create a new project with Simple Blog configured. Edit the
22+ [ ` _data.yml ` ] ( ./src/_data.yml ) file in your blog root folder with your data to
23+ customize the site title, description, and metadata.
24+
25+ Posts must be saved in the ` posts ` folder. For example,
26+ ` posts/my-first-posts.md ` .
927
1028## Install as a remote theme
1129
12- The ** fastest and easiest** way to use this theme is by importing it as a remote
13- module. It allows to create a blog in seconds and update it at any time just by
14- changing the version number in the import URL. Just add the following code to
15- your ` _config.ts ` file:
30+ To add the theme to an existing Lume project, import it in your ` _config.ts `
31+ file as a remote module. Update it by changing the version number in the import
32+ URL:
1633
1734``` ts
1835import lume from " lume/mod.ts" ;
19- import blog from " https://deno.land/x/lume_theme_simple_blog@v0.10.2 /mod.ts" ;
36+ import blog from " https://deno.land/x/lume_theme_simple_blog@v0.15.6 /mod.ts" ;
2037
2138const site = lume ();
2239
@@ -25,13 +42,11 @@ site.use(blog());
2542export default site ;
2643```
2744
28- You can see an example in the [ demo] ( ./demo ) folder. To customize it copy the
29- [ ` _data.yml ` ] ( ./src/_data.yml ) file in your blog root folder and edit it with
30- your data. The posts must be saved in the ` posts ` folder. For example
31- ` posts/ ` my-first-posts.md`.
45+ Copy the [ ` _data.yml ` ] ( ./src/_data.yml ) file to your blog root folder and edit
46+ it with your data.
3247
3348## Use it as a base template
3449
3550To use this theme as a base template for a more customized blog, clone this repo
36- and edit the [ _ config.ts] ( ./_config.ts ) file. The source files are in the
37- [ src] ( ./src/ ) folder. And you can remove the ` /demo ` folder.
51+ and edit the [ \ _ config.ts] ( ./_config.ts ) file. The source files are in the
52+ [ src] ( ./src/ ) folder.
0 commit comments