iPhoneで Grafanaの グラフを 参照できる アプリ Grafanizer 作ってます。 詳しくは こちらへ

Hugo 0.21 リリースノート 適当和訳

Jul 18, 2017  
#hugo #doc
原文 https://github.com/gohugoio/hugo/releases/tag/v0.21
その他のリリースノート和訳

Hugo v0.21 リリース

Hugo 0.21 では、そのパズルの最後の重要な部分である、アウトプットフォーマットごとのショートコードを完全にサポートしました。これは数多くのカスタムメディアタグをもつGoogle AMPに特に便利です。

Hugo 0.21 brings full support for shortcodes per Output Format (#3220), the last vital piece of that puzzle. This is especially useful for Google AMP with its many custom media tags.

その他のハイライト

技術的な面では、数多くのテンプレート関数に名前空間を導入しました(#3042)。今でも非常に多くあり、これからもっとたくさんのことを加えていくと確実にコントロールが効かなっていきます。それらは自身のテストや例により名前空間が正しく分類されており、APIはドキュメントサイトで正しく更新され使うことができる。

On a more technical side, @moorereason and @bep have introduced namespaces for Hugo's many template funcs (#3042). There are so many now, and adding more into that big pile would be a sure path toward losing control. Now they are nicely categorised into namespaces with its own tests and examples, with an API that the documentation site can use to make sure it is correct and up-to-date.

ノート

  • 廃止された .Extension.Now , .TargetPath はエラーになる。
  • The deprecated .Extension, .Now and .TargetPath will now ERROR 544f0a63 @bep

  • 設定用のフラグ disable404, disableRSS, disableSitemap, disableRobotsTXT は廃止されたので、disableKinds を使う。

  • The config settings and flags disable404, disableRSS, disableSitemap, disableRobotsTXT are now deprecated. Use disableKinds. 5794a265 @bep #3345

強化

テンプレート

  • Log a WARNING on wrong usage of IsSet 38661c17 @moorereason #3092
  • ページネーションでページ数が多いときに ... 表示させることができる #3466
  • Add support for ellipsed paginator navigator, making paginators with lots of pages more compact b6ea492b @bep #3466
  • Add support for interfaces to intersect f1c29b01 @moorereason #1952
  • 小数点以下を揃える NumFmt 関数を追加 #1444
  • Add NumFmt function 93b3b138 @moorereason #1444
  • Add template function namespaces #3418 #3042 @moorereason @bep
  • Add translation links to the default sitemap template 90d3fbf1 @rayjolt #2569
  • Allow text partials in HTML templates and the other way around 1cf29200 @bep #3273

以下略


うーん、更新内容が細かいうえに内部的でマニアックなものばっかりで、訳す必要ないものばっかりだなぁ。

ちょっとスタイル考えてみるか...