Go to file
2023-06-13 20:07:14 +09:00
archetypes modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00
content fixed week 9 2023-06-13 20:07:14 +09:00
layouts/shortcodes modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00
static batch webmodular touch event 2020-07-02 22:56:36 +09:00
themes theme update 2023-03-29 11:42:00 +09:00
.gitignore gitignore 2020-04-29 17:51:43 +09:00
.gitmodules changed submodule url to https 2023-04-10 14:41:08 +09:00
.hugo_build.lock 2023 2023-03-22 14:14:09 +09:00
config.toml modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00
LICENSE.md added readme 2020-03-23 16:13:54 +09:00
README.md modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00

teach.matsuuratomoya.com

License: CC BY-NC-SA 4.0

Repository for teach.matsuuratomoya.com.

Author

Tomoya Matsuura 松浦 知也

https://matsuuratomoya.com

Contact

  • me[at]matsuuratomoya.com

授業関係の連絡はこちら↓ Related to courseworks

  • teach[at]matsuuratomoya.com

使い方のメモ

新しい授業資料更新のファイル作成コマンド

hugo new --kind class content/docs/2023/code-design/10

カスタムショートコード

テーマのショートコードも使える。

https://github.com/alex-shpak/hugo-book#shortcodes 

embed_pdf PDFの埋め込み

embedで埋め込むだけ。Page Bundleになっている必要があるのでindex.mdと同ディレクトリでないと使えない

{{< embed_pdf >}} 

mdと同ディレクトリにあるPDFのうち一番先頭のファイルを埋め込む。

---
...
params:
    pdf_path:hoge.pdf
...
---

{{< embed_pdf >}} 

フロントマッターで相対指定したPDFファイルを埋め込む。

{{< embed_pdf href = "hoge.pdf">}} 

インライン指定したPDFファイルを埋め込む。

slides_jpg

{{< slides_jpg >}} 

Page Resourcesの中のJPGを全部名前順に連番で表示する。keynoteでjpgエクスポートした連番ファイルをそのまま突っ込んで表示できる想定。

preview_code

指定したファイルを読み込んで通常のコードハイライト表示をし、ダウンロードのボタンを追加する。 これも埋め込むファイルがPage Resourcesになっている必要があるサブディレクトリに入れることはできない。 typeでシンタックスハイライトの種類を指定できる。

{{< preview_code href="tone_minimal.ino" type= "ino">}}