File tree 8 files changed +60
-4
lines changed
8 files changed +60
-4
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
3
3
gem 'github-pages' , group : :jekyll_plugins
4
4
gem 'webrick'
5
-
5
+ gem 'jekyll-github-metadata'
Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ PLATFORMS
273
273
274
274
DEPENDENCIES
275
275
github-pages
276
+ jekyll-github-metadata
276
277
webrick
277
278
278
279
BUNDLED WITH
Original file line number Diff line number Diff line change 1
1
url : " https://expressjs.com"
2
2
baseurl : " /"
3
3
4
+ repository : expressjs/expressjs.com
5
+
4
6
# Site settings
5
7
6
8
defaults :
@@ -19,6 +21,7 @@ announcement: false # Enable or disable the announcements.
19
21
20
22
plugins :
21
23
- jekyll-redirect-from
24
+ - jekyll-github-metadata
22
25
23
26
highlighter : rouge
24
27
# library used for syntax highlighting
@@ -34,6 +37,3 @@ exclude:
34
37
- [uk/CHANGELOG.md]
35
38
- vendor/bundle
36
39
- node_modules/
37
-
38
-
39
- github : [metadata]
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ <h3 id="sidebar-heading" class="toc-heading"><em>On this page</em></h3>
16
16
</ nav >
17
17
< main >
18
18
{{ content }}
19
+ < a role ="button " class ="edit-github-btn " href ="{{ site.github.repository_url }}/tree/gh-pages/_includes/{{page.menu}}/en/3x " aria-label ="GitHub button ">
20
+ < span class ="hidden-dark ">
21
+ {% include icons/github-light.svg %}
22
+ </ span >
23
+ < span class ="hidden-light ">
24
+ {% include icons/github-dark.svg %}
25
+ </ span >
26
+ Edit this page</ a >
19
27
</ main >
20
28
</ div >
21
29
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ <h3 id="sidebar-heading" class="toc-heading"><em>On this page</em></h3>
16
16
</ nav >
17
17
< main >
18
18
{{ content }}
19
+ < a role ="button " class ="edit-github-btn " href ="{{ site.github.repository_url }}/tree/gh-pages/_includes/{{page.menu}}/en/4x " aria-label ="GitHub button ">
20
+ < span class ="hidden-dark ">
21
+ {% include icons/github-light.svg %}
22
+ </ span >
23
+ < span class ="hidden-light ">
24
+ {% include icons/github-dark.svg %}
25
+ </ span >
26
+ Edit this page</ a >
19
27
</ main >
20
28
</ div >
21
29
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ <h3 id="sidebar-heading" class="toc-heading"><em>On this page</em></h3>
16
16
</ nav >
17
17
< main >
18
18
{{ content }}
19
+ < a role ="button " class ="edit-github-btn " href ="{{ site.github.repository_url }}/tree/gh-pages/_includes/{{page.menu}}/en/5x " aria-label ="GitHub button ">
20
+ < span class ="hidden-dark ">
21
+ {% include icons/github-light.svg %}
22
+ </ span >
23
+ < span class ="hidden-light ">
24
+ {% include icons/github-dark.svg %}
25
+ </ span >
26
+ Edit this page</ a >
19
27
</ main >
20
28
</ div >
21
29
Original file line number Diff line number Diff line change 28
28
< div class ="content ">
29
29
< main >
30
30
{{ content }}
31
+ < a role ="button " class ="edit-github-btn " href ="{{ site.github.repository_url }}/edit/gh-pages/{{ page.path }} " aria-label ="GitHub button ">
32
+ < span class ="hidden-dark ">
33
+ {% include icons/github-light.svg %}
34
+ </ span >
35
+ < span class ="hidden-light ">
36
+ {% include icons/github-dark.svg %}
37
+ </ span >
38
+ Edit this page</ a >
31
39
</ main >
32
40
</ div >
33
41
{% endif %}
Original file line number Diff line number Diff line change @@ -557,6 +557,25 @@ html[xmlns] .clearfix {
557
557
color : var (--box-fg );
558
558
}
559
559
560
+ a .edit-github-btn {
561
+ display : flex;
562
+ gap : 0.5rem ;
563
+ align-items : center;
564
+ width : fit-content;
565
+ padding : 0.5rem ;
566
+ border-radius : 0.3rem ;
567
+
568
+ span {
569
+ height : 20px ;
570
+ }
571
+
572
+ & : is (: hover , : active , : focus ) {
573
+ color : var (--fg );
574
+ background-color : var (--hover-bg );
575
+ outline : 1px solid var (--card-fg );
576
+ }
577
+ }
578
+
560
579
# mobile-menu {
561
580
display : none;
562
581
position : relative;
@@ -1381,6 +1400,10 @@ strong.eol {
1381
1400
display : block;
1382
1401
}
1383
1402
1403
+ .hidden-light {
1404
+ display : none;
1405
+ }
1406
+
1384
1407
blockquote {
1385
1408
margin-left : 0 ;
1386
1409
font-weight : 600 ;
You can’t perform that action at this time.
0 commit comments