Hello, World!
@@ -52,93 +54,11 @@
-{% stylesheet %}
- .welcome {
- display: grid;
- grid-template-columns: var(--content-grid);
- background-color: #f6f6f7;
- padding: 72px 0;
- }
-
- .welcome-content {
- grid-column: 2;
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 1rem;
- width: 100%;
- padding: 0 24px;
- }
-
- .welcome-description {
- max-width: 80ch;
- line-height: 1.4;
- margin-top: 1.5rem;
- }
-
- .icon {
- width: 300px;
- }
-
- .highlights {
- display: grid;
- gap: 2rem;
- grid-template-columns: repeat(3, 1fr);
- margin-top: 50px;
- }
-
- @media (max-width: 1100px) {
- .highlights {
- grid-template-columns: 1fr;
- }
- }
-
- .highlight {
- display: flex;
- flex-direction: column;
- height: 100%;
- padding: 24px;
- border-radius: 8px;
- background-color: #eef3ff;
- color: rgb(92, 95, 98);
- line-height: 1.4;
- }
-
- .highlight > * + * {
- margin-top: 1rem;
- }
-
- .highlight h3 {
- font-size: 1rem;
- color: rgb(32, 34, 35);
- }
-
- .highlight-description {
- flex: 1 1;
- }
-
- .highlight a {
- display: flex;
- width: fit-content;
- background-color: rgb(250, 251, 251);
- box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px 0px inset, rgba(255, 255, 255, 0.9) 0px 2px 0px 0px inset;
- border: 1px solid rgb(140, 145, 150);
- border-radius: 4px;
- color: rgb(92, 95, 98);
- padding: 3px 10px 5px;
- text-decoration: none;
- }
-{% endstylesheet %}
+{{ block.content }}
{% schema %}
{
- "name": "Hello World",
- "settings": [],
- "presets": [
- {
- "name": "Hello World Template",
- "category": "Demo"
- }
- ]
+ "name": "Hello world",
+ "settings": []
}
{% endschema %}
diff --git a/blocks/text.liquid b/blocks/text.liquid
index b985c3894..83c07ce63 100644
--- a/blocks/text.liquid
+++ b/blocks/text.liquid
@@ -2,7 +2,7 @@
Renders a text block.
@example
- {% content_for 'block', type: 'text', id: 'text' %}
+ {% block 'text' %}{% endblock %}
{% enddoc %}
{{ block.settings.text }}
+ {{ block.content }}
-{% stylesheet %}
- .text {
- text-align: var(--text-align);
- }
- .text--title {
- font-size: 2rem;
- font-weight: 700;
- }
- .text--subtitle {
- font-size: 1.5rem;
- }
-{% endstylesheet %}
-
{% schema %}
{
"name": "t:general.text",
@@ -53,7 +41,6 @@
"label": "t:labels.alignment",
"default": "left"
}
- ],
- "presets": [{ "name": "t:general.text" }]
+ ]
}
{% endschema %}
diff --git a/layout/theme.liquid b/layout/theme.liquid
index 0e3fd39ca..4b899f188 100644
--- a/layout/theme.liquid
+++ b/layout/theme.liquid
@@ -27,10 +27,10 @@
- {% sections 'header-group' %}
+ {% block 'header' %}{% endblock %}
{{ content_for_layout }}
- {% sections 'footer-group' %}
+ {% block 'footer' %}{% endblock %}