Releases version 0.9.1

This commit is contained in:
Eduardo Gomez 2021-01-04 15:52:09 +01:00
parent d11f8b70d8
commit ee5153d0d6
19 changed files with 63 additions and 33 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Binary file not shown.

View file

@ -65,11 +65,11 @@
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
src: url("{{asset 'fonts/icomoon/icomoon.eot?aoz2mo'}}"); src: url("{{asset 'fonts/icomoon/icomoon.eot?101fc3'}}");
src: url("{{asset 'fonts/icomoon/icomoon.eot?aoz2mo#iefix'}}") format('embedded-opentype'), src: url("{{asset 'fonts/icomoon/icomoon.eot?101fc3#iefix'}}") format('embedded-opentype'),
url("{{asset 'fonts/icomoon/icomoon.ttf?aoz2mo'}}") format('truetype'), url("{{asset 'fonts/icomoon/icomoon.ttf?101fc3'}}") format('truetype'),
url("{{asset 'fonts/icomoon/icomoon.woff?aoz2mo'}}") format('woff'), url("{{asset 'fonts/icomoon/icomoon.woff?101fc3'}}") format('woff'),
url("{{asset 'fonts/icomoon/icomoon.svg?aoz2mo#icomoon'}}") format('svg'); url("{{asset 'fonts/icomoon/icomoon.svg?101fc3#icomoon'}}") format('svg');
} }
</style> </style>

View file

@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg", "desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"version": "0.9.0" "version": "0.9.1"
} }

View file

@ -47,10 +47,12 @@
</div> </div>
{{/is}} {{/is}}
{{else}} {{else}}
<header class="m-heading no-margin"> <div class="m-recommended-slider__item glide__slide">
<h3>{{t "No posts found"}}</h3> <div class="m-heading no-margin">
<p> <h3>{{t "No posts found"}}</h3>
{{t "Apparently there are no posts at the moment, check again later."}} <p>
</p> {{t "Apparently there are no posts at the moment, check again later."}}
</header> </p>
</div>
</div>
{{/foreach}} {{/foreach}}

View file

@ -203,7 +203,33 @@ into the {body} of the default.hbs template --}}
--}} --}}
{{/post}} {{/post}}
{{!-- Related posts --}} {{!-- Related posts --}}
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}} {{#if post.tags.length}}
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}}
<section class="m-recommended">
<div class="l-wrapper in-recommended">
<h3 class="m-section-title in-recommended">{{t "Recommended for you"}}</h3>
<div class="m-recommended-articles">
<div class="m-recommended-slider glide js-recommended-slider">
<div class="glide__track" data-glide-el="track">
<div class="glide__slides">
{{!-- The tag below iterates over all the related posts --}}
{{> "loop"}}
</div>
</div>
<div data-glide-el="controls" class="glide__arrows js-controls">
<button data-glide-dir="<" class="m-icon-button filled in-recommended-articles glide-prev" aria-label="{{t "Previous"}}">
<span class="icon-arrow-left" aria-hidden="true"></span>
</button>
<button data-glide-dir=">" class="m-icon-button filled in-recommended-articles glide-next" aria-label="{{t "Next"}}">
<span class="icon-arrow-right" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
</section>
{{/get}}
{{else}}
<section class="m-recommended"> <section class="m-recommended">
<div class="l-wrapper in-recommended"> <div class="l-wrapper in-recommended">
<h3 class="m-section-title in-recommended">{{t "Recommended for you"}}</h3> <h3 class="m-section-title in-recommended">{{t "Recommended for you"}}</h3>
@ -211,23 +237,21 @@ into the {body} of the default.hbs template --}}
<div class="m-recommended-slider glide js-recommended-slider"> <div class="m-recommended-slider glide js-recommended-slider">
<div class="glide__track" data-glide-el="track"> <div class="glide__track" data-glide-el="track">
<div class="glide__slides"> <div class="glide__slides">
{{!-- The tag below iterates over all the related posts --}} <div class="m-recommended-slider__item glide__slide">
{{> "loop"}} <div class="m-heading no-margin">
<h3>{{t "No posts found"}}</h3>
<p>
{{t "Apparently there are no posts at the moment, check again later."}}
</p>
</div>
</div>
</div> </div>
</div> </div>
<div data-glide-el="controls" class="glide__arrows js-controls">
<button data-glide-dir="<" class="m-icon-button filled in-recommended-articles glide-prev" aria-label="{{t "Previous"}}">
<span class="icon-arrow-left" aria-hidden="true"></span>
</button>
<button data-glide-dir=">" class="m-icon-button filled in-recommended-articles glide-next" aria-label="{{t "Next"}}">
<span class="icon-arrow-right" aria-hidden="true"></span>
</button>
</div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{{/get}} {{/if}}
</div> </div>
</article> </article>
</main> </main>

View file

@ -30,7 +30,7 @@ body {
} }
p { p {
line-height: 1.3; line-height: 1.5;
margin: 0; margin: 0;
} }

View file

@ -48,6 +48,9 @@
text-align: center; text-align: center;
@include respond-to('medium') { @include respond-to('medium') {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1; flex: 1;
text-align: left; text-align: left;
} }

View file

@ -87,7 +87,7 @@
span { span {
display: inline-block; display: inline-block;
color: inherit; color: inherit;
font-size: 0.375rem; font-size: 1rem;
margin-left: 8px; margin-left: 8px;
@include transform(translateY(1px)); @include transform(translateY(1px));
} }

View file

@ -85,7 +85,7 @@
} }
&.more { &.more {
font-size: 6px; font-size: 1.25rem;
z-index: 6; z-index: 6;
position: relative; position: relative;

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Binary file not shown.

View file

@ -3,6 +3,7 @@
@include respond-to('medium') { @include respond-to('medium') {
max-width: 820px; max-width: 820px;
min-height: 400px;
margin: 0 auto; margin: 0 auto;
@include respond-to('medium') { @include respond-to('medium') {