mhansen / profilerpedia

Catalog of profilers, profile data formats, data format converters, and profile analysis UIs.
https://profilerpedia.markhansen.co.nz/
30 stars 2 forks source link

Get a better hook for {{ .Content }} in Docsy without having to copy/paste single/list.html #12

Open mhansen opened 2 years ago

mhansen commented 2 years ago

I think if we changed docsy to where it says {{ .Content }} in docs/list.html and docs/single.html, to instead say {{ .Render ".hookable-content.html" }} or something, and had hookable-content.html look contain {{ .Content }} this would make it a lot easier to build sites like Profilerpedia where we have a few repeated templates for different data types, but still want Docsy's title, tags, comments & feedback, without having to copy single.html and list.html.

Work with the Docsy team on this.

mhansen commented 2 years ago

Filed https://github.com/google/docsy/issues/762 on Docsy