Skip to content

Commit 37a1435

Browse files
Rainbow flag (#237)
Remove bar and add a flag
1 parent c20dc8c commit 37a1435

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ aux_buttons:
4848
color: 'blue'
4949
icon: 'telegram'
5050
link: '//t.me/HackGPON'
51-
51+
5252
#aux_links:
5353
# "Hack GPON on GitHub":
5454
# - "//github.com/hack-gpon/hack-gpon.github.io"
@@ -141,3 +141,5 @@ defaults:
141141
path: "assets/**/*.pdf"
142142
values:
143143
sitemap: false
144+
145+
enable_rainbow: true

_layouts/default.html

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<html lang="{{ site.lang | default: 'en-US' }}">
88
{% include head.html %}
99
<body>
10+
{% if site.enable_rainbow == true %}
11+
<style>
12+
.rainbow-button {
13+
font-size: 150%;
14+
}
15+
.rainbow-button:hover {
16+
background-image: none;
17+
}
18+
</style>
19+
{% endif %}
1020
<a class="skip-to-main" href="#main-content">Skip to main content</a>
1121
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
1222
<symbol id="svg-link" viewBox="0 0 24 24">
@@ -46,17 +56,16 @@
4656
{% include icons/switch_color_scheme.html %}
4757
{% endif %}
4858
{% include icons/custom.html %}
49-
<style>
50-
.main-header, .site-header {
51-
border-bottom: 1px solid #eeebee;
52-
border-image: linear-gradient(90deg, white 0 7.69%, #ffa6b9 0 15.38%, #00d2ff 0 23.07%, #753000 0 30.76%, black 0 38.45%, #0000 0 46.14%, red 0 53.83%, orange 0 61.52%, yellow 0 76.9%, green 0 84.59%, blue 0 92.28%, indigo 0 100%) 10;
53-
}
54-
</style>
5559
</svg>
5660

5761
<div class="side-bar">
5862
<div class="site-header">
5963
<a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
64+
{% if site.enable_rainbow == true %}
65+
<a class="site-button rainbow-button" href="#">
66+
🏳️‍🌈
67+
</a>
68+
{% endif %}
6069
<a href="#" id="menu-button" class="site-button">
6170
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg>
6271
</a>
@@ -122,6 +131,13 @@
122131
</a>
123132
</li>
124133
{% endfor %}
134+
{% if site.enable_rainbow == true %}
135+
<li class="aux-nav-list-item">
136+
<a class="site-button rainbow-button" href="#">
137+
🏳️‍🌈
138+
</a>
139+
</li>
140+
{% endif %}
125141
{% if site.enable_switch_color_scheme == true %}
126142
<li class="aux-nav-list-item">
127143
<button class="site-button color-scheme-switch-theme-button">

0 commit comments

Comments
 (0)