Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Sep 25, 2023
1 parent 56381bf commit 78ca0b0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
project adheres to [Semantic Versioning](http://semver.org/).

## [0.12.1] - 2023-09-25
### Changed
- Upgrade to Lume 1.19.0
- Updated dependencies: `@lumeland/ds` and `@oom/mastodon-comments`.

## [0.12.0] - 2023-08-15
### Added
- Mastodon comments system [See @oom/mastodom-comments](https://github.com/oom-components/mastodon-comments)
Expand Down Expand Up @@ -151,6 +156,7 @@ First version
[#15]: https://github.com/lumeland/theme-simple-blog/issues/15
[#16]: https://github.com/lumeland/theme-simple-blog/issues/16

[0.12.1]: https://github.com/lumeland/theme-simple-blog/compare/v0.12.0...v0.12.1
[0.12.0]: https://github.com/lumeland/theme-simple-blog/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/lumeland/theme-simple-blog/compare/v0.10.2...v0.11.0
[0.10.2]: https://github.com/lumeland/theme-simple-blog/compare/v0.10.1...v0.10.2
Expand Down
8 changes: 3 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"lume/": "https://deno.land/x/lume@v1.18.4/"
"lume/": "https://deno.land/x/lume@v1.19.0/"
},
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -",
Expand All @@ -10,8 +10,7 @@
},
"lint": {
"exclude": [
"./_site",
"./_bin"
"./_site"
],
"rules": {
"tags": [
Expand All @@ -21,8 +20,7 @@
},
"fmt": {
"exclude": [
"./_site",
"./_bin"
"./_site"
]
}
}
10 changes: 5 additions & 5 deletions plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import pagefind, { Options as PagefindOptions } from "lume/plugins/pagefind.ts";
import sitemap from "lume/plugins/sitemap.ts";
import feed from "lume/plugins/feed.ts";
import vento from "lume/plugins/vento.ts";
import readingTime from "https://raw.githubusercontent.com/lumeland/experimental-plugins/main/reading_time/mod.ts";
import readingInfo from "lume/plugins/reading_info.ts";
import toc from "https://deno.land/x/[email protected]/toc.ts";
import image from "https://deno.land/x/[email protected]/image.ts";
import footnotes from "https://deno.land/x/[email protected]/footnotes.ts";
Expand All @@ -30,15 +30,15 @@ export default function (options: Options = {}) {
.use(basePath())
.use(toc())
.use(prism(options.prism))
.use(readingTime())
.use(readingInfo())
.use(date(options.date))
.use(metas())
.use(image())
.use(footnotes())
.use(resolveUrls())
.use(slugifyUrls())
.use(pagefind(options.pagefind))
.use(terser())
.use(pagefind(options.pagefind))
.use(sitemap())
.use(vento())
.use(feed({
Expand All @@ -64,13 +64,13 @@ export default function (options: Options = {}) {
// Basic CSS Design System
site.remoteFile(
"_includes/css/ds.css",
"https://unpkg.com/@lumeland/[email protected].0/ds.css",
"https://unpkg.com/@lumeland/[email protected].1/ds.css",
);

// Mastodon comment system
site.remoteFile(
"/js/comments.js",
"https://unpkg.com/@oom/[email protected].0/src/comments.js",
"https://unpkg.com/@oom/[email protected].1/src/comments.js",
);
};
}
2 changes: 1 addition & 1 deletion src/_includes/templates/post-details.vto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</time>
</p>

<p>{{ readingTime.minutes }} {{ i18n.post.reading_time}}</p>
<p>{{ it.readingInfo.minutes }} {{ i18n.post.reading_time}}</p>

<div class="post-tagsss">
{{ for tag of tags }}
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/templates/post-list.vto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
date: post.data.date,
tags: post.data.tags,
author: post.data.author,
readingTime: post.data.readingTime
readingInfo: post.data.readingInfo
} }}
</li>
{{ /for }}
Expand Down
2 changes: 1 addition & 1 deletion src/index.vto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ title: Home
date: post.data.date,
tags: post.data.tags,
author: post.data.author,
readingTime: post.data.readingTime
readingInfo: post.data.readingInfo
} }}
</header>

Expand Down

0 comments on commit 78ca0b0

Please sign in to comment.