Sha256: bf244998fcce88dad837ea3a9765df26532f36cc345853fc4c1df4a9474e9a73

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

---
layout: default
---
<main id="site-main">
  <article>
    <header>
	    <h1>{{ page.name }}</h1>
    </header>
    <div class="author-profile">
        {%- if page.picture %}
        <img src="/{{ page.picture }}" alt="{{ page.name }}" class="author-image" />
        {%- endif %}

        {{ content }}

        {%- if page.url_short and page.url_full %}
        <p><a href="{{ page.url_full }}" target="_blank" rel="noopener">{{ page.url_short }}</a></p>
        {%- endif %}

        {%- if page.twitter %}
        <p><a href="https://twitter.com/{{ page.twitter }}" target="_blank" rel="noopener">{{ 'author' | t: 'twitter' }}</a></p>
        {%- endif %}
    </div>
    <div>
        <h2>{{ 'author' | t: 'recent_articles' }}</h2>
        <ul>
        {%- assign found = 0 %}
        {%- for post in site.posts %}
            {%- if post.authors contains page.username or page.username == post.authors %}
                {%- assign found = found | plus: 1 %}
                {%- if found > 3 %}
                    {% break %}
                {%- else %}
            <li><a href="{{ site.url }}{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
                {%- endif %}
            {%- endif %}
        {%- endfor %}
        </ul>
    </div>
  </article>
  </main>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fenton-jekyll-boilerplate-0.0.15 _layouts/author.html
fenton-jekyll-boilerplate-0.0.14 _layouts/author.html
fenton-jekyll-boilerplate-0.0.13 _layouts/author.html
fenton-jekyll-boilerplate-0.0.12 _layouts/author.html