Using prettify urls in the new project template
quillcraftsman opened this issue · 0 comments
quillcraftsman commented
At now we use urls like this <a href="about.html">
. In website this urls look like mydomain/about.html
.
lava-cactus support more beautiful user-friendly and robot-friendly urls. Like mydomain/about/
To create this urls we need:
- set url using tag
url
:<a href="{% url '/about.html' %}"
- set static files using tag
static
:<img src="{% static 'images/logo.png' %}"
- in config add
"prettify": true
- run dev server
cactus serve
This is work example (my own site): https://craftsman.lol/
And this it's repo: https://github.com/quillcraftsman/my-website
I propose to rewrite project template with this way with new urls