inline->css
This commit is contained in:
15
static/css/blog.css
Normal file
15
static/css/blog.css
Normal file
@@ -0,0 +1,15 @@
|
||||
.post-divider {
|
||||
width: 100%;
|
||||
border: 1px solid #000;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.post-divider-expanded {
|
||||
margin-top: 25px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.post-divider-preview {
|
||||
margin-top: 75px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user