Skip to content

Commit cbb4188

Browse files
committed
edit new's layout
1 parent c5f4256 commit cbb4188

11 files changed

Lines changed: 169 additions & 5 deletions

File tree

content/post/1/featured.jpg

73.6 KB
Loading

content/post/2/featured.jpg

75.4 KB
Loading

content/post/3/featured.jpg

1.69 MB
Loading

content/post/4/featured.jpg

110 KB
Loading

content/post/5/featured.jpg

255 KB
Loading

content/post/5/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ date: 2025-06-16
66

77
  由大连理工大学承办的自然语言处理青年学者研讨会(YSSNLP 2025)于2025年6月13日至16日在美丽的海滨城市——辽宁省大连市隆重召开。众多NLP领域的知名专家和优秀青年学者汇聚一堂,围绕自然语言处理当前的热点与难点问题展开了深入讨论与交流。课题组苏劲松老师、张庆刚老师、李辉博士后、王安特同学和操佳俊同学参加了此次学术盛会。
88
<figure>
9-
<img src="1.jpg" alt="课题组及与会青年学者合影">
9+
<img src="1.jpg" alt="课题组及与会青年学者合影" style="width: 66.6%;">
1010
<figcaption style="text-align: center;">课题组及与会青年学者合影</figcaption>
1111
</figure>
1212

@@ -16,7 +16,7 @@ date: 2025-06-16
1616
&emsp;&emsp;会议期间,各项议程顺利进行,与会学者就大模型技术发展、多模态技术、知识增强、信息抽取、智能体等前沿议题分享了真知灼见,交流氛围热烈,充分展现了领域的最新进展与蓬勃活力。课题组助理教授张庆刚受邀在“青年学者思想秀”环节做了题为“基于图结构的大模型知识增强”的精彩报告;博士研究生王安特也在海报展示环节介绍了其研究工作,均成功展示了本课题组在相关方向的最新科研成果,获得了与会同行的积极关注。
1717

1818
<figure>
19-
<img src="2.jpg" alt="课题组助理教授张庆刚在青年学者思想秀上分享工作">
19+
<img src="2.jpg" alt="课题组助理教授张庆刚在青年学者思想秀上分享工作" style="width: 66.6%;">
2020
<figcaption style="text-align: center;">课题组助理教授张庆刚在青年学者思想秀上分享工作</figcaption>
2121
</figure>
2222

content/post/6/featured.png

841 KB
Loading

content/post/6/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ date: 2025-06-21
77
&emsp;&emsp;凤凰花开骊歌起,凌云木成始道别。近日,我课题组2025届1名博士生与6名硕士生圆满完成学位论文答辩,为在厦大校园的求学历程书写下精彩终章。
88

99
<figure>
10-
<img src="1.png" alt="苏劲松老师与博士毕业生王安特同学合影">
10+
<img src="1.png" alt="苏劲松老师与博士毕业生王安特同学合影" style="width: 66.6%;">
1111
<figcaption style="text-align: center;">苏劲松老师与博士毕业生王安特同学合影</figcaption>
1212
</figure>
1313
<figure>
14-
<img src="2.png" alt="2025届硕士毕业生于益海嘉里楼合影">
14+
<img src="2.png" alt="2025届硕士毕业生于益海嘉里楼合影" style="width: 66.6%;">
1515
<figcaption style="text-align: center;">2025届硕士毕业生于益海嘉里楼合影</figcaption>
1616
</figure>
1717
&emsp;&emsp;本届毕业生学术成果斐然,累计在Artificial Intelligence、ACL、AAAI等人工智能领域权威期刊和会议发表论文十余篇,斩获国家发明专利多项。而今英才辈出,各展宏图:王安特博士将赴清华智能产业研究院开展博士后研究工作;硕士生中,黄健亨赴北大中文系攻读博士学位,蓝志彬获本校转博资格,邵良颖就职阿里国际,宋佳就职小米集团,余嘉炜就职科大讯飞,岳皓加入国家电网。

layouts/partials/page_header.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{{ $page := . }}
2+
{{ $featured := partial "blox-core/functions/get_featured_image.html" $page }}
3+
4+
{{ $anchor := $page.Params.image.focal_point | default "Smart" }}
5+
6+
{{/* Set default titles for node pages */}}
7+
{{ $title := .Title }}
8+
{{ if and (not $title) .IsNode }}
9+
{{ if eq .Type "post" }}
10+
{{ $title = i18n "posts" }}
11+
{{ else if eq .Type "event" }}
12+
{{ $title = i18n "talks" }}
13+
{{ else if eq .Type "publication" }}
14+
{{ $title = i18n "publications" }}
15+
{{end}}
16+
{{end}}
17+
18+
{{/* Banner image */}}
19+
{{ if and .Params.banner.image (not (and $featured (not .Params.image.preview_only))) }}
20+
<div class="article-header">
21+
{{- $img := "" -}}
22+
{{ $alt := (.Params.banner.caption | default "") | plainify }}
23+
{{ $destination := .Params.banner.image }}
24+
{{ $is_remote := strings.HasPrefix $destination "http" }}
25+
{{- if not $is_remote -}}
26+
{{- $img = (.Page.Resources.ByType "image").GetMatch $destination -}}
27+
{{- if not $img -}}
28+
{{- $img = resources.Get (path.Join "media" $destination) -}}
29+
{{- end -}}
30+
{{- end -}}
31+
{{ if $img }}
32+
<img src="{{$img.RelPermalink}}" width="{{$img.Width}}" height="{{$img.Height}}" class="article-banner" alt="{{$alt}}">
33+
{{ else }}
34+
<img src="{{ .Params.banner.image }}" class="article-banner" alt="{{$alt}}">
35+
{{ end }}
36+
37+
{{ with .Params.banner.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
38+
</div>
39+
{{end}}
40+
41+
{{/* Featured image layout */}}
42+
{{ if and $featured (not .Params.image.preview_only) }}
43+
44+
{{/* Fit image within max size. */}}
45+
{{ $image := $featured }}
46+
47+
{{/* Determine image placement. */}}
48+
{{ $placement := .Params.image.placement | default 1 }}{{/* Default to full column width. */}}
49+
{{/* Fit image to container's max width */}}
50+
{{ $image_container := "" }}
51+
{{ if eq $placement 2}}
52+
{{ $image_container = "container" }}
53+
{{ $image = $featured.Fit "1200x2500" }}
54+
{{else if eq $placement 3}}
55+
{{ $image_container = "container-fluid" }}
56+
{{ $image := $featured.Fit "2560x2560" }}
57+
{{else}}
58+
{{ $image_container = "article-container" }}
59+
{{ $image = $featured.Fit "720x2500" }}
60+
{{end}}
61+
{{ if ne $image.MediaType.SubType "gif" }}{{ $image = $image.Process "webp" }}{{ end }}
62+
63+
<div class="article-container pt-3" style="text-align: center;">
64+
<h1>{{ $title }}</h1>
65+
66+
{{ with $page.Params.subtitle }}
67+
<p class="page-subtitle">{{ . | markdownify | emojify }}</p>
68+
{{end}}
69+
70+
{{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }}
71+
{{ partial "page_links_div.html" $page }}
72+
</div>
73+
74+
{{/* Featured image */}}
75+
76+
{{else}}
77+
{{/* Case when page has no image */}}
78+
79+
{{/* Wider container for nodes */}}
80+
{{ $ctnr := "article-container" }}
81+
{{ if $page.IsNode }}
82+
{{ $ctnr = "universal-wrapper" }}
83+
{{end}}
84+
<div class="{{$ctnr}} pt-3" style="text-align: center;">
85+
<h1>{{ $title }}</h1>
86+
87+
{{ with $page.Params.subtitle }}
88+
<p class="page-subtitle">{{ . | markdownify | emojify }}</p>
89+
{{end}}
90+
91+
{{ if not .IsNode }}
92+
{{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }}
93+
{{ partial "page_links_div.html" $page }}
94+
{{end}}
95+
</div>
96+
{{end}}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{{ $is_list := .is_list }}
2+
{{ $page := .page }}
3+
4+
<div class="article-metadata">
5+
6+
{{/* If `authors` is set and is not empty. */}}
7+
{{ if $page.Params.authors }}
8+
{{ $authorLen := len $page.Params.authors }}
9+
{{ if gt $authorLen 0 }}
10+
<div>
11+
{{ partial "page_metadata_authors" $page }}
12+
</div>
13+
{{ end }}
14+
{{ end }}
15+
16+
{{ if not (in (slice "event" "page") $page.Type) | and (ne $page.Params.show_date false) }}
17+
<span class="article-date">
18+
{{ $date := $page.Lastmod | time.Format site.Params.locale.date_format }}
19+
{{ if eq $page.Type "publication" }}
20+
{{ $date = $page.Date | time.Format (site.Params.publications.date_format | default "January, 2006") }}
21+
{{ else }}
22+
{{ if ne $page.Params.Lastmod $page.Params.Date }}
23+
{{ i18n "last_updated" }}
24+
{{ end }}
25+
{{ end }}
26+
{{ $date }}
27+
</span>
28+
{{ end }}
29+
30+
{{ if and (eq $is_list 1) (eq $page.Type "publication") }}
31+
<span class="middot-divider"></span>
32+
<span class="pub-publication">
33+
{{ if $page.Params.publication_short }}
34+
{{ $page.Params.publication_short | markdownify }}
35+
{{ else if $page.Params.publication }}
36+
{{ $page.Params.publication | markdownify }}
37+
{{ end }}
38+
</span>
39+
{{ end }}
40+
41+
{{ if and (eq $page.Type "post") (not (or (eq site.Params.reading_time false) (eq $page.Params.reading_time false))) }}
42+
<span class="middot-divider"></span>
43+
<span class="article-reading-time">
44+
{{ $page.ReadingTime }} {{ i18n "minute_read" }}
45+
</span>
46+
{{ end }}
47+
48+
{{/* Show Disqus comment count if enabled. */}}
49+
{{ $comments_provider := trim (site.Params.features.comment.provider | lower) " " }}
50+
{{ $commentable_page := $page.Params.commentable }}
51+
{{ if (eq $comments_provider "disqus") | and (site.Params.features.comment.disqus.show_count | default true) | and $commentable_page }}
52+
<span class="middot-divider"></span>
53+
<a href="{{ $page.RelPermalink }}#disqus_thread"><!-- Count will be inserted here --></a>
54+
{{ end}}
55+
56+
{{ $taxonomy := "categories" }}
57+
{{ if $page.Param $taxonomy }}
58+
<span class="middot-divider"></span>
59+
<span class="article-categories">
60+
<i class="fas fa-folder mr-1"></i>
61+
{{- range $index, $value := ($page.GetTerms $taxonomy) -}}
62+
{{- if gt $index 0 }}, {{ end -}}
63+
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
64+
{{- end -}}
65+
</span>
66+
{{ end }}
67+
68+
</div>

0 commit comments

Comments
 (0)