Skip to content

Commit

Permalink
Update index.ytml.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fxwiegand authored Jan 22, 2024
1 parent 0fb67c2 commit f842a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locosopa/src/index.ytml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ __definitions__:
- |
def heroicon(name):
return f"https://raw.githubusercontent.com/tailwindlabs/heroicons/master/src/24/outline/{name}.svg"
- |
def img_width(width):
return f"width: {width}; max-width: 100vw;"
- |
def hlt(string):
def colorize(name, brightness=500):
Expand Down Expand Up @@ -161,7 +164,7 @@ html:
?if item["img-width"]:
style: "width: 200px; max-width: 100vw;"
?else:
style: ?f"width: {item['img-width']}; max-width: 100vw;"
style: ?img_width(item['img-width'])
content: null

- div:
Expand Down

0 comments on commit f842a27

Please sign in to comment.