|
1 | 1 | {{ define "main" }} |
2 | 2 | <div class="curtain" aria-hidden="true"></div> |
3 | 3 | <article class="container o-single o-single--with-sidemenu"> |
4 | | - <div class="sidemenu"> |
| 4 | + <aside id="aside" class="o-aside"> |
5 | 5 | {{ partial "image" (partial "helper/contentImage" . ) }} |
6 | | - <aside id="aside" class="o-aside"> |
7 | | - <div class="o-single__container"> |
8 | | - <h3>{{ T "news-other" }}</h3> |
9 | | - <ul class="news-list"> |
10 | | - {{ $current := . }} |
11 | | - {{ range first 5 (where (where site.RegularPages "Section" "news") "Permalink" "ne" $current.Permalink) }} |
12 | | - <li> |
13 | | - {{ partial "internal_link" |
14 | | - (dict |
15 | | - "Destination" .RelPermalink |
16 | | - "Text" ((print (partial "icon" "newspaper" ) (.Title)) | .Page.RenderString) |
17 | | - ) |
18 | | - }} |
19 | | - <span class="news-date">({{ .Date | time.Format ":date_long"}})</span> |
20 | | - </li> |
21 | | - {{ end }} |
22 | | - </ul> |
23 | | - <hr> |
24 | | - {{ partial "link" |
25 | | - (dict |
26 | | - "Destination" (print .Site.Params.githubDevUrl "blob/main/content" .Path "/index." .Language ".md") |
27 | | - "Text" ((print (partial "icon" "edit_square" ) (T "editPage")) | .Page.RenderString) |
28 | | - ) |
29 | | - }} |
30 | | - </div> |
31 | | - </aside> |
32 | | - </div> |
| 6 | + <div class="o-single__container"> |
| 7 | + <h3 id="other-news-list-title">{{ T "news-other" }}</h3> |
| 8 | + <ul class="o-news__list" aria-labelledby="other-news-list-title"> |
| 9 | + {{ $current := . }} |
| 10 | + {{ range first 5 (where (where site.RegularPages "Section" "news") "Permalink" "ne" $current.Permalink) }} |
| 11 | + <li> |
| 12 | + {{ partial "internal_link" |
| 13 | + (dict |
| 14 | + "Destination" .RelPermalink |
| 15 | + "Text" ((print (partial "icon" "newspaper" ) (.Title)) | .Page.RenderString) |
| 16 | + ) |
| 17 | + }} |
| 18 | + <span class="o-news__list__date">{{ .Date | time.Format ":date_long"}}</span> |
| 19 | + </li> |
| 20 | + {{ end }} |
| 21 | + </ul> |
| 22 | + <hr> |
| 23 | + {{ partial "link" |
| 24 | + (dict |
| 25 | + "Destination" (print .Site.Params.githubDevUrl "blob/main/content" .Path "/index." .Language ".md") |
| 26 | + "Text" ((print (partial "icon" "edit_square" ) (T "editPage")) | .Page.RenderString) |
| 27 | + ) |
| 28 | + }} |
| 29 | + </div> |
| 30 | + </aside> |
33 | 31 | <div class="o-single__container content_with_heading" data-pagefind-body> |
34 | 32 | <div class="o-single__header"> |
35 | 33 | <h2 data-pagefind-meta="title">{{ .Title }}</h2> |
36 | 34 | {{ partial "updateDate.html" . }} |
37 | 35 | </div> |
| 36 | + <div class="o-single__news_image"> |
| 37 | + {{ partial "image" (partial "helper/contentImage" . ) }} |
| 38 | + </div> |
38 | 39 | <div data-pagefind-body> |
39 | 40 | {{ .Content }} |
40 | 41 | </div> |
|
0 commit comments