aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2022-11-10 00:15:15 +0300
committerValentin Popov <valentin@popov.link>2022-11-10 00:15:15 +0300
commit2196ad61546f9f91340970c252158ef9dd440bea (patch)
tree9da36a19e73aa43dfbb8b60713dcec5ecec21ddd /templates
parent83a45bcc1986c9ea1a9d8626c7d199b1f90964fa (diff)
downloadpopov.link-2196ad61546f9f91340970c252158ef9dd440bea.tar.xz
popov.link-2196ad61546f9f91340970c252158ef9dd440bea.zip
Integrated styles into an HTML document
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index efdf072..a8d6c8e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -7,15 +7,16 @@
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
- <!-- CSS -->
- <link href="{{ get_url(path='styles.css', trailing_slash=false, cachebust=true) | safe }}" rel="stylesheet" />
-
{% block rss %}
<!-- RSS -->
<link href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}" rel="alternate" title="RSS" type="application/atom+xml" />
{% endblock %}
<title>{{ config.title | safe }}</title>
+
+ <!-- CSS -->
+ {% set css = load_data(path='styles.css') %}
+ <style>{{ css | safe }}</style>
</head>
<body>
@@ -37,4 +38,4 @@
</article>
</body>
-</html>
+</html> \ No newline at end of file