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-extras
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
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar-extras
Commits
f9e5c5ee
Commit
f9e5c5ee
authored
May 23, 2012
by
rmrf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Public entries supported by default
parent
0a7e6caa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
lib/jekyll/scholar/extras.rb
lib/jekyll/scholar/extras.rb
+1
-0
lib/jekyll/scholar/extras/bibliography_hdp.rb
lib/jekyll/scholar/extras/bibliography_hdp.rb
+2
-1
lib/jekyll/scholar/extras/extra_utils.rb
lib/jekyll/scholar/extras/extra_utils.rb
+5
-5
samples/jekyll-template/_config.yml
samples/jekyll-template/_config.yml
+1
-1
samples/jekyll-template/_publications/test.bib
samples/jekyll-template/_publications/test.bib
+2
-0
No files found.
lib/jekyll/scholar/extras.rb
View file @
f9e5c5ee
require
'jekyll/scholar'
require
'jekyll/scholar/extras/extra_utils'
require
'jekyll/scholar/extras/bibliography_hdp'
require
'jekyll/scholar/extras/details_hdp'
lib/jekyll/scholar/extras/bibliography_hdp.rb
View file @
f9e5c5ee
...
...
@@ -3,6 +3,7 @@ module Jekyll
class
BibliographyHDPTag
<
Liquid
::
Tag
include
Scholar
::
Utilities
include
ScholarExtras
::
Utilities
def
initialize
(
tag_name
,
arguments
,
tokens
)
super
...
...
@@ -15,7 +16,7 @@ module Jekyll
set_context_to
context
year_section
=
''
references
=
entries
.
map
do
|
entry
|
references
=
public_
entries
.
map
do
|
entry
|
reference
=
''
ref
=
''
...
...
lib/jekyll/scholar/extras/extra_utils.rb
View file @
f9e5c5ee
module
Jekyll
class
Scholar
class
Scholar
Extras
module
Extra
Utilities
module
Utilities
attr_reader
:bibtex_file
,
:config
,
:site
...
...
@@ -17,9 +17,9 @@ module Jekyll
@bibliography
||=
BibTeX
.
open
(
bibtex_path
,
bibtex_options
)
end
def
entries_public
puts
'entries public only'
b
=
bibliography
[
config
[
'query'
]]
def
public_entries
b
=
bibliography
[
'@*[public!=no]'
]
#
b = bibliography[config['query']]
unless
config
[
'sort_by'
]
==
'none'
b
.
sort_by!
{
|
e
|
e
[
config
[
'sort_by'
]].
to_s
}
...
...
samples/jekyll-template/_config.yml
View file @
f9e5c5ee
...
...
@@ -29,4 +29,4 @@ scholar:
bibliography
:
test.bib
details_dir
:
./publications/details
details_layout
:
details.html
query
:
"
@*[public!=no]"
#
query: "@*[public!=no]"
samples/jekyll-template/_publications/test.bib
View file @
f9e5c5ee
...
...
@@ -29,6 +29,7 @@
pages
=
{674-681}
,
title
=
{commentary on action in perception}
,
volume
=
{76}
,
public
=
{yes}
,
year
=
{2008}
}
@article
{
martin:2008kl
,
...
...
@@ -42,5 +43,6 @@
pages
=
{674-681}
,
title
=
{commentary on action in perception}
,
volume
=
{76}
,
public
=
{no}
,
year
=
{2008}
}
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