You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pith is a static website generator, written in Ruby.
@@ -159,7 +159,7 @@ Any path beginning with a slash ("/") is resolved relative to the root of the si
159
159
There's also a "`link`" function, for even easier hyper-linking:
160
160
161
161
link("other.html", "Other page")
162
-
162
+
163
163
Configuring Pith
164
164
----------------
165
165
@@ -221,20 +221,20 @@ Pith includes a couple of optional "plugins". Actually, "plugin" is a bit stron
221
221
222
222
### Publication plugin
223
223
224
-
The 'publication' plugin makes it easier to build a weblog using Pith.
224
+
The 'publication' plugin makes it easier to build a weblog using Pith.
225
225
226
226
Enable it by requiring it in your "`config.rb`", like so:
227
227
228
228
require "pith/plugins/publication"
229
229
230
230
Now you can specify a "published" date/time in the metadata of any pages you consider to be "articles", e.g.
231
231
232
-
---
232
+
---
233
233
title: Introducing ShamRack
234
234
published: 3-July-2009, 15:50
235
235
...
236
236
237
-
This exposes "`page.published_at`" for use in your templates.
237
+
This exposes "`page.published_at`" for use in your templates.
238
238
239
239
In addition, "`project.published_inputs`" lists all the pages that have such a timestamp, in order of publication, making it easy to build index pages and XML feeds. Here's a example, used to build the article index for [dogbiscuit.org](http://dogbiscuit.org/mdub/weblog):
240
240
@@ -255,7 +255,7 @@ The Compass plugin gives you the full power of [Compass][compass] in your Sass s
255
255
require "pith/plugins/compass"
256
256
257
257
Note that if you're using Bundler, you'll also need to include the Compass gem in your `Gemfile`.
0 commit comments