getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.58k stars 1.81k forks source link

add humans.txt support #409

Closed tarekziade closed 12 years ago

tarekziade commented 12 years ago

auto generate humans.txt

It's a pretty cool idea: http://humanstxt.org

onlyhavecans commented 12 years ago

Suggestions how this can be auto generated? According to the site this looks like something that would be quicker typed up in it's own format that another markup language. Just like robots.txt, favicon, & touch-icon I think a better solution might to make a special "static" folder (mine is called extras) that is copied to the site root instead of it's own folder. Then the template can check and see if you have these website meta files and add them to the head as necessary.

justinmayer commented 12 years ago

I think this idea might have some merit. A lot of the information that an average humans.txt file might contain — such as author, Twitter username, theme name, GitHub/Bitbucket repo, etc. — is already available in the config file and could be easily used to auto-generate a humans.txt file. Some of the other information that currently isn't in the config file could easily be added to the config file and could also be used for purposes other than humans.txt file generation (e.g., for use as variables in Jinja templates).

Just my two cents, of course. :smile:

almet commented 12 years ago

This could be provided by a plugin, or a new generator, but probably has nothing to do in pelican itself. Closing for now, feel free to create a plugin and to ping us so we can update the documentation with a link to it.