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

Blog: author profile links #5955

Closed
4 tasks done
aborruso opened this issue Sep 3, 2023 · 9 comments
Closed
4 tasks done

Blog: author profile links #5955

aborruso opened this issue Sep 3, 2023 · 9 comments
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open

Comments

@aborruso
Copy link
Contributor

aborruso commented Sep 3, 2023

Context

No response

Description

Hi,
I think it could be useful to have the option to associate a reference url to each author (this could be the author website, the author mastodon URL, the authot github profile, ecc., what the author prefers).

Something like this:

authors:
  squidfunk:
    name: Martin Donath
    description: Creator
    avatar: https://github.com/squidfunk.png
    reference_url: https://fosstodon.org/@squidfunk

In this way, in example, if the author has a reference URL, we could have an hypelink associate to author name, in the single page blog post template (see image example below).

image

Related links

Use Cases

In this way each author can make himself/herself better known.

Visuals

No response

Before submitting

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Sep 4, 2023
@squidfunk squidfunk changed the title Feature request: add reference_url attribute to authors attributes Blog: author profile links Sep 4, 2023
@alexvoss
Copy link
Collaborator

@squidfunk This is something I might be interested to have a go at. It sounds simple enough (famous last words). Just checking to see if there is a reason not to and to avoid possible duplication of work. Assign to me if happy.

@squidfunk
Copy link
Owner

Thanks for tackling this change request! However, please see #6038 (comment) – we'd like to think a little bigger here ☺️

@bigpick
Copy link

bigpick commented Nov 10, 2023

However, we already have bigger plans for this, i.e., allowing authors to generate profile pages that list all of their articles, similar to category and archive pages, and provide arbitrary additional information. Thus, we're currently not considering merging this PR, but
it's definitely helpful as a customization for those wishing for this functionality right now.

... is there a ticket/issue/something to watch for progress on that? Or is this the correct place? Thanks!

@squidfunk
Copy link
Owner

This is the right place. You can subscribe to this issue (which you should be now, since you commented).

@squidfunk
Copy link
Owner

I've added this functionality to master in 28ebcbf (tagged you as a co-author, @alexvoss). I've slightly adjusted #6038. You can now define the url property for an author in .authors.yml, and the micro-profile will automatically add a link.

Additionally, Insiders brings a new feature: author profiles in a9ce9d2! The blog plugin can now create a custom page for each author that lists all of the author's blog posts in reverse chronological order. Additionally, when combining this with custom index pages, you can create a custom profile for an author, preceding the list of blog posts written by the author. We'll soon add examples for this (cc @alexvoss). The following new settings were added:

plugins:
  - blog:
      authors_profiles: true
      authors_profiles_name: Authors
      authors_profiles_url_format: "author/{name}"
      authors_profiles_pagination: true
      authors_profiles_pagination_per_page: 10
      authors_profiles_toc: false

If you omit the url in .authors.yml and enable the author_profiles setting, the micro-profile will automatically link to the automatically generated author profile. This yields the opportunity to provide much more background information, social links, etc., for an author than you could squeeze into the micro-profile, and still have it linked from each and every post.

I'll update this comment once I finished writing the docs for this, but I wanted to let you know that this is now available.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Nov 26, 2023
@aborruso
Copy link
Contributor Author

THank you very much @squidfunk

@squidfunk squidfunk reopened this Nov 26, 2023
@squidfunk
Copy link
Owner

Keeping open until released, as always.

@aborruso
Copy link
Contributor Author

Keeping open until released, as always.

I'm very sorry. Thank you again

@squidfunk
Copy link
Owner

squidfunk commented Nov 26, 2023

Released as part of 9.4.14. Additionally, author profiles have been released as part of 9.4.14+insiders-4.46.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants