File tree 3 files changed +22
-1
lines changed
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,12 @@ def generate_command_table():
107
107
108
108
out = (template
109
109
.replace ("{{CONTENT}}" , content )
110
- .replace ("{{NAV_MENU}}" , generate_nav (md .toc_tokens ))
110
+ .replace ("{{NAV_MENU}}" , generate_nav (md .toc_tokens ) + """
111
+ <div id='nav-links'>
112
+ <a href="https://github.com/p2sr/rules" target="_blank" class="fa-brands fa-github"></a>
113
+ <a href="https://discord.com/invite/hRwE4Zr" target="_blank" class="fa-brands fa-discord"></a>
114
+ </div>
115
+ """ )
111
116
.replace ("{{COMMAND_LIST}}" , generate_command_table ())
112
117
)
113
118
Original file line number Diff line number Diff line change 42
42
overscroll-behavior : none;
43
43
}
44
44
45
+ /* FIXME: Maybe push these links to the bottom of the screen if we have space on desktop? */
46
+ # nav-links {
47
+ position : relative;
48
+ width : 100% ;
49
+ margin-top : 0.3em ;
50
+ text-align : center;
51
+ font-size : 2em ;
52
+ }
53
+
54
+ # nav-links a {
55
+ color : inherit;
56
+ padding : 0.2em 0.5em ;
57
+ margin : auto;
58
+ }
59
+
45
60
nav img {
46
61
float : left;
47
62
padding-right : 1em ;
Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< title > Portal 2 Rules</ title >
8
8
< link rel ="stylesheet " href ="style.css " type ="text/css ">
9
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css " type ="text/css ">
9
10
< link rel ="icon " type ="image/png " href ="https://avatars.githubusercontent.com/u/83299896 " />
10
11
</ head >
11
12
You can’t perform that action at this time.
0 commit comments