Skip to content

Commit

Permalink
fix: v1.1.3: getting back custom message when there is no posts
Browse files Browse the repository at this point in the history
  • Loading branch information
TayzenDev committed Nov 24, 2024
1 parent daeff8b commit 2d4db59
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## 1.1.3 - 2024-11-24

### Fixed

- Fixed the unused parameter `noArticlesMessage`. A custom message can now be set as expected.

## 1.1.2 - 2024-11-23

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ From this template you should change some settings in the `main.ts` file.
Create a new directory in your smallweb folder, add a `main.tsx` and paste this content in it:

```tsx
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.2";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.3";

export default new Smallblog();
```
Expand Down Expand Up @@ -187,7 +187,7 @@ From this template you should change some settings in the `main.ts` file.
Minimal `main.tsx` to quick-start a project (as shown above):

```tsx
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.2";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.3";

export default new Smallblog();
```
Expand All @@ -196,7 +196,7 @@ A `main.tsx` with more parameters:

```tsx
import { html } from "hono/html";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.2";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.1.3";

const customBodyScript = await html`<script
defer
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tayzendev/smallblog",
"version": "1.1.2",
"version": "1.1.3",
"exports": "./mod.ts",
"imports": {
"@libs/xml": "jsr:@libs/xml@^6.0.0",
Expand Down
1 change: 1 addition & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export default new Smallblog({
indexTitle: "A blog about nothing",
indexSubtitle: "A nice demo of smallblog",
defaultAuthors: ["Tayzen"],
noArticlesMessage: "<h3>Coming soon!</h3>",
});
2 changes: 2 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class Smallblog {
indexTitle,
indexSubtitle,
defaultAuthors,
noArticlesMessage,
locale,
customHeaderScript,
customBodyScript,
Expand All @@ -39,6 +40,7 @@ export class Smallblog {
indexSubtitle,
indexTitle,
defaultAuthors,
noArticlesMessage,
locale,
customBodyScript,
customHeaderScript,
Expand Down

0 comments on commit 2d4db59

Please sign in to comment.