Commit b8320793 authored by Markus Willman's avatar Markus Willman

layout considerations

parent d2fb36c6
## DCBase.org boilerplate documents
#### Site boilerplate documents
This directory contains document templates to be used when creating new pages on the site, please
refer to the comments included within the templates, if any, for further details.
## DCBase.org markdown content
#### Site markdown content
This directory contains files used by the template files on [dcbase.org](https://www.dcbase.org) to
pull page content or copy into the final resulting pages served to the user. Although they may also
......
## DCBase.org Theme and Template Files
#### Site Theme and Template Files
This directory contains files for the base template in use on [dcbase.org](https://www.dcbase.org/).
The template uses basic [Bootstrap](https://getbootstrap.com/) style, which is in fact modified from
......
## DCBase.org Theme and Template Files
#### Site Theme and Template Files
This directory contains files for the base template in use on [dcbase.org](https://www.dcbase.org/).
The template uses basic [Bootstrap](https://getbootstrap.com/) style, which is in fact modified from
......
......@@ -17,35 +17,17 @@
{% block title %}{{ util.default_title(content_owner, 'Index of: ' ~ relative_root) }}{% endblock %}
{% block content -%}
<div class="panel panel-default">
<div class="panel-body">
<ol class="breadcrumb">
{% for item in breadcrumbs -%}
{% if not loop.last -%}
<li><a href="{{ make_url(item.directory_path) }}">{{ item.directory_name }}</a></li>
{% else -%}
<li class="active">{{ item.directory_name }}</li>
{% endif -%}
{% endfor -%}
</ol>
{% if readme %}
<div class="readme_content">
{% if readme.type == 'twig' -%}
{% include readme.path %}
{% elseif readme.type == 'markdown' -%}
{% markdownextra readme.path nocache %}
{% else -%}
<pre>{{ source(readme.path, true) }}</pre>
{% endif %}
</div>
{% endif %}
</div>
<ol class="breadcrumb">
{% for item in breadcrumbs -%}
{% if not loop.last -%}
<li><a href="{{ make_url(item.directory_path) }}">{{ item.directory_name }}</a></li>
{% else -%}
<li class="active">{{ item.directory_name }}</li>
{% endif -%}
{% endfor -%}
</ol>
<div class="panel panel-default">
<div class="list-group">
<div class="list-group-item">
<div class="row">
......@@ -73,5 +55,19 @@
</a>
{% endfor %}
</div>
{% if readme %}
<div class="panel-body readme_content">
{% if readme.type == 'twig' -%}
{% include readme.path %}
{% elseif readme.type == 'markdown' -%}
{% markdownextra readme.path nocache %}
{% else -%}
<pre>{{ source(readme.path, true) }}</pre>
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment