Sha256: 7350c35b2271470386e08cf69523b26242e4cc26c212029ddcfd45d87cfc4b44
Contents?: true
Size: 1.27 KB
Versions: 11
Compression:
Stored size: 1.27 KB
Contents
--- layout: default --- <main id="site-main"> <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> </main>
Version data entries
11 entries across 11 versions & 1 rubygems