Skip to content

Instantly share code, notes, and snippets.

@ksuzushima
Created January 25, 2018 08:27
Show Gist options
  • Save ksuzushima/985de5c612313d9da54c513694a37058 to your computer and use it in GitHub Desktop.
Save ksuzushima/985de5c612313d9da54c513694a37058 to your computer and use it in GitHub Desktop.
[Movable Type] カスタムフィールドでアップロードした画像にwidthを指定してそのサイズで出力するやり方

Hoge というカスタムフィールドの場合

<mt:Entries>
  <mt:EntryDataHogeAsset>
    <img src="<mt:AssetThumbnailURL width="90">" alt="<mt:EntryTitle>">
  </mt:EntryDataHogeAsset>
</mt:Entries>

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment