Mercurial > web
changeset 124:ce02bf9659ef default tip
layouts/default: fix CSS styling when bgsize isn't defined
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sun, 12 Jul 2026 19:15:26 -0400 |
| parents | 495517d4487f |
| children | |
| files | _layouts/default.html |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/_layouts/default.html Sun Jul 12 19:05:31 2026 -0400 +++ b/_layouts/default.html Sun Jul 12 19:15:26 2026 -0400 @@ -12,7 +12,7 @@ background-image: {% if page.bgimage %} {% unless page.bgimage == "none" %} url("{{ page.bgimage }}") {% endunless %} {% else %} url("/media/KnitLight.png") {% endif %}; background-position: center top; background-color: {% if page.bgcolor %} {% unless page.bgcolor == "none" %} {{ page.bgcolor }} {% endunless %} {% else %} #737373 {% endif %}; - background-size: {% if page.bgsize %} {{ page.bgsize }} {% endif %}; + background-size: {% if page.bgsize %} {{ page.bgsize }} {% else %} auto {% endif %}; min-height: 100vh; } </style>
