Mercurial > web
changeset 93:92f1ea793bf2
layouts/default: put all this cruft as oneliners
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 05:00:17 -0400 |
parents | a143c3991472 |
children | f07319404ff9 |
files | _layouts/default.html |
diffstat | 1 files changed, 4 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/_layouts/default.html Wed Jun 19 04:54:19 2024 -0400 +++ b/_layouts/default.html Wed Jun 19 05:00:17 2024 -0400 @@ -8,29 +8,11 @@ <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?"> <style> body { - {% if page.bgrepeat %} - background-repeat: {{ page.bgrepeat }}; - {% else %} - background-repeat: repeat; - {% endif %} - {% if page.bgimage %} - {% unless page.bgimage == "none" %} - background-image: url("{{ page.bgimage }}"); - {% endunless %} - {% else %} - background-image: url("/media/KnitLight.png"); - {% endif %} + background-repeat: {% if page.bgrepeat %} {{ page.bgrepeat }} {% else %} repeat {% endif %}; + background-image: {% if page.bgimage %} {% unless page.bgimage == "none" %} url("{{ page.bgimage }}") {% endunless %} {% else %} url("/media/KnitLight.png") {% endif %}; background-position: center top; - {% if page.bgcolor %} - {% unless page.bgcolor == "none" %} - background-color: {{ page.bgcolor }}; - {% endunless %} - {% else %} - background-color: #737373; - {% endif %} - {% if page.bgsize %} - background-size: {{ page.bgsize }}; - {% endif %} + background-color: {% if page.bgcolor %} {% unless page.bgcolor == "none" %} {{ page.bgcolor }} {% endunless %} {% else %} #737373 {% endif %}; + background-size: {% if page.bgsize %} {{ page.bgsize }} {% endif %}; min-height: 100vh; } </style>