diff --git a/layouts/events/list.html b/layouts/events/list.html index c378ab3..0695a4c 100644 --- a/layouts/events/list.html +++ b/layouts/events/list.html @@ -10,64 +10,81 @@

{{ .Params.title | safeHTML }}

- {{ range .Data.Pages }} + {{ $paginator := .Paginate .Data.Pages 8 }} + {{ range $paginator.Pages }} -
- - {{ $date := .Params.date | time }} - {{ $formattedDate := $date.Format "Jan 02, 2006 3:04 pm" }} + {{ $date := .Params.date | time }} + {{ $formattedDate := $date.Format "Jan 02, 2006 3:04 pm" }} -
- -

- - {{ .Params.title }} - -

-

- - {{ $formattedDate }} UTC+8 -

- {{ with .Params.location }} -

- - {{ . }} -

- {{ end }} - {{ with .Params.onlineLink }} +
+ +

+ + {{ .Params.title }} + +

+

+ + {{ $formattedDate }} UTC+8 +

+ {{ with .Params.location }}

- - online meeting + + {{ . }}

- {{ end }} -

{{ .Params.abstract | replaceRE "\n" "
" | safeHTML }}

+ {{ end }} + {{ with .Params.onlineLink }} +

+ + online meeting +

+ {{ end }} +

{{ .Params.abstract | replaceRE "\n" "
" | safeHTML }}

-
-
+
+ + + {{ end }} + - {{ end }} +
diff --git a/static/css/style6Events.css b/static/css/style6Events.css index a2f0eb0..afd9938 100644 --- a/static/css/style6Events.css +++ b/static/css/style6Events.css @@ -108,5 +108,34 @@ table th, table td { } - + /* 分页导航样式 */ +.pagination ul { + list-style: none; + display: flex; + justify-content: center; + padding: 0; +} + +.pagination li { + margin: 0 5px; +} + +.pagination a { + text-decoration: none; + color: #333; + padding: 5px 10px; + border: 1px solid #ccc; + border-radius: 3px; +} + +.pagination a.active { + background-color: #007bff; + color: #fff; + border-color: #007bff; +} + +.pagination a:hover { + background-color: #ddd; +} + \ No newline at end of file