Skip to content
Snippets Groups Projects
Commit 85a7a744 authored by Yukun Ge's avatar Yukun Ge
Browse files

[feat] add new features

parent a2652b0e
No related branches found
No related tags found
No related merge requests found
venv
__pycache__
blog/__pycache__
.DS_Store
File deleted
File deleted
File deleted
File deleted
......@@ -34,7 +34,10 @@
{% for post in posts %}
<li>
<a href="{{ url_for('post', post_id=post.id) }}">
<img src="{{ url_for('static', filename='img/' + post.image_file) }}" />
<img
src="{{ url_for('static', filename='img/' + post.image_file) }}"
style="border-radius: 10px"
/>
<h3 class="post_title">{{ post.title }}</h3>
</a>
<p>By {{ post.user.username }}</p>
......
......@@ -6,16 +6,16 @@
}
</script>
<div class="post-header">
<h1 class="post_title">title: {{ post.title }}</h1>
<h1 class="post_title">Title: {{ post.title }}</h1>
<h2>Author: {{ post.user.username }}</h2>
<p>description: {{ post.description }}</p>
<p>Description: {{ post.description }}</p>
{%if post.image_file%}
<img
src="{{url_for('static',filename='img/'+post.image_file)}}"
style="width: 100px"
style="width: 200px; border-radius: 10px"
/>
{%endif%}
<p class="detailed_description">{{ post.content }}</p>
<pre class="detailed_description">{{ post.content }}</pre>
</div>
<hr />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment