Skip to content

Commit

Permalink
Update themes.md
Browse files Browse the repository at this point in the history
I replaced the `{% themes_static %}` tag in `themes.md` with a Jekyll-compatible tag. The error occurred on line 87, and this fix should resolve the Pages build issue.
  • Loading branch information
naeimehnajafi authored Jan 14, 2025
1 parent 05f4e2d commit 701c7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ If you need the path to some of your extra files, you can use the following help
You can use the `themes_static` template tag to get the path to the static themes folder. Use it like this:

```html
<img src="{{ '/path/to/rocket.svg' | relative_url }}" alt="Rocket">
<img src="{{ '/stregsystem/themes/fireworks/rocket.svg' | relative_url }}" alt="Rocket">
```

There is also `themes_template` for the template themes folder.
Expand All @@ -84,7 +84,7 @@ const src = themes_static_url + "mytheme/image.svg";
There is no solution for static css files, but you can use inline styles in the html template:

```html
<div style="background-image:url({% themes_static 'mytheme/image.svg' %})"></div>
<img src="{{ '/static/stregsystem/themes/fireworks/rocket.svg' | relative_url }}" alt="Rocket">
```

## Style the frontend
Expand Down

0 comments on commit 701c7f0

Please sign in to comment.