Merge branch 'master' into mathjax-support
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width">
|
||||
<link rel="icon" href={{ .Site.Params.favicon | default "/fav.png" }} type="image/gif">
|
||||
|
||||
<!-- Fonts -->
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<script src="/js/search.js"></script>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if (.Params.mathjax | default false) }}
|
||||
|
||||
{{ "<!-- MathJax -->" | safeHTML }}
|
||||
@@ -85,5 +86,15 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ 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 }}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $image := .Get "src" }}
|
||||
{{ $alt := .Get "title" }}
|
||||
{{ $width := .Get "width" | default "w_auto" }}
|
||||
{{ $style := .Get "style" | default "max-width:80%" }}
|
||||
<img alt="{{ $alt }}" title="{{ $alt }}" data-src="https://res.cloudinary.com/{{ $.Site.Params.cloudinary_cloud_name }}/{{ $width }},c_scale,f_auto,q_auto,dpr_auto{{ $image}}" class="cld-responsive" style="padding-bottom: 16px; display: block; margin: auto; {{ $style }}">
|
||||
Reference in New Issue
Block a user