multunus / jekyll-author-plugin Goto Github PK
View Code? Open in Web Editor NEWA Jekyll plugin for generating author archives for posts
License: MIT License
A Jekyll plugin for generating author archives for posts
License: MIT License
I currently have two author pages:
The first one is a simple post, the second one was automatically created.
The advantage of the first one is that it allows me to add some text / images that might make it more interesting to read the author page. Also, I can add meta information like a link to my Goolge+ profile / Twitter profile.
The advantage of the second one is that it shows other articles written by me. This might especially be interesting in blogs / sites with multiple authors.
So I would like to combine them. I think it could work like that:
author
with content sluggified author name (e.g. in my case: martin-thoma.md
)authorpaginator.posts
so that I can create templates like this:<h2>Posts by {% author %}</h2>
{% for post in authorpaginator.posts %}
<div class="post type-post hentry clearfix">
<h2 class="title"><a href="{{ site.baseurl }}{{ post.url }}/" rel="bookmark" title="Permanent link to '{{ post.title }}'">{{ post.title }}</a></h2>
<div class="postdate">
<span>{{ post.date | date: '%B' }} {{ post.date | date: '%e' }}, {{ post.date | date: '%Y' }}</span>
<!--<span>No Comments / 1 comment / 2 comments</span>-->
</div>
{% include entry.html %}
</div>
{% endfor %}
I started getting a warning on jekyll serve
:
Deprecation: Collection#each should be called on the #docs array directly.
Called by /my-project/_plugins/author_generator.rb:76:in `write_author_indexes'.
I googled around a bit and found that it has something to do with posts being considered documents in Jekyll 3 (asciidoctor/jekyll-asciidoc#35)
I resolved the issue simply by changing line 76 on my local to say: self.posts.docs.each do |post|
however there should be a conditional check for jekyll 3 to allow for backwards compatibility. While I'm slowly teaching myself ruby, I am by no means good at it, and have no idea how to do a conditional check.
Depending on how quickly this issue is tackled, I'll fork and attempt to tackle this myself!
There are some bugs in it using with Octopress. I Fork it and Fixed.
Please merge it as needed.
Hey there,
I followed the usage instructions, but get tis on build:
Liquid Exception: Included file '/Users/casey/Dropbox/-- Dear Cast and Crew/Website/2014 Redesign/dcac.github.io/_includes/archive_post.html' not found in authors/jared-young/index.html
I'm pretty new to Jekyll, and not sure what the correct fix would be - any help is appreciated.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.