From 88ab280d06abfa21a46192591b2c36d2f3796c7b Mon Sep 17 00:00:00 2001 From: Neha9849 Date: Wed, 23 Feb 2022 21:01:17 +0530 Subject: [PATCH] added embed-pdf shortcode added demo in installation/configuration file --- .../installation/configuration/_index.en.md | 4 +- exampleSite/static/pdfs/sample.pdf | Bin 0 -> 2830 bytes layouts/shortcodes/embed-pdf.html | 111 ++++++++++++++++++ 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 exampleSite/static/pdfs/sample.pdf create mode 100644 layouts/shortcodes/embed-pdf.html diff --git a/exampleSite/content/installation/configuration/_index.en.md b/exampleSite/content/installation/configuration/_index.en.md index 4a5e15c..a407959 100644 --- a/exampleSite/content/installation/configuration/_index.en.md +++ b/exampleSite/content/installation/configuration/_index.en.md @@ -24,4 +24,6 @@ Note that some of these parameters are explained in details in other sections of # Call to action is default enabled, if you want to disable it. just change the enable = false # You can change banner title and other text from the config file. -``` \ No newline at end of file +``` + +{{< embed-pdf pdfName="sample.pdf">}} \ No newline at end of file diff --git a/exampleSite/static/pdfs/sample.pdf b/exampleSite/static/pdfs/sample.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c0e31a076aeb1fa7729e82279943b3504f85338d GIT binary patch literal 2830 zcmd5;-EP}96u#$EoSOg%kdhLuKNm%TIEk^XOA{o|$l$1urA7}G%`-gh0z#{u*ztl%QS<`8GX}hHVSC$ z1#7bpRcRqJ1yrR3rNPc6{H6+9i5xEEbS|`-mS8Ju3MKNA!i6a$Sovfroahu5ZrYbf z$Y~t%wa1;kubKAQ=Lt=Mwosd>USoNma-T;(qRBA&Rz@Q%n4TTOSNCnzYHw71F1>&b zgZ9|!vhOwZ>eU{fA-OMc`Th4>8p!8gxnC!_O6sp|_(!9j!4 zl}rI2*Anp(v6E8TCW$z)#(@?w9K8J>pe)8XYW!;hbAlZxi{j`%A=xgD@m>JvAQ{$i zx+!l~m_<`ypTcJZ@b7hZF-aPQ?eXuN^uL?7r@s%cJHXn!ip%*i%*_h!Ycv4+yhKny zkVPObZIxvdMwJC^EQqpI!qH0D>D+1dx$Ge8QYh?=Y4Q9TxY=LlKA(X{v8k=GuYoxV zbzeBf?vyKQu?=mRpI}SD+lY(UFY12dGL(5vH|f26Pp*%X)OVnw6y0RN{t@%`%+H zQq6RUYqc%x-Dko|I6QmHJumVG9`X#H@aSkehNnViNHu()I11Bz5QX6&1eC8oAFJX% z&>PVZ8B|x~2Z#q<5$8z!x}w1llkSN8@P(Eiz0l$T-}T6Y5TUVSi-*XhS`k48gS4fn tdFze(DqWWB+Te?Dj27AI&pI>6zUm3`FC<{1uysXv><8rF;QVq-{svGq0pkDw literal 0 HcmV?d00001 diff --git a/layouts/shortcodes/embed-pdf.html b/layouts/shortcodes/embed-pdf.html new file mode 100644 index 0000000..7ce06ab --- /dev/null +++ b/layouts/shortcodes/embed-pdf.html @@ -0,0 +1,111 @@ + + +
+
+
+
+ + / + +
+ + View PDF +
+ +
+ \ No newline at end of file