updated pages view routes and templates to used content module
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
{% extends "jinja/types/page.html" %}
|
||||
|
||||
{% set title %}About me{% endset %}
|
||||
{% set title %}{{ page.get_title() }}{% endset %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row text-center">
|
||||
<h1 class="text-primary display-1">
|
||||
About me
|
||||
{{ page.get_title() }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{% for row in config.ABOUT_ME %}
|
||||
{% for row in page.get_content() %}
|
||||
<div class="row pb-3">
|
||||
<div class="col-8 text-center {{ loop.cycle('order-first','order-last') }}">
|
||||
<p class="text-secondary lead">
|
||||
{{ row[1] }}
|
||||
{{ page.get_content()[row]['content'] }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="col-4 {{ loop.cycle('order-last','order-first') }}">
|
||||
<picture>
|
||||
{% for img in row[0] %}
|
||||
{% for img in page.get_content()[row]['images'] %}
|
||||
{% if not loop.last %}
|
||||
<source srcset="{{ img }}"
|
||||
media="(max-width: {{ config.IMG_BREAKPOINTS[loop.index] }})" />
|
||||
@@ -29,7 +29,7 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<img class="img-fluid" src="{{ row[0][1] }}">
|
||||
<img class="img-fluid" src="{{ page.get_content()[row]['images'][1] }}">
|
||||
</picture>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user