Skip to content

Commit

Permalink
Merge pull request #6 from ywh555hhh/main
Browse files Browse the repository at this point in the history
Add the button and Update the Chinese and English translations for viewAllEvent button
  • Loading branch information
bartdong authored Sep 30, 2024
2 parents 8ff9e96 + aa3ebf0 commit e9cf46a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions i18n/cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
translation: 最新活动
- id: readMore
translation: 阅读更多
- id: viewAllPost
translation: 查看所有
- id: viewAllevent
translation: 所有活动
- id: share
translation: 分享
- id: aboutAuthor
Expand Down
4 changes: 2 additions & 2 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
translation: Latest Event
- id: readMore
translation: Read more
- id: viewAllPost
translation: View All Post
- id: viewAllevent
translation: View All Events
- id: share
translation: Share
- id: aboutAuthor
Expand Down
10 changes: 6 additions & 4 deletions themes/meghna-hugo/layouts/partials/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
{{"<!-- section title --> " | safeHTML}}
<div class="wow fadeIn" data-wow-duration="500ms">
<p class="basic_title"> {{ with i18n "eventTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span>
{{ with i18n "eventTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></p>
{{ with i18n "eventTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></p>
</div>
<div class="row">
{{"<!-- /section title --> " | safeHTML}}
{{ range first 2 (where site.RegularPages "Section" "==" "event")}}
{{ .Render "article"}}
{{ end }}
<!-- <div class="all-post text-center col-lg-12">-->
<!-- <a class="btn btn-main" href="{{ `event/` | absLangURL }}">{{ i18n "viewAllPost" }}</a>-->
<!-- </div>-->

<!-- 添加“显示更多活动”按钮 -->
<div class="all-post text-center col-lg-12">
<a class="btn btn-main" href="{{ `event/` | absLangURL }}">{{ i18n "viewAllevent" }}</a>
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit e9cf46a

Please sign in to comment.