~hristoast/hristoast

f3d6cfc35b5c56ec3a82ee9d05051c07a757155f — Hristos N. Triantafillou 1 year, 14 days ago 61b4556
Selectively load asciinema-player.css
2 files changed, 6 insertions(+), 1 deletions(-)

M soupault.conf
M templates/main.html
M soupault.conf => soupault.conf +6 -0
@@ 40,6 40,12 @@
[plugins.insert-if]
  file = "plugins/insert-if.lua"

[widgets.asciinema-player-css]
  widget = "insert-if"
  html = "<link rel='stylesheet' type='text/css' href='/asciinema/asciinema-player.css' />"
  selector = "head"
  check_selector = "asciinema-player"

[widgets.asciinema-player-js]
  widget = "insert-if"
  html = "<script src='/asciinema/asciinema-player.js' type='text/javascript'></script>"

M templates/main.html => templates/main.html +0 -1
@@ 8,7 8,6 @@
    <link rel="stylesheet" type="text/css" href="/css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="/css/skeleton.css" />
    <link rel="stylesheet" type="text/css" href="/css/site.css" />
    <link rel="stylesheet" type="text/css" href="/asciinema/asciinema-player.css" />
    <link rel="icon" href="/img/slime.png">
  </head>
  <body>