feat: add optional response images with cloudinary

This commit is contained in:
Ari Kalfus
2022-12-02 18:05:06 -05:00
committed by GitHub
parent efc0918ad7
commit 0d95181b63
4 changed files with 30 additions and 1 deletions
+12 -1
View File
@@ -65,4 +65,15 @@
{{ if not (.Site.Params.navbar.disableSearch | default false) }}
<script src="/js/search.js"></script>
{{ end }}
{{ end }}
{{ if (.Site.Params.cloudinary_cloud_name | default false) }}
{{ "<!-- cloudinary -->" | safeHTML }}
<script src="https://unpkg.com/[email protected]/cloudinary-core-shrinkwrap.js" integrity="sha384-0bQduxVhZMs6xfvcPH9osdUIw44hjF8EahHuQBdyN6Rryk8tgyFO80Yz5d14F+5d" crossorigin="anonymous"></script>
<script type="text/javascript">
var cl = cloudinary.Cloudinary.new({cloud_name: "{{- .Site.Params.cloudinary_cloud_name }}"});
cl.responsive();
</script>
{{ end }}