Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jekyll-pandoc-multiple-formats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edsl
jekyll-pandoc-multiple-formats
Commits
8c525e4d
Unverified
Commit
8c525e4d
authored
7 years ago
by
fauno
Browse files
Options
Downloads
Patches
Plain Diff
pass output format to trigger
parent
58e5cf24
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/jekyll-pandoc-multiple-formats/generator.rb
+2
-2
2 additions, 2 deletions
lib/jekyll-pandoc-multiple-formats/generator.rb
with
2 additions
and
2 deletions
lib/jekyll-pandoc-multiple-formats/generator.rb
+
2
−
2
View file @
8c525e4d
...
...
@@ -39,12 +39,12 @@ class PandocGenerator < Generator
@config
.
outputs
.
each_pair
do
|
output
,
_
|
@site
.
posts
.
docs
.
each
do
|
post
|
Jekyll
::
Hooks
.
trigger
:posts
,
:pre_render
,
post
,
nil
Jekyll
::
Hooks
.
trigger
:posts
,
:pre_render
,
post
,
{
format:
output
}
pandoc_file
=
PandocFile
.
new
(
@site
,
output
,
post
)
next
unless
pandoc_file
.
write
Jekyll
::
Hooks
.
trigger
:posts
,
:post_render
,
post
,
nil
Jekyll
::
Hooks
.
trigger
:posts
,
:post_render
,
post
,
{
format:
output
}
@site
.
keep_files
<<
pandoc_file
.
relative_path
@pandoc_files
<<
pandoc_file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment