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
e56c9c20
Commit
e56c9c20
authored
Feb 01, 2016
by
Patrick de Kok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made a single reader
parent
85b160dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+11
-3
No files found.
lib/jekyll/scholar/utilities.rb
View file @
e56c9c20
...
...
@@ -202,10 +202,18 @@ module Jekyll
.
flatten
end
def
group?
(
group_by
.
nil?
&&
config
[
'group_by'
]
!=
'none'
)
||
(
!
group_by
.
nil?
&&
group_by
!=
'none'
)
def
group_by
if
group_by
.
nil?
||
group_by
.
empty?
@group_by
=
config
[
'group_by'
]
else
@group_by
=
'none'
end
end
def
group?
group_by
!=
'none'
end
def
group
(
ungrouped
)
def
grouper
(
items
,
keys
,
order
)
groups
=
items
...
...
@@ -226,7 +234,7 @@ module Jekyll
def
group_keys
return
@group_keys
unless
@group_keys
.
nil?
@group_keys
=
Array
(
(
group_by
.
nil?
||
group_by
.
empty?
)
?
config
[
'group_by'
]
:
group_by
)
@group_keys
=
Array
(
group_by
)
.
map
{
|
key
|
key
.
to_s
.
split
(
/\s*,\s*/
)
}
.
flatten
.
map
{
|
key
|
key
==
'month'
?
'month_numeric'
:
key
}
...
...
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