[solved] How to encoperate css relative path like template

I have been going through doc, I’m quite confused how directory structures work.

I have 2 css files (style.css & over-ride.css) in static directory, now problem how to make it relative. (done using shortcodes?)

For example, my example.com/blog/ will look only look under blog not on public directory (/). Ofcourse, I cannot define assets for all relative paths.

Am I missing something obvious?

Sorry if I got you wrong, but you can simply add to template something like that
<link rel="stylesheet" href="{{ get_url(path="style.css") | safe }}">

and if you want, you can wrap the block like:

  {% block css %}
    <link rel="stylesheet" href="{{ get_url(path="style.css") | safe }}">
  {% endblock css %}

and rewrite it in specific template

2 Likes