Giter Club home page Giter Club logo

Comments (13)

alexandrevicenzi avatar alexandrevicenzi commented on June 15, 2024

I think there's no code for this.

We could add a setting SHOW_POST_AUTHOR and show somewhere near post date.

from flex.

geotheory avatar geotheory commented on June 15, 2024

That would be most welcome, thanks Alex

from flex.

alexandrevicenzi avatar alexandrevicenzi commented on June 15, 2024

@geotheory I don't have time to do this soon. If you could send a PR I appreciate.

from flex.

rpatel3001 avatar rpatel3001 commented on June 15, 2024

PR #168 opened

from flex.

rpatel3001 avatar rpatel3001 commented on June 15, 2024

PR #168 closed. Breaks translation support and I don't use it so I'm not interested in continuing.

from flex.

alexandrevicenzi avatar alexandrevicenzi commented on June 15, 2024

This theme was meant for a single author, if anyone wants multi authors they can send a patch later.

from flex.

kakila avatar kakila commented on June 15, 2024

Is this still under consideration?

from flex.

kakila avatar kakila commented on June 15, 2024

I mean even for single authors, how can you display the author name in the post?

from flex.

kakila avatar kakila commented on June 15, 2024

To add the authors it would be simple as

By {{ article.authors|join(', ')|escape }}

However this cannot be translated, and I guess one needs to use Jinja. However my lack of experience doesn't allow me to understand why this fails

{{ _(By %(authors), authors=article.authors|join(', ')|escape) }}

I actually couldn't find a way of using _() without erros.

from flex.

alexandrevicenzi avatar alexandrevicenzi commented on June 15, 2024

It should be {{ _("By %(authors)", authors=article.authors|join(', ')|escape) }}, but this fails in many ways.

For multiples authors, it would produce: By XYZ, ABC, QWERT

In English the correct is: By XYZ and ABC if only two and By XYZ, ABC, and QWERT if more than two

For other languages it may follow another pattern.

This could be considered if done properly, but as the theme is meant for ONE single author, the name would be in the sidebar already, not needing anything else IMHO.

from flex.

kakila avatar kakila commented on June 15, 2024

Well, sometimes a solution is better than none. As far as I know "Authors: " would work in any language that has the meaning of "Authors". This should be written only if there is more than one author.

from flex.

kakila avatar kakila commented on June 15, 2024

ONE single author

Then you should put this clearly in the README, and do not allow to render the "Authors" page. Unless, of source, you are happy with that inconsistency. I think if you keep "Authors" page, then you cannot claim it is a purely ONE author theme.

from flex.

alexandrevicenzi avatar alexandrevicenzi commented on June 15, 2024

@kakila as stated in the readme, this theme is not under development anymore. You are free to fix anything that is broken in a PR, as long as it is a proper fix.

If you want to work on this issue I can re-open it and assign it to you.

from flex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.