Merge branch 'master' into mathjax-support
This commit is contained in:
@@ -62,6 +62,11 @@ params:
|
||||
# Note the lack of "" in true, it should be of boolean type.
|
||||
useBootstrapCDN: false
|
||||
|
||||
# If you want to load dynamically responsive images from Cloudinary
|
||||
# This requires your images to be uploaded + hosted on Cloudinary
|
||||
# Uncomment and change YOUR_CLOUD_NAME to the Cloud Name in your Cloudinary console
|
||||
# cloudinary_cloud_name: "YOUR_CLOUD_NAME"
|
||||
|
||||
# Whether the fade animations on the home page will be enabled
|
||||
animate: true
|
||||
|
||||
|
||||
@@ -51,3 +51,25 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
|
||||
<br>
|
||||
{{< youtube w7Ft2ymGmfc >}}
|
||||
<br>
|
||||
|
||||
## Theme Custom Shortcodes
|
||||
|
||||
These shortcodes are not Hugo built-ins, but are provided by the theme.
|
||||
|
||||
### Responsive Images with Cloudinary
|
||||
|
||||
You can learn more about this [here](https://cloudinary.com/documentation/responsive_images).
|
||||
|
||||
Set the `cloudinary_cloud_name` parameter in your site config to use this shortcode.
|
||||
|
||||
```
|
||||
{{</* dynamic-img src="/my/image/on/cloudinary" title="A title for the image" */>}}
|
||||
```
|
||||
|
||||
Note that you do not include the file extension (e.g. `.png`) in the `src` parameter, as the shortcode will automatically determine the best quality and format for the user's device.
|
||||
|
||||
Optionally, you can customize the general CSS styles for the image:
|
||||
|
||||
```
|
||||
{{</* dynamic-img src="/my/image/on/cloudinary" title="A title for the image" style="max-width:60%" */>}}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user