nikola icon indicating copy to clipboard operation
nikola copied to clipboard

Create “things you can do with template changes” documentation

Open da2x opened this issue 8 years ago • 8 comments

AUTHOR_PORTRAITS = { "john": { "100x100": "/images/pretty_john.jpeg", }, }

da2x avatar Aug 24 '15 20:08 da2x

👍 + default to gravatar

davidak avatar Jun 13 '16 08:06 davidak

Gravatar has privacy implications … .

da2x avatar Jun 13 '16 08:06 da2x

ok, yes. your e-mail address get's sent to them. you may don't want that.

so by default empty. option 'gravatar' to use the authors e-mail

davidak avatar Jun 13 '16 09:06 davidak

This is a place where you can easily make the source of the images plugable. The default should be to use the standard image locations, but allow a plugin to define a location (or you define a location for the plugin), and simply build a command plugin, or signal handler to go out to the source and fetch the images.

Baking gravatar into nikola bugs me in the same way comments are currently baked in; once its done, it makes it hard for someone else to come along with a plugin to override whats there, or provide another source.

tritium21 avatar Jun 13 '16 16:06 tritium21

So... does it make sense to implement this in core?

It seems it would be, like described above, just a matter of changing templates, since there is nothing preventing anyone from adding things in GLOBAL_CONTEXT anyway.

ralsina avatar Aug 20 '16 01:08 ralsina

I think, perhaps, this is a great time to bring up an idea I had all of 3 seconds ago... We should have a cookbook of template hacks in the docs. There are so many changes that I have seen suggested here and on irc (and to a lesser extent, the mailing list) that are trivial-to-straight-forward template changes. This falls into that category. Perhaps we don't bake them into core... perhaps we just... show people how easy it is to DIY.

tritium21 avatar Aug 20 '16 03:08 tritium21

@tritium21 Great idea. I renamed this issue so this isn’t lost.

Kwpolska avatar Aug 21 '16 18:08 Kwpolska

@tritium21 Great idea! A cookbook would be great.

ralsina avatar Aug 21 '16 20:08 ralsina