Skip to content

Commit

Permalink
fix: v1.3.1: fix the metadatas rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
TayzenDev committed Feb 1, 2025
1 parent 26a5c42 commit 95fbdfe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 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.3.1 - 2025-02-01

### Fixed

- Fix the posts rendering, the metadatas were not displayed

## 1.3.0 - 2025-01-31

### Added
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A demo is available at this URL: [Smallblog Demo](https://smallblog-demo.tayzen.
Create a new directory in your smallweb folder (or in any folder where you want to host the Deno project), add a `main.tsx` and paste this content in it:

```tsx
import { Smallblog } from "jsr:@tayzendev/smallblog@1.3.0";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.3.1";

export default new Smallblog();
```
Expand Down Expand Up @@ -181,7 +181,7 @@ In this example you can see a list of objects with the `name` and `path` attribu
Minimal `main.tsx` to quick-start a project (as shown above):

```tsx
import { Smallblog } from "jsr:@tayzendev/smallblog@1.3.0";
import { Smallblog } from "jsr:@tayzendev/smallblog@1.3.1";

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

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

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.3.0",
"version": "1.3.1",
"exports": "./mod.ts",
"imports": {
"@libs/xml": "jsr:@libs/xml@^6.0.0",
Expand Down
6 changes: 4 additions & 2 deletions server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ export function createServer(config: SmallblogConfig) {

const basename = path.basename(filename);
const dirname = path.dirname(filename);
const matchingFolder = path.join(config.dataFolder, dirname);

return servePage(
c,
basename,
path.join(config.dataFolder, dirname),
matchingFolder,
faviconIsUrl,
customPages,
config,
false,
path.resolve(matchingFolder) === path.resolve(postsFolder) ||
matchingFolder === postsFolder,
);
});

Expand Down

0 comments on commit 95fbdfe

Please sign in to comment.