adsfを入れてあればここで
このページを表示しているindex.htmlはこんな感じ。
A Brand New nanoc Site - Home A Brand New nanoc Site
You’ve just created a new nanoc site. The page you are looking at right now is the home page for your site. To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:
Change this page’s content by editing the “index.html” file in the “content” directory. This is the actual page content, and therefore doesn’t include the header, sidebar or style information (those are part of the layout).
Change the layout, which is the “default.html” file in the “layouts” directory, and create something unique (and hopefully less bland).
If you need any help with customizing your nanoc web site, be sure to check out the documentation (see sidebar), and be sure to subscribe to the discussion group (also see sidebar). Enjoy!
nanoc compileされているのはcontent/inde.htmlで、こっちは
--- title: Home ---A Brand New nanoc Site
You’ve just created a new nanoc site. The page you are looking at right now is the home page for your site. To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:
Change this page’s content by editing the “index.html” file in the “content” directory. This is the actual page content, and therefore doesn’t include the header, sidebar or style information (those are part of the layout).
Change the layout, which is the “default.html” file in the “layouts” directory, and create something unique (and hopefully less bland).
If you need any help with customizing your nanoc web site, be sure to check out the documentation (see sidebar), and be sure to subscribe to the discussion group (also see sidebar). Enjoy!
あれ?サイドバーはどこ?とチュートリアルを読み進めたら、layout/default.htmlちゅーファイルがあって、oh!yeah! erbだ。<%= yield %>があるじゃん。A Brand New nanoc Site - <%= @item[:title] %> <%= yield %>
ということで、サーバ上でrailsがダイナミックにやっていることを、ローカルでやっちゃってからサーバにupする、ということらしい。おもしろいアプローチだなあ。職場のHPにいいなあ。もう少し勉強しよう。
0 件のコメント:
コメントを投稿