preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

individual article is synhi'd, all indexes containing article are not. #429

Closed kentfredric closed 8 years ago

kentfredric commented 8 years ago

Presently:

http://kentfredric.github.io/blog/2016/01/02/re-the-perl-jam-2-hashes-are-insecure/ Renders its html with code examples highlighted.

But

http://kentfredric.github.io/

Does not.

Of these, only the first includes this statement in its source

<link href="/theme/plugin/highlight/default.css" rel="stylesheet" type="text/css">
preaction commented 8 years ago

List pages should probably combine the stylesheets/scripts from all their constituents. That should clear this up, but we want to make sure we're not pulling in a stylesheet/script unnecessarily, so we need to make sure we're only processing the section that's being shown. We also need to ensure that a stylesheet/script is not added more than once, as there's really no point to it (I hope, at least...)