Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/divinerites/divinerites-images-asset
https://github.com/divinerites/divinerites-images-asset
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/divinerites/divinerites-images-asset
- Owner: divinerites
- License: gpl-3.0
- Created: 2020-08-07T12:10:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T20:48:47.000Z (over 4 years ago)
- Last Synced: 2024-12-08T19:55:52.741Z (about 2 months ago)
- Language: HTML
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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