crazko / statie-web

📖 [deprecated] Documentation site for Statie - PHP Static Site Generator
2 stars 2 forks source link

headline key name updated #30

Closed TomasVotruba closed 5 years ago

TomasVotruba commented 5 years ago

See https://github.com/Symplify/Statie/blob/master/README.md#how-to-turn-make-post-shareable-with-anchors

crazko commented 5 years ago

Any idea why there aren't any anchors in the current web?

TomasVotruba commented 5 years ago

Are they post?

crazko commented 5 years ago

They are not named post but doc and tutorial https://github.com/crazko/statie-web/blob/master/statie.yml#L15 . I thought it's the same behaviour for all generators.

TomasVotruba commented 5 years ago

It's designed only for posts, since they're long and people share them.

In other cases it doesn't make sense, e.g. lecures have 2 headlines and such links would be only spamming: https://pehapkari.cz/kurz/elasticsearch-zaciname-vyhledavat/

crazko commented 5 years ago

I see... what about to have such config property per generator and not one for whole project? In case of this page (and I can image many others) headlines with anchors would be beneficial. Why not let users to choose?

TomasVotruba commented 5 years ago

I had the same idea. Do you care for creating PR or at least an issue with example of such configuration?

crazko commented 5 years ago

I can create an issue, not sure about PR, it could take days/week or two to find time. If you're ok with that, I'll try to handle it.

TomasVotruba commented 5 years ago

Issues it is :)