Skip to content
Snippets Groups Projects
  • Eloi Perdereau's avatar
    fc112788
    Squashed commit of the following (merge netlify-cms): · fc112788
    Eloi Perdereau authored
    commit fe32196955557067b2dd485e7512c110da358886
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:33:37 2019 +0100
    
        rename to lepuget
    
    commit adc3d0d5eb727f764661be559db54218b816261a
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:31:52 2019 +0100
    
        clean authors.yms
    
    commit 3841164eb093a217c23ec6ab90932656eb023399
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:18:32 2019 +0100
    
        add navigations and authors to cms
    
            - change how _data/(authors|navigation).yml are structured
            - try not to break everything
    
    commit ab86d863550f7f4a794bbc3b96239e19a06e1e31
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:07:02 2019 +0100
    
        cms collections
    
    commit 729a8314f23b91551d9e673e4e7ed6bbbfdc39a4
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:02:56 2019 +0100
    
        clean
    
    commit 10a236463c39f6bc8d1c182a57c038aa52b238ef
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:02:29 2019 +0100
    
        complete replacement of header.overlay_image
    
    commit f94ed28430fcf65b85b376dba3e5898236d9c17d
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:41:59 2019 +0100
    
        revert media_folder to assets/images
    
    commit 309f6fe363ab3c81862cd794ac19a738fe3b9da8
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:36:34 2019 +0100
    
        Revert "try locale fr"
    
        This reverts commit b3f0c60ad8f6942e8f983cf4fa465cf7625fab4a.
    
    commit a210cb41085d7ec0a4189bc3f66079c9a21c910e
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:36:22 2019 +0100
    
        remove editorial workflow + fix? media_folder
    
    commit b9d764b3ace04db34134b0030e627f2eb31ef5a1
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:26:55 2019 +0100
    
        fix: add labels to collections
    
    commit 61196b9adf78e335342eb33473bfbece93031738
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:18:45 2019 +0100
    
        update cms config
    
    commit b3f0c60ad8f6942e8f983cf4fa465cf7625fab4a
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 23:51:20 2019 +0100
    
        try locale fr
    
    commit eabb17d48da3392d17180091cce5cdbbb37ed5e5
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 23:45:34 2019 +0100
    
        move header.overlay_image attribute up
    
    commit 96e92f2e350216e47679339c3bc8f0267dc5a63c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 21:28:43 2019 +0100
    
        try out url as identifier and slug
    
    commit 565b3b163b481ba6acf42b479bd781e92b38d760
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:22:25 2019 +0100
    
        hotfix
    
    commit 4cd0cbe17642d93e99e2840a57e54cf817315359
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:19:59 2019 +0100
    
        cms config: fixes jardin + add ccl subfolders
    
    commit d6f9c029aea2e754bd12bbc34ee90c4a053af4f4
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:08:47 2019 +0100
    
        update cms
    
            - title
            - redirection from home page to /admin/
            - backend repo
            - test preview: true
            - add jardin folder collection
    
    commit a129c8247b1cfda9bea65882ee9a207dc74efb37
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 18:38:44 2019 +0100
    
        add admin/ config for netlify cms
    
    commit 00eb56d61803d6394e09f7917e12a4926d71dcc2
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 05:29:45 2019 +0100
    
        large update
    
            - refonte structure: 1 auteur par dossier
            - navigation par auteur
            - auteur déduit du path
            - maj des priorités sur og_image
            - ajout og_image par défaut par auteur
            - ...
    
    commit df5922e608914e52f3919ffd108fc84990ceedeb
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:48:33 2019 +0100
    
        clean toulouleur
    
    commit 391560e76bad5215b1c3bfcb2f5bddbe4392ee7c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:48:23 2019 +0100
    
        saner defaults in single layout
    
    commit 651431c76bfbf00af49d73df5907732881f57035
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:15:06 2019 +0100
    
        font of title page tempura
    
    commit 74d807f18ffea47c804d019643995a032b8e0517
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:13:43 2019 +0100
    
        centraliser les auteurs
    
    commit b1b72285001ea0036ad53e6500f9679655cf914c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sat Nov 16 22:25:19 2019 +0100
    
        clean unrelated files from mmistakes
    
    commit 643283df585f1a4ac84525ea738d99c9961fa525
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sat Nov 16 19:01:20 2019 +0100
    
        home: paniers bio a la place de toukouleur cassé
    fc112788
    History
    Squashed commit of the following (merge netlify-cms):
    Eloi Perdereau authored
    commit fe32196955557067b2dd485e7512c110da358886
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:33:37 2019 +0100
    
        rename to lepuget
    
    commit adc3d0d5eb727f764661be559db54218b816261a
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:31:52 2019 +0100
    
        clean authors.yms
    
    commit 3841164eb093a217c23ec6ab90932656eb023399
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 02:18:32 2019 +0100
    
        add navigations and authors to cms
    
            - change how _data/(authors|navigation).yml are structured
            - try not to break everything
    
    commit ab86d863550f7f4a794bbc3b96239e19a06e1e31
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:07:02 2019 +0100
    
        cms collections
    
    commit 729a8314f23b91551d9e673e4e7ed6bbbfdc39a4
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:02:56 2019 +0100
    
        clean
    
    commit 10a236463c39f6bc8d1c182a57c038aa52b238ef
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 01:02:29 2019 +0100
    
        complete replacement of header.overlay_image
    
    commit f94ed28430fcf65b85b376dba3e5898236d9c17d
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:41:59 2019 +0100
    
        revert media_folder to assets/images
    
    commit 309f6fe363ab3c81862cd794ac19a738fe3b9da8
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:36:34 2019 +0100
    
        Revert "try locale fr"
    
        This reverts commit b3f0c60ad8f6942e8f983cf4fa465cf7625fab4a.
    
    commit a210cb41085d7ec0a4189bc3f66079c9a21c910e
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:36:22 2019 +0100
    
        remove editorial workflow + fix? media_folder
    
    commit b9d764b3ace04db34134b0030e627f2eb31ef5a1
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:26:55 2019 +0100
    
        fix: add labels to collections
    
    commit 61196b9adf78e335342eb33473bfbece93031738
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Mon Nov 18 00:18:45 2019 +0100
    
        update cms config
    
    commit b3f0c60ad8f6942e8f983cf4fa465cf7625fab4a
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 23:51:20 2019 +0100
    
        try locale fr
    
    commit eabb17d48da3392d17180091cce5cdbbb37ed5e5
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 23:45:34 2019 +0100
    
        move header.overlay_image attribute up
    
    commit 96e92f2e350216e47679339c3bc8f0267dc5a63c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 21:28:43 2019 +0100
    
        try out url as identifier and slug
    
    commit 565b3b163b481ba6acf42b479bd781e92b38d760
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:22:25 2019 +0100
    
        hotfix
    
    commit 4cd0cbe17642d93e99e2840a57e54cf817315359
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:19:59 2019 +0100
    
        cms config: fixes jardin + add ccl subfolders
    
    commit d6f9c029aea2e754bd12bbc34ee90c4a053af4f4
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 19:08:47 2019 +0100
    
        update cms
    
            - title
            - redirection from home page to /admin/
            - backend repo
            - test preview: true
            - add jardin folder collection
    
    commit a129c8247b1cfda9bea65882ee9a207dc74efb37
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 18:38:44 2019 +0100
    
        add admin/ config for netlify cms
    
    commit 00eb56d61803d6394e09f7917e12a4926d71dcc2
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 05:29:45 2019 +0100
    
        large update
    
            - refonte structure: 1 auteur par dossier
            - navigation par auteur
            - auteur déduit du path
            - maj des priorités sur og_image
            - ajout og_image par défaut par auteur
            - ...
    
    commit df5922e608914e52f3919ffd108fc84990ceedeb
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:48:33 2019 +0100
    
        clean toulouleur
    
    commit 391560e76bad5215b1c3bfcb2f5bddbe4392ee7c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:48:23 2019 +0100
    
        saner defaults in single layout
    
    commit 651431c76bfbf00af49d73df5907732881f57035
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:15:06 2019 +0100
    
        font of title page tempura
    
    commit 74d807f18ffea47c804d019643995a032b8e0517
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sun Nov 17 00:13:43 2019 +0100
    
        centraliser les auteurs
    
    commit b1b72285001ea0036ad53e6500f9679655cf914c
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sat Nov 16 22:25:19 2019 +0100
    
        clean unrelated files from mmistakes
    
    commit 643283df585f1a4ac84525ea738d99c9961fa525
    Author: Eloi Perdereau <eloi@perdereau.eu>
    Date:   Sat Nov 16 19:01:20 2019 +0100
    
        home: paniers bio a la place de toukouleur cassé
author-profile.html 9.73 KiB
<!-- {% assign author = page.author | default: page.authors[0] | default: site.author %} -->
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% assign author = site.data.authors.authors | where: "prefix", author | first %}

<div itemscope itemtype="https://schema.org/Person">

  {% if author.avatar %}
    <div class="author__avatar">
      {% if author.avatar contains "://" %}
        {% assign author_src = author.avatar %}
      {% else %}
        {% assign author_src = author.avatar | relative_url %}
      {% endif %}

      {% if author.home %}
        {% if author.home contains "://" %}
          {% assign author_link = author.home %}
        {% else %}
          {% assign author_link = author.home | relative_url %}
        {% endif %}
        <a href="{{ author_link }}">
          <img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
        </a>
      {% else %}
        <img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
      {% endif %}
    </div>
  {% endif %}

  <div class="author__content">
    {% if author.home %}
      <a href="{{ author_link }}"><h3 class="author__name" itemprop="name">{{ author.name }}</h3></a>
    {% else %}
      <h3 class="author__name" itemprop="name">{{ author.name }}</h3>
    {% endif %}
    {% if author.bio %}
      <div class="author__bio" itemprop="description">
        {{ author.bio | markdownify }}
      </div>
    {% endif %}
  </div>

  <div class="author__urls-wrapper">
    <button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
    <ul class="author__urls social-icons">
      {% if author.location %}
        <li itemprop="homeLocation" itemscope itemtype="https://schema.org/Place">
          <i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name">{{ author.location }}</span>
        </li>
      {% endif %}

      {% if author.links %}
        {% for link in author.links %}
          {% if link.label and link.url %}
            <li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
          {% endif %}
        {% endfor %}
      {% endif %}

      {% if author.uri %}
        <li>
          <a href="{{ author.uri }}" itemprop="url">
            <i class="fas fa-fw fa-link" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].website_label | default: "Website" }}
          </a>
        </li>
      {% endif %}

      {% if author.email %}
        <li>
          <a href="mailto:{{ author.email }}">
            <meta itemprop="email" content="{{ author.email }}" />
            <i class="fas fa-fw fa-envelope-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].email_label | default: "Email" }}
          </a>
        </li>
      {% endif %}

      {% if author.keybase %}
        <li>
          <a href="https://keybase.io/{{ author.keybase }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fas fa-fw fa-key" aria-hidden="true"></i> Keybase
          </a>
        </li>
      {% endif %}

      {% if author.twitter %}
        <li>
          <a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i> Twitter
          </a>
        </li>
      {% endif %}

      {% if author.facebook %}
        <li>
          <a href="https://www.facebook.com/{{ author.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i> Facebook
          </a>
        </li>
      {% endif %}

      {% if author.linkedin %}
        <li>
          <a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-linkedin" aria-hidden="true"></i> LinkedIn
          </a>
        </li>
      {% endif %}

      {% if author.helloasso %}
        <li>
          <a href="https://www.helloasso.com/associations/{{ author.helloasso }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fas fa-fw fa-fire" aria-hidden="true"></i> HelloAsso
          </a>
        </li>
      {% endif %}

      {% if author.xing %}
        <li>
          <a href="https://www.xing.com/profile/{{ author.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-xing-square" aria-hidden="true"></i> XING
          </a>
        </li>
      {% endif %}

      {% if author.instagram %}
        <li>
          <a href="https://instagram.com/{{ author.instagram }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-instagram" aria-hidden="true"></i> Instagram
          </a>
        </li>
      {% endif %}

      {% if author.tumblr %}
        <li>
          <a href="https://{{ author.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i> Tumblr
          </a>
        </li>
      {% endif %}

      {% if author.bitbucket %}
        <li>
          <a href="https://bitbucket.org/{{ author.bitbucket }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket
          </a>
        </li>
      {% endif %}

      {% if author.github %}
        <li>
          <a href="https://github.com/{{ author.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-github" aria-hidden="true"></i> GitHub
          </a>
        </li>
      {% endif %}

      {% if author.gitlab %}
        <li>
          <a href="https://gitlab.com/{{ author.gitlab }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-gitlab" aria-hidden="true"></i> GitLab
          </a>
        </li>
      {% endif %}

      {% if author.stackoverflow %}
        <li>
          <a href="https://stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-stack-overflow" aria-hidden="true"></i> Stack Overflow
          </a>
        </li>
      {% endif %}

      {% if author.lastfm %}
        <li>
          <a href="https://last.fm/user/{{ author.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i> Last.fm
          </a>
        </li>
      {% endif %}

      {% if author.dribbble %}
        <li>
          <a href="https://dribbble.com/{{ author.dribbble }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-dribbble" aria-hidden="true"></i> Dribbble
          </a>
        </li>
      {% endif %}

      {% if author.pinterest %}
        <li>
          <a href="https://www.pinterest.com/{{ author.pinterest }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-pinterest" aria-hidden="true"></i> Pinterest
          </a>
        </li>
      {% endif %}

      {% if author.foursquare %}
        <li>
          <a href="https://foursquare.com/{{ author.foursquare }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-foursquare" aria-hidden="true"></i> Foursquare
          </a>
        </li>
      {% endif %}

      {% if author.steam %}
        <li>
          <a href="https://steamcommunity.com/id/{{ author.steam }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-steam" aria-hidden="true"></i> Steam
          </a>
        </li>
      {% endif %}

      {% if author.youtube %}
        {% if author.youtube contains "://" %}
          <li>
            <a href="{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
              <i class="fab fa-fw fa-youtube" aria-hidden="true"></i> YouTube
            </a>
          </li>
        {% else author.youtube %}
          <li>
            <a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
              <i class="fab fa-fw fa-youtube" aria-hidden="true"></i> YouTube
            </a>
          </li>
        {% endif %}
      {% endif %}

      {% if author.soundcloud %}
        <li>
          <a href="https://soundcloud.com/{{ author.soundcloud }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-soundcloud" aria-hidden="true"></i> SoundCloud
          </a>
        </li>
      {% endif %}

      {% if author.weibo %}
        <li>
          <a href="https://www.weibo.com/{{ author.weibo }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-weibo" aria-hidden="true"></i> Weibo
          </a>
        </li>
      {% endif %}

      {% if author.flickr %}
        <li>
          <a href="https://www.flickr.com/{{ author.flickr }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-flickr" aria-hidden="true"></i> Flickr
          </a>
        </li>
      {% endif %}

      {% if author.codepen %}
        <li>
          <a href="https://codepen.io/{{ author.codepen }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-codepen" aria-hidden="true"></i> CodePen
          </a>
        </li>
      {% endif %}

      {% if author.vine %}
        <li>
          <a href="https://vine.co/u/{{ author.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer">
            <i class="fab fa-fw fa-vine" aria-hidden="true"></i> Vine
          </a>
        </li>
      {% endif %}

      {% include author-profile-custom-links.html %}
    </ul>
  </div>
</div>