updates - content_item.css_file not working in
'content_item.html' template
This commit is contained in:
@@ -3,18 +3,13 @@
|
||||
|
||||
{% block head_includes %}
|
||||
{% if content_item.css_file %}
|
||||
<link rel="stylesheet" href="/{{ content_item.css_file }}">
|
||||
<link rel="stylesheet" href="{{ parent_path }}static/css/{{ content_item.slug }}.css">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu_links %}
|
||||
<a href="../index.html">Home</a>
|
||||
<a href="../static/about.html">About</a>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container mt-4 mb-5">
|
||||
{% if content_item.image_file %}<img src="{{ content_item.image_file }}" class="img-fluid mb-5" style="border-radius: 5px;">{% endif %}
|
||||
{% if content_item.image_file %}<img src="{{ content_item.image_file }}" class="img-fluid mb-5 rounded w-100 h-auto">{% endif %}
|
||||
{% if not content_item.omit_second_title %}
|
||||
<h1>{{ content_item.title }}</h1>
|
||||
{% endif %}
|
||||
@@ -28,3 +23,4 @@
|
||||
<script src="{{ content_item.custom_js }}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user