Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/divinerites/divinerites-images-asset


https://github.com/divinerites/divinerites-images-asset

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# divinerites-images-asset

## Usage

```go-html-template
{{ $dict := (dict "context" . "path" .image "size" "200x" "action" "Resize" "title" .name "style" "mes styles")}}
{{ partial "image_asset.html" $dict }}```

Default style : "img-fluid shadow rounded"

You can disble it with adding `"basicstyle" false` to the dict

## Need to use a porfolio or any image's url

```go-html-template
{{ $dict := (dict "context" . "path" .image "size" "200x" "action" "Resize" "title" .name "pf" true "pf_size" "800x")}}
{{ partial "image_asset.html" $dict }}
{{ $asset_relurl := partial "image_asset_relurl.html" $dict }}
```

Then Use the `{{ $asset_relurl }}` variable as you want.

### Credits

- Copyright © 2020 onwards, Didier Divinerites