Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
J
jekyll-scholar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar
Commits
89f21399
Commit
89f21399
authored
Jan 20, 2015
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support skip fields for bibtex export
see #78
parent
896f6ac8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
README.md
README.md
+1
-1
lib/jekyll/scholar/defaults.rb
lib/jekyll/scholar/defaults.rb
+1
-0
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+11
-4
No files found.
README.md
View file @
89f21399
...
...
@@ -497,7 +497,7 @@ License
Jekyll-Scholar is distributed under the same license as Jekyll.
Copyright (c) 2011-201
4
[
Sylvester Keil
](
http://sylvester.keil.or.at/
)
Copyright (c) 2011-201
5
[
Sylvester Keil
](
http://sylvester.keil.or.at/
)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
...
...
lib/jekyll/scholar/defaults.rb
View file @
89f21399
...
...
@@ -15,6 +15,7 @@ module Jekyll
'bibtex_options'
=>
{
:strip
=>
false
,
:parse_months
=>
true
},
'bibtex_filters'
=>
[
:latex
],
'bibtex_skip_fields'
=>
[
:abstract
,
:month_numeric
],
'replace_strings'
=>
true
,
'join_strings'
=>
true
,
...
...
lib/jekyll/scholar/utilities.rb
View file @
89f21399
...
...
@@ -275,12 +275,16 @@ module Jekyll
e
[
'key'
]
=
entry
.
key
e
[
'type'
]
=
entry
.
type
.
to_s
if
entry
.
field?
(
:abstract
)
if
entry
.
field_names
(
config
[
'bibtex_skip_fields'
]).
empty?
e
[
'bibtex'
]
=
entry
.
to_s
else
tmp
=
entry
.
dup
tmp
.
delete
:abstract
config
[
'bibtex_skip_fields'
].
each
do
|
name
|
tmp
.
delete
name
if
tmp
.
field?
(
name
)
end
e
[
'bibtex'
]
=
tmp
.
to_s
else
e
[
'bibtex'
]
=
entry
.
to_s
end
entry
.
fields
.
each
do
|
key
,
value
|
...
...
@@ -291,6 +295,9 @@ module Jekyll
e
end
def
bibtex_skip_fields
end
def
generate_details?
site
.
layouts
.
key?
(
File
.
basename
(
config
[
'details_layout'
],
'.html'
))
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment