dreikanter / public-static

Programmer's approach to web content management
https://github.com/dreikanter/public-static
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Remove post header from atom feed entry content #18

Closed dreikanter closed 11 years ago

dreikanter commented 11 years ago

Getting a title:

Templates:

Feed generation:

dreikanter commented 11 years ago

No need to over-complicate title extraction rules. Post title supposed to kept in title metadata field. If there are no field, there are no title. The post should not (and have no need to) start with h1. But if user want to add h1, the template wont implicitly drop this part of the post body. Case closed.