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

Continuous Import does not generate a slug #401

Open
devilgate opened this issue Oct 27, 2021 · 0 comments
Open

Continuous Import does not generate a slug #401

devilgate opened this issue Oct 27, 2021 · 0 comments

Comments

@devilgate
Copy link
Contributor

The continuous_import plugin doesn't include a slug in the metadata it writes. That is, instead of something like:

.. slug: my-latest-post

you just get:

.. slug:

With the standard metadata, that doesn't seem to matter, and a slug is generated from the title at build time. But I recently switched to using YAML for my metadata, and I end up with something like this:

---
category: ''
date: Sun, 24 Oct 2021 18:54:02 +0100
description: ''
link: ''
slug: ''
tags: films, letterboxd
title: No Country for Old Men, 2007 - ★★½
type: text
---

Trouble is, I do not then get a slug generated from the title at build. Instead the output file is generated as index.html. Which works for the first one, but as soon as there's a second, we have a problem.

Oddly, if I delete the slug: line, it works. So the problem is perhaps in the main code, with how it's parsing YAML metadata. But I feel that the root of it is that the plugin doesn't create the slug.

Arguably both should be fixed, of course.

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

1 participant