Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:eleven-labs/eleven-labs.github.io
  • Loading branch information
CaptainJojo committed Jun 20, 2017
2 parents 8d12f42 + b059234 commit 1ffb53e
Show file tree
Hide file tree
Showing 46 changed files with 821 additions and 273 deletions.
4 changes: 0 additions & 4 deletions _config.yml
Expand Up @@ -20,7 +20,6 @@ baseurl:
theme_settings:
# Meta
title: Eleven Labs
avatar: avatar.png
gravatar:
description: A website with blog posts and pages

Expand Down Expand Up @@ -68,9 +67,6 @@ theme_settings:
str_prev: Précédent
str_continue_reading: Lire l'article

# Colours, typography and padding
google_fonts: Cabin

# Post navigation
post_navigation: false

Expand Down
2 changes: 1 addition & 1 deletion _includes/author_link.html
@@ -1,6 +1,6 @@
<!-- _includes/author_link.html -->
{% for author in site.authors %}
{% if author.login == include.login %}
- <a class="author-link" href="/authors/{{author.login}}">{{author.login}}</a>
- par <a class="author-link" href="/authors/{{author.login}}">{{author.login}}</a>
{% endif %}
{% endfor %}
13 changes: 10 additions & 3 deletions _includes/footer.html
@@ -1,6 +1,13 @@
{% if site.theme_settings.footer_text %}
<footer class="site-footer">
{% include newsletter.html %}
<p class="text">{{ site.theme_settings.footer_text }}</p>
<footer class="slice newsletter">
<div class="container">
<a class="newsletter-link" target="_blank" href="https://mailchimp.com">
abonnez vous à notre newsletter !
</a>
</div>
</footer>

<footer class="slice site-footer">
<p class="text container">{{ site.theme_settings.footer_text }}</p>
</footer>
{% endif %}
3 changes: 2 additions & 1 deletion _includes/head.html
Expand Up @@ -37,7 +37,8 @@
</script>
{% endif %}

<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-592d8d29f5f816c3"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-592d8d29f5f816c3"></script>
<script src="{{ "/js/moment.js" | prepend: site.baseurl }}"></script>
<script src="https://cdn.jsdelivr.net/algoliasearch/3/algoliasearchLite.min.js"></script>
<script src="{{ "/js/search.js" | prepend: site.baseurl }}"></script>
Expand Down
24 changes: 9 additions & 15 deletions _includes/header.html
@@ -1,33 +1,27 @@
<header class="site-header">
<div class="branding">
{% if site.theme_settings.gravatar %}
<a href="{{ site.baseurl }}/">
<img class="avatar" src="https://secure.gravatar.com/avatar/{{ site.theme_settings.gravatar }}?s=100" alt=""/>
<div class="branding-container">
<a class="branding" class="no-link-style" href="{{ site.baseurl }}/">
<h1 class="site-title visually-hidden">
{{ site.theme_settings.title }}
</h1>
</a>
{% elsif site.theme_settings.avatar %}
<a href="{{ site.baseurl }}/">
<img class="avatar" src="{{ site.baseurl }}/img/{{ site.theme_settings.avatar }}" alt=""/>
</a>
{% endif %}
<h1 class="site-title">
<a href="{{ site.baseurl }}/">{{ site.theme_settings.title }}</a>
</h1>
</div>

{% include search.html %}

<nav class="site-nav">
<ul>
{% for page in site.pages %}
{% if page.title and page.hide != true %}
<li>
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">
<a class="page-link no-link-style" href="{{ page.url | prepend: site.baseurl }}">
{{ page.title }}
</a>
</li>
{% endif %}
{% endfor %}
<!-- Social icons from Font Awesome, if enabled -->
{% include icons.html data=site.theme_settings %}

<input type="text" id="js-algolia__input" autocomplete="off" name="query" placeholder="Search in this site..." />
</ul>
</nav>
</header>
40 changes: 20 additions & 20 deletions _includes/icons.html
@@ -1,158 +1,158 @@
{% if include.data.rss %}
<li>
<a href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" title="{{ site.theme_settings.str_rss_follow }}">
<a class="no-link-style" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" title="{{ include.data.str_rss_follow }}">
<i class="fa fa-fw fa-rss"></i>
</a>
</li>
{% endif %}

{% if include.data.email_address %}
<li>
<a href="mailto:{{ include.data.email_address }}" title="{{ site.theme_settings.str_email }}">
<a class="no-link-style" href="mailto:{{ include.data.email_address }}" title="{{ include.data.str_email }}">
<i class="fa fa-fw fa-envelope"></i>
</a>
</li>
{% endif %}

{% if include.data.behance %}
<li>
<a href="https://www.behance.net/{{ include.data.behance }}" title="{{ site.theme_settings.str_follow_on }} Behance">
<a class="no-link-style" href="https://www.behance.net/{{ include.data.behance }}" title="{{ include.data.str_follow_on }} Behance">
<i class="fa fa-fw fa-behance"></i>
</a>
</li>
{% endif %}

{% if include.data.bitbucket %}
<li>
<a href="https://bitbucket.org/{{ include.data.bitbucket }}" title="{{ site.theme_settings.str_follow_on }} Bitbucket">
<a class="no-link-style" href="https://bitbucket.org/{{ include.data.bitbucket }}" title="{{ include.data.str_follow_on }} Bitbucket">
<i class="fa fa-fw fa-bitbucket"></i>
</a>
</li>
{% endif %}

{% if include.data.dribbble %}
<li>
<a href="https://dribbble.com/{{ include.data.dribbble }}" title="{{ site.theme_settings.str_follow_on }} Dribbble">
<a class="no-link-style" href="https://dribbble.com/{{ include.data.dribbble }}" title="{{ include.data.str_follow_on }} Dribbble">
<i class="fa fa-fw fa-dribbble"></i>
</a>
</li>
{% endif %}

{% if include.data.facebook %}
<li>
<a href="https://www.facebook.com/{{ include.data.facebook }}" title="{{ site.theme_settings.str_follow_on }} Facebook">
<a class="no-link-style" href="https://www.facebook.com/{{ include.data.facebook }}" title="{{ include.data.str_follow_on }} Facebook">
<i class="fa fa-fw fa-facebook"></i>
</a>
</li>
{% endif %}

{% if include.data.flickr %}
<li>
<a href="https://www.flickr.com/photos/{{ include.data.flickr }}" title="{{ site.theme_settings.str_follow_on }} Flickr">
<a class="no-link-style" href="https://www.flickr.com/photos/{{ include.data.flickr }}" title="{{ include.data.str_follow_on }} Flickr">
<i class="fa fa-fw fa-flickr"></i>
</a>
</li>
{% endif %}

{% if include.data.github %}
<li>
<a href="https://github.com/{{ include.data.github }}" title="{{ site.theme_settings.str_follow_on }} GitHub">
<a class="no-link-style" href="https://github.com/{{ include.data.github }}" title="{{ include.data.str_follow_on }} GitHub">
<i class="fa fa-fw fa-github"></i>
</a>
</li>
{% endif %}

{% if include.data.google_plus %}
<li>
<a href="https://plus.google.com/{{ include.data.google_plus }}" title="{{ site.theme_settings.str_follow_on }} Google+">
<a class="no-link-style" href="https://plus.google.com/{{ include.data.google_plus }}" title="{{ include.data.str_follow_on }} Google+">
<i class="fa fa-fw fa-google-plus"></i>
</a>
</li>
{% endif %}

{% if include.data.instagram %}
<li>
<a href="http://instagram.com/{{ include.data.instagram }}" title="{{ site.theme_settings.str_follow_on }} Instagram">
<a class="no-link-style" href="http://instagram.com/{{ include.data.instagram }}" title="{{ include.data.str_follow_on }} Instagram">
<i class="fa fa-fw fa-instagram"></i>
</a>
</li>
{% endif %}

{% if include.data.linkedin %}
<li>
<a href="{{ include.data.linkedin }}" title="{{ site.theme_settings.str_follow_on }} LinkedIn">
<a class="no-link-style" href="{{ include.data.linkedin }}" title="{{ include.data.str_follow_on }} LinkedIn">
<i class="fa fa-fw fa-linkedin"></i>
</a>
</li>
{% endif %}

{% if include.data.pinterest %}
<li>
<a href="http://www.pinterest.com/{{ include.data.pinterest }}" title="{{ site.theme_settings.str_follow_on }} Pinterest">
<a class="no-link-style" href="http://www.pinterest.com/{{ include.data.pinterest }}" title="{{ include.data.str_follow_on }} Pinterest">
<i class="fa fa-fw fa-pinterest"></i>
</a>
</li>
{% endif %}

{% if include.data.reddit %}
<li>
<a href="https://www.reddit.com/user/{{ include.data.reddit }}" title="{{ site.theme_settings.str_follow_on }} Reddit">
<a class="no-link-style" href="https://www.reddit.com/user/{{ include.data.reddit }}" title="{{ include.data.str_follow_on }} Reddit">
<i class="fa fa-fw fa-reddit"></i>
</a>
</li>
{% endif %}

{% if include.data.soundcloud %}
<li>
<a href="https://soundcloud.com/{{ include.data.soundcloud }}" title="{{ site.theme_settings.str_follow_on }} SoundCloud">
<a class="no-link-style" href="https://soundcloud.com/{{ include.data.soundcloud }}" title="{{ include.data.str_follow_on }} SoundCloud">
<i class="fa fa-fw fa-soundcloud"></i>
</a>
</li>
{% endif %}

{% if include.data.stack_exchange %}
<li>
<a href="{{ include.data.stack_exchange }}" title="{{ site.theme_settings.str_follow_on }} Stack Exchange">
<a class="no-link-style" href="{{ include.data.stack_exchange }}" title="{{ include.data.str_follow_on }} Stack Exchange">
<i class="fa fa-fw fa-stack-exchange"></i>
</a>
</li>
{% endif %}

{% if include.data.steam %}
<li>
<a href="http://steamcommunity.com/id/{{ include.data.steam }}" title="{{ site.theme_settings.str_follow_on }} Steam">
<a class="no-link-style" href="http://steamcommunity.com/id/{{ include.data.steam }}" title="{{ include.data.str_follow_on }} Steam">
<i class="fa fa-fw fa-steam"></i>
</a>
</li>
{% endif %}

{% if include.data.tumblr %}
<li>
<a href="http://{{ include.data.tumblr }}.tumblr.com/" title="{{ site.theme_settings.str_follow_on }} Tumblr">
<a class="no-link-style" href="http://{{ include.data.tumblr }}.tumblr.com/" title="{{ include.data.str_follow_on }} Tumblr">
<i class="fa fa-fw fa-tumblr"></i>
</a>
</li>
{% endif %}

{% if include.data.twitter %}
<li>
<a href="https://twitter.com/{{ include.data.twitter }}" title="{{ site.theme_settings.str_follow_on }} Twitter">
<a class="no-link-style" href="https://twitter.com/{{ include.data.twitter }}" title="{{ include.data.str_follow_on }} Twitter">
<i class="fa fa-fw fa-twitter"></i>
</a>
</li>
{% endif %}

{% if include.data.wordpress %}
<li>
<a href="https://{{ include.data.wordpress }}.wordpress.com/" title="{{ site.theme_settings.str_follow_on }} WordPress">
<a class="no-link-style" href="https://{{ include.data.wordpress }}.wordpress.com/" title="{{ include.data.str_follow_on }} WordPress">
<i class="fa fa-fw fa-wordpress"></i>
</a>
</li>
{% endif %}

{% if include.data.youtube %}
<li>
<a href="https://www.youtube.com/channel/{{ include.data.youtube }}" title="{{ site.theme_settings.str_follow_on }} YouTube">
<a class="no-link-style" href="https://www.youtube.com/channel/{{ include.data.youtube }}" title="{{ include.data.str_follow_on }} YouTube">
<i class="fa fa-fw fa-youtube"></i>
</a>
</li>
Expand Down
20 changes: 12 additions & 8 deletions _includes/links.html
@@ -1,8 +1,12 @@
<h3>A lire aussi</h3>
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href='{{ post.url | prepend: site.baseurl }}'>{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<aside class="slice read-also">
<div class="container">
<h3 class="read-also-title">A lire aussi</h3>
<ul class="read-also-list">
{% for post in site.posts limit:3 %}
<li class="read-also-item">
<a class="read-also-link" href='{{ post.url | prepend: site.baseurl }}'>{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</aside>
4 changes: 2 additions & 2 deletions _includes/reading_time.html
@@ -1,8 +1,8 @@
<span class="reading-time" title="Estimated read time">
{% assign words = include.content | number_of_words %}
{% if words < 360 %}
1 min
lecture: 1 min
{% else %}
{{ words | divided_by:180 }} mins
lecture: {{ words | divided_by:180 }} mins
{% endif %}
</span>
4 changes: 4 additions & 0 deletions _includes/search.html
@@ -0,0 +1,4 @@
<form class="search-bar">
<label class="search-bar-label" for="js-algolia__input">Search</label>
<input class="search-bar-input" type="search" id="js-algolia__input" autocomplete="off" name="query"/>
</form>
3 changes: 2 additions & 1 deletion _includes/share.html
@@ -1 +1,2 @@
<!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox"></div>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_inline_share_toolbox"></div>
54 changes: 31 additions & 23 deletions _layouts/author.html
Expand Up @@ -3,30 +3,38 @@
---

<article>
<header>
<img src="/img/authors/{{page.login}}.jpg" style="max-width: 180px"/>
<h1 class="title">{{ page.name }}</h1>
<div class="author-social">
<ul>
{% include icons.html data=page %}
</ul>
</div>
</header>
<header class="page-heading">
<div class="avatar">
<img class="avatar-img" src="/img/authors/{{page.login}}.jpg"/>
</div>
<h1 class="page-heading-title">{{ page.name }}</h1>
<div class="author-social">
<ul>
{% include icons.html data=page %}
</ul>
</div>
</header>

<section class="post-content">
{{ content }}
</section>
<h3>Derniers articles :</h3>
<div class="posts">
{% for post in site.posts %}
{% if post.author == page.login %}
<div>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
<section class="slice">
<div class="container post-content">
{{ content }}
</div>
{% endif %}
{% endfor %}
</div>
</section>

<section class="slice">
<div class="read-also container">
<h3 class="read-also-title">Derniers articles :</h3>
<ul class="posts read-also-list">
{% for post in site.posts %}
{% if post.author == page.login %}
<li class="read-also-item">
<a class="read-also-link" href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
</article>
4 changes: 2 additions & 2 deletions _layouts/default.html
Expand Up @@ -7,8 +7,8 @@
{{ content }}
</div>
<div class="content">
<div class="posts" id="js-content-search">
</div>
<div class="posts" id="js-content-search">
</div>
</div>
{% include footer.html %}
</body>
Expand Down

0 comments on commit 1ffb53e

Please sign in to comment.