claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 183 forks source link

how to disable gravator? #152

Closed xu4wang closed 7 years ago

xu4wang commented 8 years ago

Just had a fresh installation of jingo, When I log in. Looks like the browser keep trying to load gravatar, The link is: http://www.gravatar.com/avatar/2326becee316a7a5457d48b19a875415?s=24

However, my network connection is not good to that website and I'd like to disable this feature. Is there any configuration I can use?

Thanks,Xu

claudioc commented 8 years ago

No, there is no such option. But It's a good idea to add one. I will take a look into it :)

hajika commented 7 years ago

and why you load jquery mini from google? I changed the line with ajax.googleapis in layout.pug into /wiki/vendor/jquery.min.js and works fine, the jquery.min.js was already there :)

and to disable gravatar replace line if page.metadata.email && page.metadata.email != 'jingouser' with if page.metadata.email && page.metadata.email != 'jingouser' && false in file views/show.pug

sorry to present this dirty hacks here. But I want to use tools that do not force the user to load stuff from other servers

claudioc commented 7 years ago

Added in 1.8.2