-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating changes to be in sync with Sites
- Loading branch information
Showing
9 changed files
with
105 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"lombiq.hosting.mediatheme.deployer": { | ||
"version": "3.0.0-alpha.5.nest-407", | ||
"commands": [ | ||
"media-theme-deploy" | ||
] | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
src/Themes/Sample.Theme/Recipes/DotNest.Core.SDK.MediaTheme.recipe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "DotNest.Core.SDK.MediaTheme", | ||
"displayName": "Media Theme", | ||
"description": "A recipe created with the media-theme-deployment tool.", | ||
"author": "", | ||
"website": "", | ||
"version": "", | ||
"issetuprecipe": false, | ||
"categories": [], | ||
"tags": [], | ||
"steps": [ | ||
{ | ||
"name": "Feature", | ||
"enable": [ | ||
"Lombiq.Hosting.MediaTheme.Bridge", | ||
"Lombiq.Hosting.MediaTheme" | ||
] | ||
}, | ||
{ | ||
"name": "Themes", | ||
"Site": "Lombiq.Hosting.MediaTheme" | ||
}, | ||
{ | ||
"name": "mediatheme", | ||
"ClearMediaThemeFolder": true, | ||
"BaseThemeId": "TheTheme" | ||
}, | ||
{ | ||
"name": "media", | ||
"Files": [ | ||
{ | ||
"SourcePath": "_MediaTheme/Assets/example-local.png", | ||
"TargetPath": "_MediaTheme/Assets/example-local.png" | ||
}, | ||
{ | ||
"SourcePath": "_MediaTheme/Assets/example.png", | ||
"TargetPath": "_MediaTheme/Assets/example.png" | ||
}, | ||
{ | ||
"SourcePath": "_MediaTheme/Templates/Example.liquid", | ||
"TargetPath": "_MediaTheme/Templates/Example.liquid" | ||
}, | ||
{ | ||
"SourcePath": "_MediaTheme/Templates/Widget__LayoutInjection.liquid", | ||
"TargetPath": "_MediaTheme/Templates/Widget__LayoutInjection.liquid" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions
12
src/Themes/Sample.Theme/Recipes/_MediaTheme/Templates/Widget__LayoutInjection.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% zone "Header" %} | ||
|
||
<p>This is a template rendered from your custom theme. Once deployed to the Media Theme, it'll be hosted from there.</p> | ||
<p>Below is an image also stored in the theme's wwwroot folder. Note that the URL of the image starts with <code>/mediatheme</code>. | ||
Once it's deployed to the Media Theme, the URL can stay the same, but it'll be served from the Media Library.</p> | ||
<img src="/mediatheme/example-local.png" alt="example local" /> | ||
|
||
<p>Now let's render a shape that's actually coming from the Media Theme.</p> | ||
|
||
{{ "Example" | shape_new | shape_render }} | ||
|
||
{% endzone %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p>This is an example template hosted in Media Theme.</p> | ||
<p>Below is an image also hosted in Media Theme:</p> | ||
<img src="/mediatheme/example.png" alt="example" /> |
12 changes: 12 additions & 0 deletions
12
src/Themes/Sample.Theme/Views/Widget__LayoutInjection.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% zone "Header" %} | ||
|
||
<p>This is a template rendered from your custom theme. Once deployed to the Media Theme, it'll be hosted from there.</p> | ||
<p>Below is an image also stored in the theme's wwwroot folder. Note that the URL of the image starts with <code>/mediatheme</code>. | ||
Once it's deployed to the Media Theme, the URL can stay the same, but it'll be served from the Media Library.</p> | ||
<img src="/mediatheme/example-local.png" alt="example local" /> | ||
|
||
<p>Now let's render a shape that's actually coming from the Media Theme.</p> | ||
|
||
{{ "Example" | shape_new | shape_render }} | ||
|
||
{% endzone %} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.