1. Added condition to full_url filter to allow it to be used as a root_url appending filter for remapping root "/" urls when octopress is deployed to a subdirectory. Updated _includes/article and _layouts/page to use the filter
2. Added documentation for the include_code plugin
This commit is contained in:
parent
05e4b7951d
commit
44e1351fc7
4 changed files with 12 additions and 4 deletions
|
@ -5,13 +5,20 @@
|
|||
#
|
||||
# Syntax {% include_code path/to/file %}
|
||||
#
|
||||
# Example:
|
||||
# Example 1:
|
||||
# {% include_code javascripts/test.js %}
|
||||
#
|
||||
# This will import test.js from source/downloads/code/javascripts/test.js
|
||||
# and output the contents in a syntax highlighted code block inside a figure,
|
||||
# with a figcaption listing the file name and download link
|
||||
#
|
||||
# Example 2:
|
||||
# You can also include an optional title for the <figcaption>
|
||||
#
|
||||
# {% include_code Example 2 javascripts/test.js %}
|
||||
#
|
||||
# will output a figcaption with the title: Example 2 (test.js)
|
||||
#
|
||||
|
||||
require 'pathname'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue