Go to file
2024-02-06 12:36:07 +09:00
.gitea/workflows add gitea rsync 2024-02-06 12:25:52 +09:00
archetypes modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00
assets updated theme 2024-02-06 12:34:47 +09:00
content added code example 2023-12-14 17:04:31 +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 updated theme 2024-02-06 12:34:47 +09:00
.gitignore added simple translation program 2023-12-04 15:10:47 +09:00
.gitmodules updated theme 2024-02-06 12:34:47 +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
package-lock.json added simple translation program 2023-12-04 15:10:47 +09:00
package.json added simple translation program 2023-12-04 15:10:47 +09:00
README.md modified shortcodes, archaetypes and documents 2023-06-13 20:07:02 +09:00
translate.js added simple translation program 2023-12-04 15:10:47 +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">}}