layouts: Add pdf.js and html2pdf cdn

Signed-off-by: Ida Delphine <mida@unicef.org>
This commit is contained in:
Ida Delphine 2021-08-20 12:07:57 +01:00
parent f073995976
commit e3ca0791cd

View file

@ -19,6 +19,10 @@
{{ "<!-- fonts -->" | safeHTML }} {{ "<!-- fonts -->" | safeHTML }}
<link href="https://fonts.googleapis.com/css?family={{replace .Site.Params.font_family ' ' '+' | title}}:300,400,700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family={{replace .Site.Params.font_family ' ' '+' | title}}:300,400,700&display=swap" rel="stylesheet">
{{ "<!-- PDF.js -->" | safeHTML }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.js"></script>
<style> <style>
:root{ :root{
--primary-color:{{ .Site.Params.primary_color }}; --primary-color:{{ .Site.Params.primary_color }};