1+ {% capture TopLeftMenu %}
2+ {{page.menu.TopLeft}}
3+ {{site.menu.TopLeft}}
4+ {{site.data.menu.TopLeft}}
5+ {% endcapture %}
6+ {% assign TopLeftMenu = TopLeftMenu | strip %}
7+
8+ {% capture TopRightMenu %}
9+ {{page.menu.TopRight}}
10+ {{site.menu.TopRight}}
11+ {{site.data.menu.TopRight}}
12+ {% unless site.NoGitHubLink or site.NoLink %}
13+ {% include GitHubLink.html %}
14+ {% endunless %}
15+ {% endcapture %}
16+ {% assign TopRightMenu = TopRightMenu | strip %}
17+
18+ {% capture TopCenterMenu %}
19+ {{page.menu.TopCenter}}
20+ {{site.menu.TopCenter}}
21+ {{site.data.menu.TopCenter}}
22+ {% endcapture %}
23+ {% assign TopCenterMenu = TopCenterMenu | strip %}
24+
25+ {% capture BottomLeftMenu %}
26+ {{page.menu.BottomLeft}}
27+ {{site.menu.BottomLeft}}
28+ {{site.data.menu.BottomLeft}}
29+ {% endcapture %}
30+ {% assign BottomLeftMenu = BottomLeftMenu | strip %}
31+
32+ {% capture BottomRightMenu %}
33+ {{page.menu.BottomRight}}
34+ {{site.menu.BottomRight}}
35+ {{site.data.menu.BottomRight}}
36+ {% endcapture %}
37+ {% assign BottomRightMenu = BottomRightMenu | strip %}
38+
39+ {% capture BottomCenterMenu %}
40+ {{page.menu.BottomCenter}}
41+ {{site.menu.BottomCenter}}
42+ {{site.data.menu.BottomCenter}}
43+ {% endcapture %}
44+ {% assign BottomCenterMenu = BottomCenterMenu | strip %}
45+
46+ {% capture LeftCenterMenu %}
47+ {{page.menu.LeftCenter}}
48+ {{site.menu.LeftCenter}}
49+ {{site.data.menu.LeftCenter}}
50+ {% endcapture %}
51+ {% assign LeftCenterMenu = LeftCenterMenu | strip %}
52+
53+ {% capture RightCenterMenu %}
54+ {{page.menu.RightCenter}}
55+ {{site.menu.RightCenter}}
56+ {{site.data.menu.RightCenter}}
57+ {% endcapture %}
58+ {% assign RightCenterMenu = RightCenterMenu | strip %}
59+
60+ {% if TopLeftMenu or TopRightMenu or TopCenterMenu or BottomLeftMenu or BottomRightMenu or BottomCenterMenu or LeftCenterMenu or RightCenterMenu %}
61+ < style >
62+ /* Menu Styles */
63+ menu {
64+ z-index : 100 ;
65+ position : fixed;
66+ display : float;
67+ margin : 1em ;
68+ }
69+ menu [class ~= Left ] {
70+ left : 0 ;
71+ text-align : left;
72+ }
73+ menu [class ~= Right ] {
74+ right : 0 ;
75+ text-align : right;
76+ }
77+ menu [class ~= Top ] {
78+ top : 0 ;
79+ }
80+ menu [class ~= Bottom ] {
81+ bottom : 0 ;
82+ }
83+ menu [class ~= Center ] {
84+ text-align : center;
85+ }
86+ .Top .Center {
87+ width : 100% ;
88+ }
89+ .Left .Center {
90+ height : 100% ;
91+ }
92+ .Right .Center {
93+ height : 100% ;
94+ }
95+ .Bottom .Center {
96+ width : 100% ;
97+ }
98+ </ style >
99+ {% endif %}
100+
101+ {% if TopLeftMenu != "" %}
102+ < menu class ='Top Left '>
103+ {{TopLeftMenu}}
104+ </ menu >
105+ {% endif %}
106+
107+ {% if TopRightMenu != "" %}
108+ < menu class ='Top Right '>
109+ {{TopRightMenu}}
110+ </ menu >
111+ {% endif %}
112+
113+ {% if TopCenterMenu != "" %}
114+ < menu class ='Top Center '>
115+ {{TopCenterMenu}}
116+ </ menu >
117+ {% endif %}
118+
119+ {% if BottomLeftMenu != "" %}
120+ < menu class ='Bottom Left '>
121+ {{BottomLeftMenu}}
122+ </ menu >
123+ {% endif %}
124+
125+ {% if BottomRightMenu != "" %}
126+ < menu class ='Bottom Right '>
127+ {{BottomRightMenu}}
128+ </ menu >
129+ {% endif %}
130+
131+ {% if BottomCenterMenu != "" %}
132+ < menu class ='Bottom Center '>
133+ {{BottomCenterMenu}}
134+ </ menu >
135+ {% endif %}
136+
137+ {% if LeftCenterMenu != "" %}
138+ < menu class ='Left Center '>
139+ {{LeftCenterMenu}}
140+ </ menu >
141+ {% endif %}
142+
143+ {% if RightCenterMenu != "" %}
144+ < menu class ='Right Center '>
145+ {{RightCenterMenu}}
146+ </ menu >
147+ {% endif %}
0 commit comments