內嵌 Google Docs

效果展示

如何使用

產生連結

  1. 在 Google Docs/ Slides
  2. 選擇 檔案共用發佈到網路

複製語法

src 替換成 產生的網址

預設尺寸

預設尺寸為 600x337.5

{{< gdocs src="https://docs.google.com/..." >}}

自訂尺寸

{{< gdocs src="https://docs.google.com/..." width="(Pixels)" height="(Pixels)" >}}

Ex:

{{< gdocs src="https://docs.google.com/..." width="800" height="450" >}}

如何安裝

  1. 到 github repo 按個 star
自製 Shortcodes
  1. 選擇你要的 shortcode

  2. 下載 .html 檔案,放到 layouts/shortcodes/ 目錄下

  3. 指定語法使用