-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from ePages-de/develop
Release v0.6.0
- Loading branch information
Showing
11 changed files
with
107 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- id: uabrisketa | ||
name: Unai A. | ||
full_name: Unai Abrisketa | ||
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
image: male_avatar.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% for author in page.about_authors %} | ||
{% assign author_data = site.data.authors | where:"id", author | first %} | ||
{% unless author_data %} | ||
{% assign no_author = true %} | ||
{% endunless %} | ||
{% endfor %} | ||
|
||
{% if no_author %} | ||
<hr class="separator"> | ||
{% else %} | ||
<div class="authors"> | ||
<h2 class="author__title">About the author{% if page.about_authors.size > 1 %}s{% endif %}</h2> | ||
|
||
<div class="author__container"> | ||
{% for author in page.about_authors %} | ||
{% assign author_data = site.data.authors | where:"id", author | first %} | ||
<div class="author__card author__card--{{ page.about_authors.size }}"> | ||
<a class="author__image author__image--{{ page.about_authors.size }}" href="/assets/img/pages/blog/authors/{{ author_data.image }}" data-lightbox="/assets/img/authors/{{ author_data.image }}"> | ||
<img src="/assets/img/pages/blog/authors/{{ author_data.image }}"> | ||
</a> | ||
<div class="author__description"> | ||
<strong>{{ author_data.full_name }}</strong> {{ author_data.description }} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ | |
@import 'scroll-top' | ||
@import 'search-bar' | ||
@import 'slider' | ||
@import 'authors' | ||
@import 'separators' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.author | ||
|
||
&s | ||
margin-top: $card-margin-mobile | ||
|
||
+grid-media($grid-medium) | ||
margin-top: $card-margin-desktop | ||
|
||
&__container | ||
+grid-collapse | ||
+grid-container | ||
|
||
&__card | ||
+grid-column(12) | ||
background: #eee | ||
padding: $card-margin-mobile | ||
box-sizing: border-box | ||
display: flex | ||
flex-direction: column | ||
align-items: center | ||
margin-bottom: $card-margin-mobile | ||
|
||
+grid-media($grid-medium) | ||
padding: calc(#{$card-margin-desktop} / 2) $card-margin-desktop | ||
|
||
&--1, &--2 | ||
flex-direction: row | ||
align-items: center | ||
|
||
&--2 | ||
|
||
+grid-media($grid-medium) | ||
+grid-column(6) | ||
margin-bottom: 0 | ||
|
||
&--3 | ||
|
||
+grid-media($grid-large) | ||
+grid-column(4) | ||
margin-bottom: 0 | ||
|
||
&__image | ||
border-radius: 100% | ||
overflow: hidden | ||
margin-bottom: 2rem | ||
|
||
&--1 | ||
+size(10rem) | ||
min-height: 10rem | ||
min-width: 10rem | ||
|
||
&--1, &--2 | ||
margin-bottom: 0 | ||
|
||
&--2, &--3 | ||
+size(5.6rem) | ||
min-height: 5.6rem | ||
min-width: 5.6rem | ||
|
||
img | ||
+size(100%) | ||
|
||
&__description | ||
margin: 0 2rem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.separator | ||
margin-bottom: 4rem 0 | ||
border: $base-border | ||
border-color: darken($whitesmoke, 2%) | ||
width: 75% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.