Closed2
11tyを触る
参考
テンプレートはこんなにサポートしている
Liquid
Nunjucks
マークダウン
HTML
WebComponents(WebC)
JavaScript
Handlebars
Mustache
EJS
HAML
Pug
_includes
ディレクトリにlayoutファイルを作成
content部分に各ページのデータが入る
<html lang="ja">
<head>
<title>Eleventyサンプル</title>
</head>
<body>
<header>
<h1>Eleventyサンプル</h1>
</header>
<article>
{{ content }}
</article>
<footer>
<p>© mamezou-tech</p>
</footer>
</body>
</html>
ページごとにlayoutファイルを設定出来る
---
layout: base
---
# サンプルページ
Eleventyのドキュメントはこちらです!!
- [Eleventy Doc](https://www.11ty.dev/)
このスクラップは3ヶ月前にクローズされました