develop
HerrHase 2 years ago
parent 596bea5608
commit e35e501865

@ -2,7 +2,4 @@
{% block main %}
<img src="{{ page.fields.media.teaser.src | resize({ width: 100 }) }}" />
{{ page.content | safe }}
{% endblock %}

@ -22,7 +22,7 @@
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
{{ page.title }}
</h1>
</div>
</div>

@ -2,8 +2,4 @@
{% block main %}
{{ page.content | safe }}
{% for hero in page.blocks.hero %}
{{ hero.content }}
{% endfor %}
{% endblock %}

@ -65,7 +65,7 @@ class Engine {
render(view, data, done) {
// merge data
data = assign({}, data, this._defaults)
data = assign(data, this._defaults)
this.nunjucks.render(view, data, (error, response) => {
done(error, response)

@ -57,7 +57,7 @@ class Page {
*/
render(engine, done) {
const page = assign({}, this.fields)
const page = merge({}, this.fields)
page.content = this.content
page.blocks = this.blocks

@ -77,7 +77,7 @@ class Pages {
direction = 'desc'
}
this._results = orderBy(this._results, '_fields.' + key, direction)
this._results = orderBy(this._results, key, direction)
})
}

Loading…
Cancel
Save