-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to future-wd processing
- Loading branch information
Showing
89 changed files
with
2,450 additions
and
372 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
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
img[data-sizes="auto"] { | ||
display: block; | ||
width: 100%; | ||
} | ||
|
||
.figure { | ||
display: block; | ||
} | ||
|
||
.blur-up { | ||
filter: blur(5px); | ||
transition: filter 400ms; | ||
} | ||
|
||
.blur-up.lazyloaded { | ||
filter: unset; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
[[mounts]] | ||
source = "node_modules/@hyas/images/assets" | ||
target = "assets" | ||
excludeFiles = "/scss/**.scss" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/images/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "assets" | ||
target = "assets" | ||
|
||
[[mounts]] | ||
source = "layouts" | ||
target = "layouts" |
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
image: | ||
## General | ||
type: page # page (default) or global | ||
widths: [480, 640, 768, 1024, 1366] # [600, 900, 1300] (default) | ||
densities: [1,2] # [1,2] (default) | ||
formats: [original, webp] # [original, webp] (default) | ||
provider: null # null (default) or netlify | ||
loading: lazysizes # auto (default), lazy, or lazysizes | ||
class: "img-fluid blur-up" # img-fluid (default) | ||
output: picture # picture (default), figure, or img | ||
noscript: false # false (default) or true | ||
|
||
## Placeholder | ||
placeholder: lqip # null (default), lqip, dominant, or [black, [gray-100..gray-900], white] | ||
lqip_div_factor: 5 # 5 (default) | ||
lqip_blur_amount: 5 # 5 (default) | ||
gif_div_factor: 10 # 10 (default) | ||
|
||
## Figure | ||
target: "_blank" # _blank (default) | ||
rel: "noopener, noreferrer" # noopener, noreferrer (default) | ||
figure_class: "figure" # figure (default) | ||
figure_image_class: "figure-img img-fluid blur-up" # "figure-img img-fluid" (default) | ||
figcaption_class: figure-caption # figure-caption (default) | ||
figcaption_title_h: 4 # 4 (default) | ||
attr_link_target: "_blank" # _blank (default) | ||
attr_link_rel: "noopener, noreferrer" # noopener, noreferrer (default) | ||
|
||
## Render hook | ||
render_hook: true # false (default) or true | ||
render_hook_wrapper_class: img-wrapper # img-wrapper (default) | ||
|
||
## Shortcode | ||
shortcode_wrapper_class: img-wrapper # img-wrapper (default) | ||
|
||
## Debugging | ||
suppress_width_warning: false # false (default) or true | ||
debug: false # false (default) or true |
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 |
---|---|---|
@@ -1,8 +1,25 @@ | ||
{{ $img := .Destination }} | ||
{{ $alt := .Text -}} | ||
{{ $params := (dict "img" $img "alt" $alt) -}} | ||
{{ if not (resources.Get $params.img) -}} | ||
{{ $params = merge $params (dict "img" (.Page.Resources.GetMatch $params.img)) -}} | ||
{{ end -}} | ||
|
||
{{ partial "lazyimg" $params }} | ||
{{- /* | ||
_default/_markup/render-image.html | ||
- if image.renderhook=true | ||
- sets params | ||
- sennds params to render-hook-template | ||
- else calls render-hook-default to emulate default markdown image behavior | ||
|
||
@author @sean-au | ||
|
||
@context Render hook params | ||
|
||
@access public | ||
|
||
@example - Hugo Markdown | ||
![Image Alt](img_path.jpeg "Image title") | ||
|
||
*/ -}} | ||
{{- $params := partial "hri/private/params/render-hook" . -}} | ||
{{- if eq $params.render_hook.enabled true -}} | ||
{{- partial "hri/private/print/render-hook" $params -}} | ||
{{- else -}} | ||
{{- /* default markdown behavior */ -}} | ||
{{- partial "hri/private/print/render-hook-default" . -}} | ||
{{- end -}} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{{ partial "hri/figure" . }} |
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,30 @@ | ||
{{- /* | ||
figure.html | ||
Takes inputs and page context. | ||
- Passes inputs to figure-params partial for processing | ||
- sends params to 2x partials for figure tag generation | ||
- inbetween these to partials is the image partial () | ||
|
||
@author @sean-au | ||
|
||
@context . Context from a page template, figure/image partial, or render hook partial. | ||
|
||
@access public | ||
|
||
@example - Go Template | ||
{{ partial "figure" (dict "src" "image.jpg" "alt" "alt text") }} | ||
|
||
*/ -}} | ||
|
||
{{- $params := . -}} | ||
{{- if not $params.common.processed -}} | ||
{{- $common := partial "hri/private/params/common.html" (merge $params (dict "partial" "figure")) -}} | ||
{{- $params = merge $params (dict "common" $common) -}} | ||
{{- else -}} | ||
{{- $params = merge $params (dict "common" (dict "partial" "figure" )) -}} | ||
{{- end -}} | ||
{{- $figure_params := partial "hri/private/params/figure" $params -}} | ||
{{- $params = merge $params (dict "figure" $figure_params) }} | ||
|
||
{{- partial "hri/private/print/figure-set" $params -}} | ||
|
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 @@ | ||
{{ partial "hri/private/image" (merge . (dict "partial" "image")) }} |
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 @@ | ||
{{ partial "hri/private/image" (merge . (dict "partial" "img")) }} |
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 @@ | ||
{{ partial "hri/private/image" (merge . (dict "partial" "picture")) }} |
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,19 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th> | ||
|
||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
|
||
{{ range $k, $e := . }} | ||
<h3>{{ $k }}</h3> | ||
<p> | ||
{{ range $k, $e := . }} | ||
<strong>{{ $k }}:</strong> {{ $e }}<br> | ||
{{ end }} | ||
</p> | ||
{{ end }} | ||
|
Oops, something went wrong.