瀏覽代碼

Remove block `style` from templates

Danilo Gómez Gómez 4 年之前
父節點
當前提交
196cc2f659
共有 4 個文件被更改,包括 12 次插入15 次删除
  1. 0 4
      layout/_base.html
  2. 0 3
      layout/work.html
  3. 6 4
      layout/work/branding.html
  4. 6 4
      layout/work/illustration.html

+ 0 - 4
layout/_base.html

@@ -84,10 +84,6 @@
 		</div>
 	</header>
 	<main class="main-layout">
-		<style>
-		{% block style %}
-		{% endblock %}
-		</style>
 		{% block main %}
 		{% endblock %}
 	</main>

+ 0 - 3
layout/work.html

@@ -7,9 +7,6 @@
 {% set sort_images = True %}
 {% set expand_dialog = True %}
 
-{% block style %}
-{% endblock %}
-
 {% block main %}
 {% for image in (sorted(images(path), reverse=True) if sort_images else images(path)) %}
 	<figure class="{{ 'clickable-fig' if expand_dialog else ''}}">

+ 6 - 4
layout/work/branding.html

@@ -5,8 +5,10 @@
 {% set expand_dialog = True %}
 {% set sort_images = True %}
 
-{% block style %}
-:root {
-	--columns: 4;
-}
+{% block main %}
+<style>
+    :root {
+        --columns: 4;
+    }
+</style>
 {% endblock %}

+ 6 - 4
layout/work/illustration.html

@@ -4,8 +4,10 @@
 {% set work_path = "illustration" %}
 {% set sort_images = True %}
 
-{% block style %}
-:root {
-	--columns: 3;
-}
+{% block main %}
+<style>
+	:root {
+		--columns: 3;
+	}
+</style>
 {% endblock %}