Serve issue
This is a little difficult to explain but…I have a site that works with Zola 11, when I serv the same site with Zola 12 I get not found
errors trying to navigate the a page with a specific slug. When I look in the local public folder for the index.html (it’s missing) but I assumed this is due to the html being rendered from memory now not from disk. When I run a zola build
the correct directory is generated with an index.html.
Using zola 12.
C:\Users\Iria\Zola\production (master -> origin)
λ zola --version
zola 0.12.0
Start up a local serv:
C:\Users\Iria\Zola\production (master -> origin)
λ zola serve -i 192.168.1.101 -p 2015 -u 192.168.1.101
Building site...
-> Creating 178 pages (0 orphan), 6 sections, and processing 0 images
Done in 20.0s.
Listening for changes in C:\Users\Iria\Zola\production{config.toml, content, static, templates}
Press Ctrl+C to stop
Web server is available at http://192.168.1.101:2015
Using a known markdown page which has a slug specified:
...
# SLUG: Learning How To Speak English
slug = "learn-how-to-speak-english-1"
...
Which is in a content folder called lessons
Config.toml has slugify settings:
# Various slugification strategies, see below for details
# Defaults to everything being a slug
[slugify]
paths = "on"
taxonomies = "on"
anchors = "on"
Note: I’ve also tried this with the [slugify] section removed, i.e. the default
on
condition should apply.
I expect output at the following URL:
http://192.168.1.101:2015/lessons/learn-how-to-speak-english-1/
I have the browser cache turned off. This is what I get:
When I build the site
C:\Users\Iria\Zola\production (master -> origin)
λ zola build -u https://adeptenglish.com -o ..\deployment\ZOLA12-SLUG
Building site...
-> Creating 178 pages (0 orphan), 6 sections, and processing 0 images
Done in 25.5s.
And look for this page \ZOLA12-SLUG\lessons\learn-how-to-speak-english-1
... \ZOLA12-SLUG\lessons\learn-how-to-speak-english-1\index.html
Observations
- I’ve specified I want to use my own slug
- when the site is built it uses the slug I provided (creating a content directory under lessons using my slug’s name
- When I run serv, the same page is not navigable to getting error
not found
So I expect the built version to server the content (I havent had time to test this yet). Will get back as soon as I have.