inline->css

This commit is contained in:
m
2026-03-13 20:52:24 +01:00
parent 752a32a5ac
commit 01c186edc7
3 changed files with 27 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
@@ -17,6 +17,10 @@
href="{{ url_for('static', filename='css/simple-blog-template.css') }}"
rel="stylesheet"
/>
<link
href="{{ url_for('static', filename='css/blog.css') }}"
rel="stylesheet"
/>
</head>
<body>

View File

@@ -1,5 +1,9 @@
{% extends "base.html" %} {% block title %}{{blog_title.title}}{% endblock %} {%
block content %}
<!--timeline as a component which will be filled with callable function
### {{ timeline("career") }} this is a part of html string
### nested render-->
<div class="row">
<div class="col-md-12">
{% for post in posts %}
@@ -17,15 +21,7 @@ block content %}
<!-- stytle customed, expanded and unextanded posts have different margin-->
{% if post.displayall %}
<div>{{ post.content | safe }}</div>
<hr
style="
width: 100%;
margin-top: 25px;
margin-bottom: 60px;
border: 1px solid #000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
"
/>
<hr class="post-divider post-divider-expanded" />
{% else %}
<div>{{ post.content | striptags | truncate(200) }}</div>
@@ -35,15 +31,8 @@ block content %}
href="{{ url_for('post_detail', post_id=post.id) }}"
>Read More</a
>
<hr
style="
width: 100%;
margin-top: 75px;
margin-bottom: 60px;
border: 1px solid #000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
"
/>
<hr class="post-divider post-divider-preview" />
{% endif %} {% endfor %}
<ul class="pager">
{% if prev_url %}