Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed bricklayer dependency #167

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions css/bricklayer.css

This file was deleted.

1 change: 0 additions & 1 deletion js/bricklayer.min.js

This file was deleted.

9 changes: 0 additions & 9 deletions js/scopedQuerySelectorShim.min.js

This file was deleted.

8 changes: 2 additions & 6 deletions scss/theme/_blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
/** Blog Listing **/
.blog-listing {

.bricklayer-column {
.column {
padding-left: 0px;
padding-right: 25px;

}

.card {
margin-bottom: 25px;
border: 0;
Expand All @@ -57,10 +57,6 @@
.blog-date {
font-size: 13px;
}

.label {

}
}

/** Blog Item **/
Expand Down
40 changes: 16 additions & 24 deletions templates/blog.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,12 @@
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}

{% block stylesheets %}
{% do assets.addCss('theme://css/bricklayer.css') %}
{{ parent() }}
{% endblock %}

{% block javascripts %}
{{ parent() }}
{% do assets.add('theme://js/bricklayer.min.js') %}
{% do assets.add('theme://js/scopedQuerySelectorShim.min.js') %}
{% endblock %}


{% block hero %}
{% include 'partials/hero.html.twig' with {id: 'blog-hero', content: page.content, hero_image: blog_image} %}
{% endblock %}

{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section id="body-wrapper" class="section">
<section class="container {{ grid_size }}">

{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
Expand All @@ -33,10 +21,21 @@
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}

<div class="bricklayer">
{% for child in collection %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
{% endfor %}
<div class="blog-listing columns">
<div class="column col-6 col-lg-12">
{% for child in collection %}
{% if loop.index0 % 2 == 0 %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}
</div>
<div class="column col-6 col-lg-12">
{% for child in collection %}
{% if loop.index0 % 2 == 1 %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}
</div>
</div>

{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
Expand All @@ -53,11 +52,4 @@
{% endembed %}
</section>
</section>
<script>
//Bricklayer
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
</script>
{% endblock %}