From 32f4d83c5195ea82384ce939d5d1dad5647486a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=B6cker?= Date: Thu, 15 Apr 2010 12:55:46 +0200 Subject: [PATCH] fix typo in org-jekyll tutorial --- org-tutorials/org-jekyll.org | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/org-tutorials/org-jekyll.org b/org-tutorials/org-jekyll.org index fa6e531..46643bc 100644 --- a/org-tutorials/org-jekyll.org +++ b/org-tutorials/org-jekyll.org @@ -136,16 +136,16 @@ up in the correct place. * Creating an org File to be Published with Jekyll. When you run Jekyll it processes the source files for your site and -any files with YAML Font Matter are subject to special processing. The -Font Matter is used to tell Jekyll how to format your page. +any files with YAML Front Matter are subject to special processing. The +Front Matter is used to tell Jekyll how to format your page. Bear in mind that Jekyll doesn't process your .org files, but the .html files produced by exporting. So when writing an org file it should be formatted in such a way that when exported it produces html suitable for processing by Jekyll. -YAML Font Matter must be the first thing in the file, with -no blank lines above the Font Matter Section. A typical Font Matter +YAML Front Matter must be the first thing in the file, with +no blank lines above the Front Matter Section. A typical Front Matter Section would look like: --- @@ -153,14 +153,14 @@ layout: default title: My Page Title. --- -So you should ensure that any Font Matter directives come first in +So you should ensure that any Front Matter directives come first in your org file. Note that the three hyphens "---" are part of the markup and are required. The layout tag tells Jekyll which layout from its _layouts directory should be used to format your page. You can include any -other keys in the Font Matter section (e.g. title:), which you can use -in your page. See the Jekyll [[http://wiki.github.com/mojombo/jekyll/yaml-front-matter][wiki]] for more details on Font Matter. +other keys in the Front Matter section (e.g. title:), which you can use +in your page. See the Jekyll [[http://wiki.github.com/mojombo/jekyll/yaml-front-matter][wiki]] for more details on Front Matter. Below is a short extract from one of my org files showing my setup: @@ -177,10 +177,10 @@ excerpt: An unplanned bivouac on Ben Nevis. It was early January when six of us travelled up to .... #+END_EXAMPLE -The Font Matter section is wrapped in #+BEGIN_HTML so it is exported +The Front Matter section is wrapped in #+BEGIN_HTML so it is exported literally to the final html file. You may need to upgrade your org -version as older versions produced two blank lines before the Font -Matter section when exported. You can define your own Font Matter keys and use +version as older versions produced two blank lines before the Front +Matter section when exported. You can define your own Front Matter keys and use them within your generated page. In the above example I use the "excerpt" key to display "teasers" for a blog post. @@ -214,7 +214,7 @@ yyyy-mm-dd-post_name.html To write a post just create a new file with the correct filename in your org/_posts directory. You may find that Yasnippet is useful for -inserting Font Matter and other directives in your org file. When you +inserting Front Matter and other directives in your org file. When you have finished just run C-c e X project_name to export your org project as html and then run jekyll to generate your site. @@ -345,14 +345,14 @@ A third method, which I haven't tried myself, is to use the jQuery EXIF plugin to extract the caption from the image EXIF data and use Javascript to display it. See [[http://www.nihilogic.dk/labs/exif/][here]] for more details. -* Using Text Markup in Font Matter. -By default text in the Font Matter part of your file isn't processed +* Using Text Markup in Front Matter. +By default text in the Front Matter part of your file isn't processed by Jekyll's markup engine. However, you can use the Textilize filter -to convert your Font Matter string into HTML, formatted using textile +to convert your Front Matter string into HTML, formatted using textile markup. I use this to format my page excerpts, which I include in my org files -Font Matter markup. So in my sites index.html I have: +Front Matter markup. So in my sites index.html I have: #+BEGIN-EXAMPLE
  • {{ post.title }} ({{ post.date | date:"%Y-%m-%d" }})
  • @@ -361,7 +361,7 @@ Font Matter markup. So in my sites index.html I have: #+END-EXAMPLE This lets me use textile markup in my page excerpts, which are defined -in my page's YAML Font Matter section. +in my page's YAML Front Matter section. * Version Control with Jekyll. Jekyll is amenable to using version control systems. If you follow my -- 2.11.4.GIT