File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/dotty/tools/dottydoc/staticsite Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ <!-- This page was last generated on {{ page.date | date: "%b-%d-%Y" }} -->
12<!DOCTYPE html>
23< html lang ="en ">
34 < head >
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ package staticsite
55import model .{ Entity , Package , NonEntity }
66
77import java .util .{ HashMap , List => JList , Map => JMap }
8+ import java .time .LocalDateTime
9+ import java .time .format .DateTimeFormatter
810import scala .collection .JavaConverters ._
911
1012case class DefaultParams (
@@ -58,7 +60,7 @@ case class DefaultParams(
5860 def withDate (d : String ) = copy(page = PageInfo (page.url, d))
5961}
6062
61- case class PageInfo (url : String , date : String = " " ) {
63+ case class PageInfo (url : String , date : String = LocalDateTime .now().format( DateTimeFormatter .ofPattern( " yyyy-MM-dd " )).toString ) {
6264 val path : Array [String ] = url.split('/' ).reverse.drop(1 )
6365}
6466
You can’t perform that action at this time.
0 commit comments