diff options
| author | Miguel <m.i@gmx.at> | 2019-04-02 20:38:07 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2019-04-02 20:38:07 +0200 |
| commit | 4a45f7a474a8e47f02669184fc088e395a1e1db1 (patch) | |
| tree | 5a36add49bb3f816304443027e7b4ff5803c6aed /src | |
| parent | b1ca5bfccbd9857717abee90fb2687a70803cad0 (diff) | |
simplify cardsplugin
Diffstat (limited to 'src')
| -rw-r--r-- | src/WWWStaticusPlugins.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/WWWStaticusPlugins.hs b/src/WWWStaticusPlugins.hs index e73b324..cbd14b7 100644 --- a/src/WWWStaticusPlugins.hs +++ b/src/WWWStaticusPlugins.hs @@ -35,6 +35,10 @@ import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Lazy.Char8 as Char8 -- IDEAS +-- +-- * !generate <video> video and audio codecs properly! +-- * !generate proper favicon (multi-res?) +-- -- * download file from inet and save -- * tags -- * search function @@ -203,7 +207,8 @@ staticusPluginCards = StaticusPlugin "bootstrap cards" run return $ replace "###TITLE###" y $ replace "###FOOTER###" z -- (z++"<br />"++a) $ replace "###TEXT###" (unlines $ map spans xs) tmpl - tmpl ="<div class ='col-sm-6 col-md-4 col-xl-3 mb-4'>" + tmpl ="<div><h2>###TITLE###</h2><p>tags: ###TEXT###<br />url: ###FOOTER###</p><img src='###IMG###' ><hr /></div>" + tmpl_old ="<div class ='col-sm-6 col-md-4 col-xl-3 mb-4'>" ++"<div class='card h-100'>" ++"<img class='border-bottom card-img-top' src='###IMG###' >" ++"<div class='card-body'>" @@ -214,5 +219,6 @@ staticusPluginCards = StaticusPlugin "bootstrap cards" run return ++"</div>" ++"<div class='text-center card-footer text-muted'>###FOOTER###</div>" ++"</div></div>" + spans ('-':vv)=let (x:xs)=words vv in "<span class='badge "++x++"'>"++unwords xs++"</span>" spans xx = xx |
