Libbum / AS-Hakyll

Personal blog powered by Hakyll
4 stars 2 forks source link

Fix inline CSS #3

Open Libbum opened 8 years ago

Libbum commented 8 years ago

We need to remove the unsafe-inline tag of in the style-src of the Content-Security-Policy. To do this we can't apply inline styles, which happen in a few places (and perhaps change dynamically). These need to be removed.

Libbum commented 8 years ago

Two more problems to go with this.

  1. The Hakyll generated tag cloud uses style="font-size: X" to enhance the font size of most used tags. We can write a custom tag generator starting with renderTagCloud and get it to append a class instead. The issue I see here though is if we don't provide a class with the right font size. Maybe some form of sass trickery can be used to this end?
  2. The skel setup I'm using here is ridiculously old (v0.4.3, when as of writing current is v3.0.1) and uses inline style tags. Updating to latest currently breaks a lot of things, so I'm not fixing this right away. But we need to work on this to sort out #1 anyhow. So two birds with one stone.