-
Notifications
You must be signed in to change notification settings - Fork 107
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
Website 2023 #824
Website 2023 #824
Conversation
@@ -7,7 +7,7 @@ | |||
<meta charset='UTF-8' /> | |||
<meta name='viewport' content='width=device-width, initial-scale=1.0' /> | |||
<title>{% block title %}SET A TITLE{% endblock %}</title> | |||
|
|||
<link rel="stylesheet" href="./styles/main.css"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if possibe but in django you usually use static
Something like
{% load static %}
...
<link rel="stylesheet" href="{% static 'css/main.css' %}">
If it's possible to move this css file to the static
folder (and then use the Django command collectstatic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Andres, for sure this will need to change. The relative reference was for the vite build process, but I will change it when integrating the build process to the current one used by the website
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can give a try and rollback if fails.
Some HTML files already include {#each ...}
, {#if ...}
and other non-Django template language. Not sure how this works
Add new assets, css and convert handlebar templates to django templates based on the work from https://github.com/ishigami/okfn_front.
At the moment all pages except the frontpage have the layout broken because the new template used tailwindcss, and this breaks all the old css styles. The build process for the js and css are still being converted to the current website stack. The new page is using vite + rollup + postcss + tailwindcss for css/js build and minification.