Comments (12)
I'm facing the same issue.
I'm using this with:
{% for post in paginator.posts %}
{% include post_preview.html %}
{% endfor %}
In post_preview.html
, I've got:
{% avatar {{ author.social.github }} %}
which doesn't work, but this works:
{% avatar benbalter %}
So apparently, it takes only the first name's photo when used within a loop, but any fixed username call within the loop works just fine.
from jekyll-avatar.
@benbalter please take a look at this when you can :)
from jekyll-avatar.
Have you tried the user=
format as described in https://github.com/benbalter/jekyll-avatar#passing-the-username-as-variable?
A Jekyll plugin for rendering GitHub avatars. Contribute to benbalter/jekyll-avatar development by creating an account on GitHub.
from jekyll-avatar.
I’ll give it a shot. Thanks.
from jekyll-avatar.
Sadly, it didn’t work :(
A Jekyll plugin for rendering GitHub avatars. Contribute to benbalter/jekyll-avatar development by creating an account on GitHub.
from jekyll-avatar.
Interesting, not sure what I did but it looks to be fixed now.
from jekyll-avatar.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from jekyll-avatar.
I'm seeing the same issue here. It seems to trigger when I use {% avatar {{ foo }} %}
in a layout file, but not if I do it in an article. It's almost as if a variable gets cached from some previously rendered page or something like that.
from jekyll-avatar.
Here's a reproduction case: https://github.com/kusma/jekyll-avatar-issue-37-repro
Render the reproduction, and observe that bar.html renders correctly, but foo.html gets the avatar from bar.html instead of the right one. I think that supports the caching hypothesis.
from jekyll-avatar.
@kusma Were you able to reproduce this issue with Jekyll 3.9?
from jekyll-avatar.
Just tried, and no, it does not reproduce with Jekyll 3.9. So I guess there's some change in behavior in Jekyll 4.x that breaks this...
from jekyll-avatar.
Since this seems unrelated to what the other users have experienced (Jekyll 4.x wasn't our in 2019), I decided to create a new ticked. So please ignore this ;)
from jekyll-avatar.
Related Issues (15)
- Confirm we're doing it right HOT 2
- local jekyll invalid liquid error HOT 1
- Class Names HOT 4
- Avatars for GHE? HOT 7
- GitHub Pages Build Fails HOT 3
- lazy image loading support HOT 1
- Double the requested size to better support retina HOT 2
- Wasteful allocations due to multiple parsing of the same `host` url HOT 6
- Native lazyloading support
- Plugin no longer works correctly with Jekyll 4.x HOT 7
- doesnt work with variables HOT 10
- Issue with custom variable for `user` HOT 8
- Escape `&`? HOT 1
- Remove `data-proofer-ignore` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-avatar.