We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e78a4 commit ff5d7acCopy full SHA for ff5d7ac
_plugins/last_modified_at.rb
@@ -21,15 +21,12 @@ def render(context)
21
if submodule_path
22
submodule_source = File.join(site_source, submodule_path)
23
submodule_repo = Git.open(submodule_source)
24
- log = submodule_repo.log.first
25
-
26
- #return log.date.strftime("%-d. %B %Y")
27
- # log = submodule_repo.log.path(script_path).first
28
- #if log
29
- #formatted_date = log.date.strftime("%-d. %B %Y")
30
- #return "#{formatted_date} by #{log.author.name} (#{log.author.email})"
31
- #end
32
+ log = submodule_repo.log.path(script_path).first
+
+ if log
+ formatted_date = log.date.strftime("%-d. %B %Y")
+ return "#{formatted_date} by #{log.author.name} (#{log.author.email})"
+ end
33
end
34
return "Ikke tilgængelig"
35
0 commit comments