1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{215:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rabbitfish/features/pages",function(){return t(7098)}])},8433:function(e,i,t){"use strict";t.d(i,{Z:function(){return r}});var n=t(5893),s=t(1664),a=t.n(s);t(9943);function r(){return(0,n.jsxs)("div",{className:"header",children:[(0,n.jsx)("h1",{children:(0,n.jsx)(a(),{href:"/rabbitfish",children:(0,n.jsx)("a",{children:"RabbitFish"})})}),(0,n.jsx)("h2",{children:"a static site generator"})]})}},7098:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return r}});var n=t(5893),s=t(8433),a=t(9943);function r(){return(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("head",{children:[(0,n.jsx)("title",{children:"Pages"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)("main",{children:[(0,n.jsx)(s.Z,{}),(0,n.jsx)("h3",{children:"Pages"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("code",{children:"Pages"})," are simple HTML pages that RabbitFish generates"," ","using your Jinja2 templates and YAML configuration files. Three things"," ","are required to define a ",(0,n.jsx)("code",{children:"Page"}),":",(0,n.jsxs)("ol",{children:[(0,n.jsxs)("li",{children:["An entry to the ",(0,n.jsx)("code",{children:"pages"})," list in your main config.yaml file."]}),(0,n.jsx)("li",{children:"A YAML file containing the content for the Page."}),(0,n.jsx)("li",{children:"A Jinja2 template to create the HTML for the Page."})]})]}),(0,n.jsxs)("p",{children:["In your config.yaml file, the ",(0,n.jsx)("code",{children:"pages"})," list specifies the"," ","pages that RabbitFish will generate for your site. Each entry"," ","specifies the name, template, and (optionally) url that will be used"," ","for the Page. If no url is specified, it will simply append '.html' to"," ","the page name and place it at the root level of your site. The name"," ","will be used to reference that ",(0,n.jsx)("code",{children:"Page"})," from now on. The"," ","config.yaml file for this documentation looks like this:"," ",(0,n.jsx)(a.Z,{id:"835549",file:"config.yaml"})]}),(0,n.jsxs)("p",{children:["As with the configuration, the content for your pages is also stored"," ","in YAML files. The contents of the YAML content file for your"," ",(0,n.jsx)("code",{children:"Page"})," will be passed in as the template context, so your"," ","template can access your content by using the names of the YAML"," ","attributes you created as Jinja2 variables. So if you defined"," ",(0,n.jsx)("code",{children:"title: Pages"})," in your YAML configuration file, you will be"," ","able to insert that data into your template as"," ",(0,n.jsx)("code",{children:"{{ title }}"}),"."]}),(0,n.jsxs)("p",{children:["Your templates are ordinary Jinja2 templates and can use all the"," ","normal features available in Jinja2."]})]})]})}}},function(e){e.O(0,[16,774,888,179],(function(){return i=215,e(e.s=i);var i}));var i=e.O();_N_E=i}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.