Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The json feed is not generated correctly #1137

Open
Lazzu opened this issue Jun 1, 2023 · 2 comments
Open

The json feed is not generated correctly #1137

Lazzu opened this issue Jun 1, 2023 · 2 comments

Comments

@Lazzu
Copy link

Lazzu commented Jun 1, 2023

I'm moving to Cobalt from Zola as I'm interested in all things Rust now.

I have my posts sorted in folders for each year they were written in. When generating the json feed the URL points to /posts/post.html instead of /posts/year/post.html.

Also the tags are not populated in the json feed.

/posts/2021/hello-world.md

layout: default.liquid
title: "Hello, World!"
description: "<snip-snap-lengthy-text>"
published_date: "2021-06-26 00:00:00 +0300"
tags: 
    - "blog-meta"
is_draft: false
data: 
    author: "Lasse Numminen"

This produces following json:

{
  "items": [
    {
      "id": "https://<website>/posts/hello-world.html",
      "url": "https://<website>/posts/hello-world.html",
      "title": "Hello, World!",
      "content_html": "<snip-snap-lengthy-text>",
      "content_text": null,
      "date_published": "Sat, 26 Jun 2021 00:00:00 +0300",
      "tags": []
    }]
}
@epage
Copy link
Member

epage commented Jun 1, 2023

I'm moving to Cobalt from Zola as I'm interested in all things Rust now.

In case you missed it, Zola is also implemented in Rust!

For full disclosure: I have had limited time to get cobalt into the shape I wanted.

Also the tags are not populated in the json feed.

Looks like we missed this when adding official tag supported. Fixing it real quick

epage added a commit to epage/cobalt.rs that referenced this issue Jun 1, 2023
@Lazzu
Copy link
Author

Lazzu commented Jun 2, 2023

In case you missed it, Zola is also implemented in Rust!

Oh, I actually really did miss that. 😅 Anyway I have been more satisfied with Cobalt than I have been with Zola. Can't really put my finger on to it but I feel more home with Cobalt.

For full disclosure: I have had limited time to get cobalt into the shape I wanted.

I understand, I have limited time as well. We all have our dayjobs. 🙂

Looks like we missed this when adding official tag supported. Fixing it real quick

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants