問題タブ [awestruct]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby - Awestruct ナビゲーション: ページをカテゴリ別に並べ替える
私が印刷しようとしているのul
はli
、それぞれが特定のタグを持つすべてのページを含む (メタデータに設定されている) です。
Awestruct に慣れていない場合は、Jekyll に似ており、ページのメタデータに としてアクセスできますpage.property
。ページはsite
オブジェクト内にあり、次のように反復処理できます。site.pages.each
私が達成したいのは、次のようなものです。
これまでのところ、ページタイトルのみを印刷できました。
私が見逃している簡単な解決策はありますか?