New design for project landing pages and blogs

This commit is contained in:
2018-04-16 14:33:38 +02:00
parent e5259bb56c
commit 505e3c3a6d
11 changed files with 95 additions and 34 deletions

View File

@@ -4,15 +4,13 @@
#blog_index-container.expand-image-links
.blog-action
| {% if project and project._id == config.MAIN_PROJECT_ID %}
| {% if node.has_method('PUT') %}
a.btn.btn-default.button-edit(href="{{url_for('nodes.edit', node_id=node._id)}}")
i.pi-edit
| Edit Post
| {% endif %}
| {% endif %}
| {{ blogmacros.render_blog_post(node) }}
| {{ blogmacros.render_blog_post(node, project=project) }}
#comments-embed
.comments-list-loading

View File

@@ -18,10 +18,15 @@ meta(property="og:image", content="{{ node.picture.thumbnail('l', api=api) }}")
| {% block page_title %}{{node.name}} - Blog{% endblock%}
| {% block css %}
| {{ super() }}
link(href="{{ url_for('static_cloud', filename='assets/css/project-landing.css') }}", rel="stylesheet")
| {% endblock css %}
| {% set title = 'blog' %}
| {% block body %}
.container
.container-fluid.blog
| {% include 'nodes/custom/post/view_embed.html' %}
| {% endblock %}