Comments (10)
Is there a way to make something like this work with jekyll-feed?
This is not something that's currently supported. Author information must either be universal in the configuration or specific to the post.
from jekyll-feed.
Ok. It's not that big of a deal anyway.
from jekyll-feed.
I certainly wouldn't mind supporting something like this if we decide we think having an authors datafile is the "best practice".
from jekyll-feed.
Ok, I'll reopen for a possible discussion. Close if you decide against it 👍
from jekyll-feed.
Please do, it would be great to have some official best practices regarding naming stuff in your _config.yml
file and so on, because right now it's a bit of a mess 😃
from jekyll-feed.
This seems reasonable…
config.yml
:
authors:
default:
name: "Default"
email: "[email protected]"
url: "http://default.com"
foo:
name: "Foo"
email: "[email protected]"
uri: "http://foo.com"
bar:
name: "Bar"
email: "[email protected]"
uri: "http://bar.com"
_posts/my-post.md
:
title: My Post
# author defaults to site.authors.default
_posts/my-other-post.md
title: My Other Post
author: foo
# maps to site.authors.foo
But I guess in order for this to make sense, it needs to be a Jekyll feature?
from jekyll-feed.
Check out jekyll/jekyll#3983. This may solve everything for you.
from jekyll-feed.
@parkr yes, that's perfect ❤️
Because this is really a jekyll shortcoming, not jeykll-feed's, you can close if you want.
from jekyll-feed.
As a workaround for author display names you can you the author's display name as the key in the authors yaml hash. This still won't be able to provide you with the author's email & uri for the feed since the plugin will just get the name string, it will provide you with a friendly name though:
_config.yml
:
authors:
Mr Poster:
attribute1: value1
attribute2: value2
_posts/my-post.md
:
title: My Post
author: Mr Poster
from jekyll-feed.
If author data is going to be stored separately from the post, it seems that the way to do it would be with a data file, rather than cluttering up the _config.yml
from jekyll-feed.
Related Issues (20)
- Why is my configuration no longer producing feed.xml? HOT 4
- exclude posts from feed HOT 12
- doesn't handle tags with spaces or hyphens HOT 13
- Time for a new release HOT 3
- Disable notification 'A new version of content is available.' HOT 6
- Time for a new release HOT 1
- Option to only include unique categories in the feed HOT 6
- Probable issue in feed generation HOT 2
- Option to skip generating feed if no site content changed HOT 3
- Page title incorrect when containing symbols like '>' HOT 9
- Combining multiple collections into the main feed HOT 3
- Time for a new release HOT 1
- Time for a new release HOT 1
- Duplicating feed?
- Feed name missing HOT 6
- Add option to convert all relative URLs in post content to absolute
- Feed icon supported? HOT 1
- Extension .atom in README.md is bad advise; will be served with wrong media type by web servers HOT 1
- Doesn't generate feeds for tags that include spaces HOT 1
- Tag feeds don't include tag name in title
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-feed.