diff --git a/assets/ananke/css/custom.scss b/assets/ananke/css/custom.scss index 49a6885..9f70d41 100644 --- a/assets/ananke/css/custom.scss +++ b/assets/ananke/css/custom.scss @@ -541,7 +541,7 @@ section.section-container { } } - &#events { + &#co-events { position: relative; /* &:before { @@ -604,6 +604,18 @@ section.section-container { &.full-columns { grid-column: 1 / 3; } + label:after { + content: ':'; + } + } + } + &.is-en { + .event-container { + >div { + label:after { + content: ': '; + } + } } } } diff --git a/assets/ananke/css/page.scss b/assets/ananke/css/page.scss index 0995185..f8e0ced 100644 --- a/assets/ananke/css/page.scss +++ b/assets/ananke/css/page.scss @@ -71,6 +71,14 @@ body:not(.in-home) { } } } + div#co-events { + margin-top: 2em; + table { + td.nowrap { + white-space: nowrap; + } + } + } footer { color: $fontColorDark; } diff --git a/content/en/co-events.md b/content/en/co-events.md new file mode 100644 index 0000000..eb678d8 --- /dev/null +++ b/content/en/co-events.md @@ -0,0 +1,137 @@ +--- +title: Co-events +layout: co-events +home_desc: The co-events is available for public viewing via the link below. +link_slug: co-events +note: 请注意,目前活动列表尚处于草稿状态,后续会根据反馈进行最终确认。 +events: + - name: "端侧大模型:算法与芯片" + date_duration: "8月19日下午" + place: "线上" + organizer: "《半导体在线》、《蔻享学术》、《中国图象图形学报》等" + registration_method: "待更新" + - name: "中国峰会志愿者培训会(第一场)" + date_duration: "8月19日下午" + place: "珍珠2" + organizer: "RVSC组委会" + registration_method: "仅面向志愿者" + - name: "第三届开源EDA(OSEDA)论坛" + date_duration: "8月20日下午" + place: "紫荆2" + organizer: "北京开源芯片研究院" + registration_method: "待更新" + - name: "“一生一芯”助教大会" + date_duration: "8月20日全天" + organizer: "一生一芯" + registration_method: "仅面向助教" + - name: "中国峰会志愿者培训会(第二场)" + date_duration: "8月20日下午" + place: "珍珠2" + organizer: "RVSC组委会" + registration_method: "仅面向志愿者" + - name: "RV少年说" + date_duration: "8月20日全天" + place: "线上" + organizer: "sigRISCV.com 青少年视角的RISCV社区" + registration_method: "待更新" + - name: "第六届国产嵌入式操作系统技术与产业发展论坛" + date_duration: "8月20日全天" + place: "杭州" + organizer: "嵌入式系统联谊会-Embedded System Association" + registration_method: "待更新" + - name: "新一代AI应用场景中RISC-V的机遇与挑战" + date_duration: "8月21日下午" + place: "珍珠全" + organizer: "知合计算" + registration_method: "待更新" + - name: "新思科技RISC-V技术日" + date_duration: "8月21日下午" + place: "紫荆1" + organizer: "新思科技 Synopsys" + registration_method: "待更新" + - name: "第三届 硬件安全架构研讨会" + date_duration: "8月21日下午" + place: "紫荆2" + organizer: "浙江大学" + registration_method: "待更新" + - name: "第三届硬件敏捷开发与验证方法学研讨" + date_duration: "8月22日上午" + place: "珍珠1" + organizer: "达坦科技DatenLord" + registration_method: "待更新" + - name: "赛昉科技全场景RISC-V解决方案交流会" + date_duration: "8月22日上午" + place: "珍珠2" + organizer: "赛昉科技" + registration_method: "待更新" + - name: "RVEI工作会议(暂定名)" + date_duration: "8月22日上午" + place: "紫荆1" + organizer: "RVEI" + registration_method: "仅面向特定参会者开放" + - name: "RISC-V+AI国际人才暨开源技术与生态论坛" + date_duration: "8月22日上午" + place: "紫荆2" + organizer: "LF开源软件学园 (LFOSSA)" + registration_method: "仅面向特定参会者开放" + - name: "玄铁开发者日 含开发者体验" + date_duration: "8月22日下午" + place: "珍珠1" + organizer: "达摩院玄铁" + registration_method: "待更新" + - name: "RISC-V智算峰会" + date_duration: "8月22日下午" + place: "珍珠2" + organizer: "厦门算能科技有限公司" + registration_method: "待更新" + - name: "香山同期活动(含 Tutorial)" + date_duration: "8月22日下午" + place: "紫荆1" + organizer: "北京开源芯片研究院" + registration_method: "待更新" + - name: "RISC-V开源处理器芯片生态发展论坛" + date_duration: "8月22日下午" + place: "紫荆2" + organizer: "开芯院" + registration_method: "待更新" + - name: "openEuler RISC-V SIG 开发者日与杭州 Meetup" + date_duration: "8月23日上午" + place: "珍珠2" + organizer: "OERV" + registration_method: "待更新" + - name: "甲辰计划·开源实习生朝朝联合招聘会" + date_duration: "8月23日上午" + place: "紫荆1" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "甲辰计划·RISC-V 开发板现场随眼缘漂流" + date_duration: "8月23日上午" + place: "紫荆2" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "RVSPOC·RISC-V 软件移植与优化锦标赛选手交流会" + date_duration: "8月23日下午" + place: "珍珠1" + organizer: "苦芽科技" + registration_method: "不需要独立报名" + - name: "PLCT实验室西湖开放日与香山南湖笔记本展示会" + date_duration: "8月23日下午" + place: "珍珠2" + organizer: "PLCT实验室" + registration_method: "不需要独立报名" + - name: "甲辰计划·开源实习生暮暮联合招聘会" + date_duration: "8月23日下午" + place: "紫荆1" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "苦芽科技·KarsierOS 与RISC-V文档工程推广会" + date_duration: "8月23日下午" + place: "紫荆2" + organizer: "苦芽科技" + registration_method: "不需要独立报名" + - name: "2024 Hong Kong RISC-V Day" + date_duration: "8月24日全天" + place: "香港" + organizer: "LF开源软件学园 (LFOSSA)" + registration_method: "待更新" +--- diff --git a/content/en/events.md b/content/en/events.md deleted file mode 100644 index e9d36f7..0000000 --- a/content/en/events.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Co-events -tba: true -events: - - title: "balabala1" - image: "/img/example.jpg" - # image is optional - url: "https://example.com" - description: "description balabala" ---- diff --git a/content/zh/co-events.md b/content/zh/co-events.md new file mode 100644 index 0000000..8f2500f --- /dev/null +++ b/content/zh/co-events.md @@ -0,0 +1,137 @@ +--- +title: 同期活动 +layout: co-events +home_desc: 活动列表已公开,请点击下方链接查阅。 +link_slug: co-events +note: 请注意,目前活动列表尚处于草稿状态,后续会根据反馈进行最终确认。 +events: + - name: "端侧大模型:算法与芯片" + date_duration: "8月19日下午" + place: "线上" + organizer: "《半导体在线》、《蔻享学术》、《中国图象图形学报》等" + registration_method: "待更新" + - name: "中国峰会志愿者培训会(第一场)" + date_duration: "8月19日下午" + place: "珍珠2" + organizer: "RVSC组委会" + registration_method: "仅面向志愿者" + - name: "第三届开源EDA(OSEDA)论坛" + date_duration: "8月20日下午" + place: "紫荆2" + organizer: "北京开源芯片研究院" + registration_method: "待更新" + - name: "“一生一芯”助教大会" + date_duration: "8月20日全天" + organizer: "一生一芯" + registration_method: "仅面向助教" + - name: "中国峰会志愿者培训会(第二场)" + date_duration: "8月20日下午" + place: "珍珠2" + organizer: "RVSC组委会" + registration_method: "仅面向志愿者" + - name: "RV少年说" + date_duration: "8月20日全天" + place: "线上" + organizer: "sigRISCV.com 青少年视角的RISCV社区" + registration_method: "待更新" + - name: "第六届国产嵌入式操作系统技术与产业发展论坛" + date_duration: "8月20日全天" + place: "杭州" + organizer: "嵌入式系统联谊会-Embedded System Association" + registration_method: "待更新" + - name: "新一代AI应用场景中RISC-V的机遇与挑战" + date_duration: "8月21日下午" + place: "珍珠全" + organizer: "知合计算" + registration_method: "待更新" + - name: "新思科技RISC-V技术日" + date_duration: "8月21日下午" + place: "紫荆1" + organizer: "新思科技 Synopsys" + registration_method: "待更新" + - name: "第三届 硬件安全架构研讨会" + date_duration: "8月21日下午" + place: "紫荆2" + organizer: "浙江大学" + registration_method: "待更新" + - name: "第三届硬件敏捷开发与验证方法学研讨" + date_duration: "8月22日上午" + place: "珍珠1" + organizer: "达坦科技DatenLord" + registration_method: "待更新" + - name: "赛昉科技全场景RISC-V解决方案交流会" + date_duration: "8月22日上午" + place: "珍珠2" + organizer: "赛昉科技" + registration_method: "待更新" + - name: "RVEI工作会议(暂定名)" + date_duration: "8月22日上午" + place: "紫荆1" + organizer: "RVEI" + registration_method: "仅面向特定参会者开放" + - name: "RISC-V+AI国际人才暨开源技术与生态论坛" + date_duration: "8月22日上午" + place: "紫荆2" + organizer: "LF开源软件学园 (LFOSSA)" + registration_method: "仅面向特定参会者开放" + - name: "玄铁开发者日 含开发者体验" + date_duration: "8月22日下午" + place: "珍珠1" + organizer: "达摩院玄铁" + registration_method: "待更新" + - name: "RISC-V智算峰会" + date_duration: "8月22日下午" + place: "珍珠2" + organizer: "厦门算能科技有限公司" + registration_method: "待更新" + - name: "香山同期活动(含 Tutorial)" + date_duration: "8月22日下午" + place: "紫荆1" + organizer: "北京开源芯片研究院" + registration_method: "待更新" + - name: "RISC-V开源处理器芯片生态发展论坛" + date_duration: "8月22日下午" + place: "紫荆2" + organizer: "开芯院" + registration_method: "待更新" + - name: "openEuler RISC-V SIG 开发者日与杭州 Meetup" + date_duration: "8月23日上午" + place: "珍珠2" + organizer: "OERV" + registration_method: "待更新" + - name: "甲辰计划·开源实习生朝朝联合招聘会" + date_duration: "8月23日上午" + place: "紫荆1" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "甲辰计划·RISC-V 开发板现场随眼缘漂流" + date_duration: "8月23日上午" + place: "紫荆2" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "RVSPOC·RISC-V 软件移植与优化锦标赛选手交流会" + date_duration: "8月23日下午" + place: "珍珠1" + organizer: "苦芽科技" + registration_method: "不需要独立报名" + - name: "PLCT实验室西湖开放日与香山南湖笔记本展示会" + date_duration: "8月23日下午" + place: "珍珠2" + organizer: "PLCT实验室" + registration_method: "不需要独立报名" + - name: "甲辰计划·开源实习生暮暮联合招聘会" + date_duration: "8月23日下午" + place: "紫荆1" + organizer: "甲辰计划" + registration_method: "不需要独立报名" + - name: "苦芽科技·KarsierOS 与RISC-V文档工程推广会" + date_duration: "8月23日下午" + place: "紫荆2" + organizer: "苦芽科技" + registration_method: "不需要独立报名" + - name: "2024 Hong Kong RISC-V Day" + date_duration: "8月24日全天" + place: "香港" + organizer: "LF开源软件学园 (LFOSSA)" + registration_method: "待更新" +--- diff --git a/content/zh/events.md b/content/zh/events.md deleted file mode 100644 index 466e528..0000000 --- a/content/zh/events.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: 同期活动 -tba: true -events: - - title: "balabala1" - image: "/img/example.jpg" - # image is optional - url: "https://example.com" - description: "description balabala" ---- diff --git a/hugo.toml b/hugo.toml index 1d5ebc2..4c63d7b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -84,7 +84,7 @@ defaultContentLanguageInSubdir = false weight = 15 [[languages.zh.menu.main]] name = "同期活动" - url = "#events" + url = "#co-events" weight = 20 [[languages.zh.menu.main]] name = "大会议程" @@ -157,7 +157,7 @@ defaultContentLanguageInSubdir = false weight = 15 [[languages.en.menu.main]] name = "Co-events" - url = "#events" + url = "#co-events" weight = 20 [[languages.en.menu.main]] name = "Agenda" diff --git a/layouts/page/co-events.html b/layouts/page/co-events.html new file mode 100644 index 0000000..5216daf --- /dev/null +++ b/layouts/page/co-events.html @@ -0,0 +1,48 @@ +{{ define "header" }} + {{/* We can override any block in the baseof file be defining it in the template */}} + {{ partial "page-header.html" . }} +{{ end }} + +{{ define "main" }} +
+
+

+ {{- .Title -}} +

+
+
+ {{ .Content | markdownify | emojify | safeHTML }} +
+ {{- with .Site.GetPage "co-events" }} +
+

{{ .Params.note }}

+ + + + + + + + + + + + + + {{ range .Params.events }} + + + + + + + + + + {{ end }} + +
{{ i18n "co_event_date_duration" | default "日期" }}{{ i18n "co_event_place" | default "场地" }}{{ i18n "co_event_name" | default "活动名" }}{{ i18n "co_event_organizer" | default "组织方" }}{{ i18n "co_event_registration_method" | default "报名渠道" }}{{ i18n "co_event_website" | default "官网" }}{{ i18n "co_event_remarks" | default "备注说明" }}
{{ .date_duration }}{{ .place }}{{ .name }}{{ .organizer }}{{ .registration_method | markdownify | emojify | safeHTML }}{{ .website | markdownify | emojify | safeHTML }}{{ .remarks | markdownify | emojify | safeHTML }}
+
+ {{- end }} +
+{{ end }} diff --git a/layouts/partials/index-sections/events.html b/layouts/partials/index-sections/events.html index 1ba7e93..2139d9d 100644 --- a/layouts/partials/index-sections/events.html +++ b/layouts/partials/index-sections/events.html @@ -1,8 +1,9 @@ -{{- with .Site.GetPage "events" }} +{{- with .Site.GetPage "co-events" }} {{- $leftImg := true }} -
+

{{ .Title | markdownify | emojify }}

+ + {{ if .Params.home_desc }} +
+

{{ .Params.home_desc | markdownify | emojify | safeHTML }}

+
+ {{ end }} + {{ if .Params.link_slug }} + {{ i18n "details" | default "点击查阅详情" }} + {{ end }}
{{ if .Params.tba }} {{ partial "partials/tba-section.html" . }}