Closed HarshKapadia2 closed 3 years ago
./static/css/style.css
./static/css/base.css
./static/css
style.css
./templates/base.html
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/base.css') }}">
{% block head %}
{% block head %}{% endblock %}
head
Eg: base.html (Example from another project)
base.html
<head> ... ... {% block head %}{% endblock %} ... ... </head>
file-name.html (Example from another project)
file-name.html
{% extends 'base.html' %} {% block head %} <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/file-name.css') }}"> {% endblock %} {% block body %} ...
Hello, I would like to start this assignment
Go ahead, @Haroonchik!
@HarshKapadia2 Can you check my PR https://github.com/HarshKapadia2/one-or-two/pull/15 ?
./static/css/style.css
into a file for each page.Changes
./static/css/base.css
../static/css
dir../static/css/style.css
file.style.css
in the./templates/base.html
file../static/css/base.css
file to the./templates/base.html
file as follows{% block head %}
block.{% block head %}{% endblock %}
in thehead
of./templates/base.html
as well.Eg:
base.html
(Example from another project)file-name.html
(Example from another project)