Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Planet KDE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Websites
Planet KDE
Commits
35881c58
Verified
Commit
35881c58
authored
Jun 02, 2020
by
Carl Schwan
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use updated if published is not present
parent
352e278d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
bin/jekyll-planet.rb
bin/jekyll-planet.rb
+7
-1
No files found.
bin/jekyll-planet.rb
View file @
35881c58
...
@@ -20,7 +20,13 @@ def run( args )
...
@@ -20,7 +20,13 @@ def run( args )
Pluto
.
connect
(
@db_config
)
Pluto
.
connect
(
@db_config
)
Pluto
::
Model
::
Item
.
latest
.
where
.
not
(
title:
''
,
published:
nil
).
limit
(
1000
).
each_with_index
do
|
item
,
i
|
Pluto
::
Model
::
Item
.
latest
.
where
.
not
(
title:
''
).
limit
(
1000
).
each_with_index
do
|
item
,
i
|
if
item
.
published
==
nil
and
item
.
updated
==
nil
next
end
if
item
.
published
==
nil
and
item
.
updated
!=
nil
item
.
published
=
item
.
updated
end
puts
"[
#{
i
+
1
}
]
#{
item
.
title
}
"
puts
"[
#{
i
+
1
}
]
#{
item
.
title
}
"
generate_blog_post
(
item
)
generate_blog_post
(
item
)
...
...
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