Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-@ overrides with a data.json file #1

Open
bmann opened this issue Jan 23, 2020 · 0 comments
Open

Per-@ overrides with a data.json file #1

bmann opened this issue Jan 23, 2020 · 0 comments

Comments

@bmann
Copy link
Owner

bmann commented Jan 23, 2020

Filed in the upstream repo: jekyll#71

Duplicated here:


Problem

I want to @-mention people from multiple different networks. Some will be Twitter, some will be Github, some will be Instagram, some will be MicroBlog.

Solution

This could either be done at least two different ways. One is per page / post -- e.g. jekyll-mentions: twitter.com, as mentioned elsewhere, as front matter.

But, I'd like it to be done identity centric. So, I can maintain a _data/mentions.json file that looks like this:

{
  "@boris": { "network": "https://linkedin.com" },
  "@bmann": { "network": "https://twitter.com"},
  "@borismann": { "link": "https://blog.bmannconsulting.com" }
}

If the @-mention is not in this file, then the default global mention of twitter or whatever is used, otherwise the network defined is used.

In the example, I've also made a link item, rather than a network, to indicate that that @-mention goes directly to a link (so, "borismann" is wrapped in a link tag to that URL, without appending the @-mentioned name).

@bmann bmann pinned this issue Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant