Skip to content

Commit c5fb042

Browse files
committed
add top page link
1 parent 8f82788 commit c5fb042

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

_layouts/default.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{%- include head.html -%}
5+
6+
<body>
7+
8+
{%- include header.html -%}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{% if page.url != '/' %}
17+
<div class="return-top-container">
18+
<p><a href="{{ site.baseurl }}/" class="return-top-link">回到「5分鐘快速上手 Redmine」文章列表</a></p>
19+
</div>
20+
{% endif %}
21+
22+
{%- include footer.html -%}
23+
24+
</body>
25+
26+
</html>

assets/css/style.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,22 @@
55
@import
66
"minima/skins/{{ site.minima.skin | default: 'classic' }}",
77
"minima/initialize";
8+
9+
/* return top page link container */
10+
.return-top-container {
11+
text-align: center;
12+
}
13+
14+
/* return top page link */
15+
.return-top-link {
16+
display: inline-block;
17+
padding: 10px 20px;
18+
background-color: #e67e22;
19+
color: white;
20+
text-align: center;
21+
text-decoration: none;
22+
border-radius: 25px;
23+
font-size: 1rem;
24+
font-weight: bold;
25+
transition: background-color 0.3s ease;
26+
}

0 commit comments

Comments
 (0)