disable redis for now, add markdown tag for blog display
This commit is contained in:
parent
bb9865cd97
commit
312a29e8ee
4
dev.yml
4
dev.yml
|
@ -41,5 +41,5 @@ services:
|
||||||
command: npm install
|
command: npm install
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/usr/src/app
|
- ./:/usr/src/app
|
||||||
redis:
|
# redis:
|
||||||
image: redis:latest
|
# image: redis:latest
|
||||||
|
|
|
@ -71,6 +71,6 @@ services:
|
||||||
# - TERM=xterm
|
# - TERM=xterm
|
||||||
|
|
||||||
|
|
||||||
redis:
|
# redis:
|
||||||
image: redis:latest
|
# image: redis:latest
|
||||||
|
|
||||||
|
|
6
live.yml
6
live.yml
|
@ -30,14 +30,12 @@ services:
|
||||||
- .:/app
|
- .:/app
|
||||||
- sockets:/data/sockets
|
- sockets:/data/sockets
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
node:
|
node:
|
||||||
image: node:7-onbuild
|
image: node:7-onbuild
|
||||||
command: npm install
|
command: npm install
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/usr/src/app
|
- ./:/usr/src/app
|
||||||
|
|
||||||
redis:
|
# redis:
|
||||||
image: redis:latest
|
# image: redis:latest
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% load dractags %}
|
||||||
{% block title %}Blog Posts{% endblock %}
|
{% block title %}Blog Posts{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
<a href="{{ post.get_absolute_url }}"><h1>{{ post.title }}</h1></a>
|
<a href="{{ post.get_absolute_url }}"><h1>{{ post.title }}</h1></a>
|
||||||
<p>Published: {{ post.published_date }}</p>
|
<p>Published: {{ post.published_date }}</p>
|
||||||
<p>{{ post.description }}</p>
|
<p>{{ post.description|safe_markdown }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if posts.num_pages > 1 %}
|
{% if posts.num_pages > 1 %}
|
||||||
|
|
Loading…
Reference in New Issue