Package: staticsite
Severity: normal
Version: 2.5-1

Hi,

i just installed staticsite (with all recommends packages) to try it.
Following its doc/tutorial/blog.md (no other tweaks) i prepared new
site and i try to show it by "ssite show", but it looks really ugly.

Then i noticed, that on every page reload it prints to terminal::

    WARNING theme :blog.html: cannot resolve 
'/fork-awesome/css/fork-awesome.css' relative to Node(static)
    WARNING theme :blog.html: cannot resolve 
'/bootstrap4/css/bootstrap.min.css' relative to Node(static)
    WARNING theme :blog.html: cannot resolve '/jquery/jquery.min.js' relative 
to Node(static)
    WARNING theme :blog.html: cannot resolve '/popper.js/umd/popper.min.js' 
relative to Node(static)
    WARNING theme :blog.html: cannot resolve '/bootstrap4/js/bootstrap.min.js' 
relative to Node(static)

The same happens with "ssite build"...

All these files are installed (in the same order as above):

    /usr/share/fonts-fork-awesome/css/fork-awesome.css
    /usr/share/javascript/bootstrap4/css/bootstrap.min.css
    /usr/share/javascript/jquery/jquery.min.js
    /usr/share/nodejs/popper.js/dist/umd/popper.min.js
    /usr/share/javascript/bootstrap4/js/bootstrap.min.js

I guess, that paths have to be tweaked somewhere to follow debian's
packaging of these libraries, but i am lost in it (yet).

I tried to add to the site's settings.py:

    SYSTEM_ASSETS = [
        "fork-awesome",
        "bootstrap4",
        "jquery",
        "popper.js",
    ]

The warnings with "ssite build" (by copying a lot of files,)
disappears, but that doesn't solve with the "ssite show", thus not a
solution.

regards

-- 
Slavko
https://www.slavino.sk

Reply via email to