mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Renamed include_file plugin to render_partial, added documentation to include_code and render_partial
This commit is contained in:
@ -1,3 +1,18 @@
|
||||
# Title: Include Code Tag for Jekyll
|
||||
# Author: Brandon Mathis http://brandonmathis.com
|
||||
# Description: Import files on your filesystem into any blog post as embedded code snippets with syntax highlighting and a download link.
|
||||
# Configuration: You can set default import path in _config.yml (defaults to code_dir: downloads/code)
|
||||
#
|
||||
# Syntax {% include_code path/to/file %}
|
||||
#
|
||||
# Example:
|
||||
# {% 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
|
||||
#
|
||||
|
||||
require 'pathname'
|
||||
|
||||
module Jekyll
|
||||
|
||||
Reference in New Issue
Block a user