You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avoid all the annoying if logic in head by adding custom-head approach like custom-foot use.
in my other templates, there is two options for both head and foot: custom include and/or direct string.
Currently CB only has custom foot include.
For adding the required css in the head, it would be more handy to have a custom head that just adds the string directly (rather than having to go and write up a separate include for each.
Maybe foot/head would just be add a string, and custom-foot/custom-head could be custom include.
e.g. on data layout,
---
# "Data" page with table and data download options
layout: page
head: <link rel="stylesheet" type="text/css" href="{{ '/assets/lib/datatables/datatables.min.css' | relative_url }}">
custom-foot: js/table-js.html
---
this makes customized pages much easier to keep self contained (but still optimized) without spidering into needing to edit logic in other places.
The text was updated successfully, but these errors were encountered:
unfortunately the idea for head described above doesn't quite work because you can't get the liquid in the link to evaluate anywhere because the front matter values are always treated as plain text with the liquid ignored...
avoid all the annoying if logic in head by adding custom-head approach like custom-foot use.
in my other templates, there is two options for both head and foot: custom include and/or direct string.
Currently CB only has custom foot include.
For adding the required css in the head, it would be more handy to have a custom head that just adds the string directly (rather than having to go and write up a separate include for each.
Maybe
foot
/head
would just be add a string, andcustom-foot
/custom-head
could be custom include.e.g. on data layout,
this makes customized pages much easier to keep self contained (but still optimized) without spidering into needing to edit logic in other places.
The text was updated successfully, but these errors were encountered: