Skip to content

Commit 975496b

Browse files
committed
Clean up site layout, mario staff, add events and about page
1 parent 6516e8d commit 975496b

23 files changed

Lines changed: 365 additions & 119 deletions

.gitattributes

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Normalize line endings to LF in the repo.
2+
# Windows checkouts can still get CRLF locally via core.autocrlf=true.
3+
* text=auto eol=lf
4+
5+
# Explicit text (helps git detect on edge cases)
6+
*.html text
7+
*.md text
8+
*.markdown text
9+
*.css text
10+
*.scss text
11+
*.sass text
12+
*.js text
13+
*.json text
14+
*.yml text
15+
*.yaml text
16+
*.rb text
17+
*.rake text
18+
*.xml text
19+
*.svg text
20+
*.txt text
21+
Gemfile text
22+
Rakefile text
23+
Gemfile.lock text
24+
25+
# Binary assets
26+
*.png binary
27+
*.jpg binary
28+
*.jpeg binary
29+
*.gif binary
30+
*.ico binary
31+
*.pdf binary
32+
*.zip binary
33+
*.gz binary
34+
*.eot binary
35+
*.ttf binary
36+
*.woff binary
37+
*.woff2 binary
38+
*.sketch binary
39+
*.psd binary
40+
*.ai binary

_collections/members/ME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Mario Ezra
33
gravatar: 981b6097b229cee905f00a3d84d392b5
4-
organizer: false
4+
organizer: true
55
members-quilt: false
66
profiles:
77
github: thetest3r

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: "An online community of tech enthusiasts in and around Chattanooga,
55
url: "https://devanooga.com"
66
github_username: devanooga
77
logo: /images/devanooga_logo_red.png
8+
image: /images/devanooga_logo_red.png
89
pagination: 5
910
excerpt_separator: "<!--excerpt-->"
1011

@@ -42,9 +43,10 @@ twitter:
4243
social:
4344
name: devanooga
4445
links:
45-
- https://twitter.com/devanooga
46+
- https://x.com/devanooga
4647
- https://github.com/devanooga
4748
- https://www.reddit.com/r/devanooga/
49+
- https://forums.devanooga.com/
4850

4951
sass:
5052
style: compressed

_data/navigation.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Top-level navigation structure.
2+
# `url` makes the item a plain link.
3+
# `children` makes the item a submenu (parent label is not a link).
4+
- title: Slack
5+
url: /slack/
6+
- title: Forums
7+
url: https://forums.devanooga.com/
8+
- title: Blog
9+
url: /blog/
10+
- title: Community
11+
children:
12+
- title: Members
13+
url: /members/
14+
- title: Projects
15+
url: /projects/
16+
- title: Events
17+
url: /events/
18+
- title: Outreach
19+
url: /outreach/
20+
- title: Channels
21+
url: /channels/
22+
- title: About
23+
children:
24+
- title: About
25+
url: /about/
26+
- title: Code of Conduct
27+
url: /code-of-conduct/
28+
- title: Radio Freqs
29+
url: /radio-freqs/
30+
- title: Contact
31+
url: /contact/

_includes/announcement.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<aside class="announcement">
22
<h2>
3-
The devanooga hacknights are currently held on our Discord server (Join
4-
<a href="/slack/">our Slack</a> to learn more), they're fairly random so
5-
keep an ear out in #hacknight! We're also eyeballing a space to have
6-
in-person hacknights again so if you know of any let us know!
3+
<a href="/slack/">Slack</a> is our main hangout. We also run a
4+
<a href="/forums/">forum</a> for longer-form discussion, and use Discord
5+
for our <code>#hacknight</code> voice/screenshare sessions. Ask in
6+
Slack&rsquo;s <code>#hacknight</code> channel for the current invite. If
7+
you know of an in-person hacknight space in the Chattanooga area, let us
8+
know!
79
</h2>
810
</aside>

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<footer id="footer" class="footer wrapper">
22
<hr>
3-
<p>You can follow us on <a href="https://twitter.com/{{ site.twitter:username}}">Twitter</a>, view our projects on <a href="https://github.com/{{site.github_username }}">Github</a>, join our <a href=https://stats.foldingathome.org/team/249819>Folding@Home</a> team, and view our <a href="https://brand.devanooga.com/">Brand Guide</a>.</p>
3+
<p>You can follow us on <a href="https://x.com/{{ site.twitter.username }}">X</a>, view our projects on <a href="https://github.com/{{ site.github_username }}">Github</a>, join our <a href="https://stats.foldingathome.org/team/249819">Folding@Home</a> team, and view our <a href="https://brand.devanooga.com/">Brand Guide</a>.</p>
44
</footer>

_includes/head.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@
66

77
{% seo %}
88

9+
<script type="application/ld+json">
10+
{
11+
"@context": "https://schema.org",
12+
"@type": "Organization",
13+
"name": "devanooga",
14+
"url": "{{ site.url }}",
15+
"logo": "{{ site.url }}{{ site.logo }}",
16+
"description": "{{ site.description | strip_html }}",
17+
"address": {
18+
"@type": "PostalAddress",
19+
"addressLocality": "Chattanooga",
20+
"addressRegion": "TN",
21+
"addressCountry": "US"
22+
},
23+
"areaServed": "Chattanooga, Tennessee",
24+
"sameAs": [
25+
"https://x.com/devanooga",
26+
"https://github.com/devanooga",
27+
"https://www.reddit.com/r/devanooga/",
28+
"https://forums.devanooga.com/"
29+
],
30+
"nonprofitStatus": "Nonprofit501c3"
31+
}
32+
</script>
33+
934
{% include ga.html %}
1035
{% include google-fonts.html %}
1136
{% include stylesheets.html %}

_includes/member.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3 class="member--name">
2727
{% for profile in member.profiles %}
2828
<li>
2929
{% if profile[0] == 'twitter' %}
30-
<a href="https://twitter.com/{{profile[1]}}" title="{{member.name}} on Twitter" class="twitter">Twitter</a>
30+
<a href="https://x.com/{{profile[1]}}" title="{{member.name}} on X" class="twitter">X</a>
3131

3232
{% elsif profile[0] == 'github' %}
3333
<a href="https://github.com/{{profile[1]}}" title="{{member.name}} on Github" class="github">Github</a>

_includes/navigation.html

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,74 @@
1-
<nav id="navigation" class="navigation">
2-
<ol class="navigation--items">
3-
{% assign groups = (site.pages | sort: "menu_group" | group_by: "menu_group") %}
4-
{% for group in groups %}
5-
{% assign pages = (group.items | sort: "menu_sort") %}
6-
{% for page in pages %}
7-
{% if page.menu_group > 0 %}
8-
<li data-menu-group="{{ page.menu_group }}">
9-
<a class="page-link" href="{% if page.external_url %}{{ page.external_url }}{% else %}{{ page.url | prepend: site.baseurl }}{% endif %}">{{ page.title }}</a>
1+
<nav id="navigation" class="navigation" aria-label="Primary">
2+
<ul class="navigation--items">
3+
{% for item in site.data.navigation %}
4+
{% if item.children %}
5+
{% assign submenu_id = 'submenu-' | append: forloop.index %}
6+
<li class="navigation--item has-submenu">
7+
<button
8+
type="button"
9+
class="navigation--submenu-toggle"
10+
aria-expanded="false"
11+
aria-haspopup="true"
12+
aria-controls="{{ submenu_id }}"
13+
>
14+
{{ item.title }}
15+
<span class="navigation--caret" aria-hidden="true">&#9662;</span>
16+
</button>
17+
<ul id="{{ submenu_id }}" class="navigation--submenu">
18+
{% for child in item.children %}
19+
<li>
20+
<a class="page-link" href="{% if child.url contains '://' %}{{ child.url }}{% else %}{{ child.url | relative_url }}{% endif %}">{{ child.title }}</a>
21+
</li>
22+
{% endfor %}
23+
</ul>
1024
</li>
11-
{% endif %}
12-
{% endfor %}
25+
{% else %}
26+
<li class="navigation--item">
27+
<a class="page-link" href="{% if item.url contains '://' %}{{ item.url }}{% else %}{{ item.url | relative_url }}{% endif %}">{{ item.title }}</a>
28+
</li>
29+
{% endif %}
1330
{% endfor %}
14-
</ol>
31+
</ul>
1532
<a href="#header" class="navigation--close"><span class="sr-only">Back to content</span></a>
1633
</nav>
1734

1835
<script>
1936
(function (window, document) {
37+
var nav = document.getElementById('navigation');
38+
if (!nav) return;
39+
2040
var close_button = document.getElementsByClassName('navigation--close')[0];
21-
close_button.addEventListener('click', function go_back (event) {
22-
window.history.back();
41+
if (close_button) {
42+
close_button.addEventListener('click', function () {
43+
window.history.back();
44+
});
45+
}
46+
47+
var toggles = nav.querySelectorAll('.navigation--submenu-toggle');
48+
49+
function close_all (except) {
50+
for (var i = 0; i < toggles.length; i++) {
51+
if (toggles[i] !== except) {
52+
toggles[i].setAttribute('aria-expanded', 'false');
53+
}
54+
}
55+
}
56+
57+
for (var i = 0; i < toggles.length; i++) {
58+
toggles[i].addEventListener('click', function (event) {
59+
event.stopPropagation();
60+
var expanded = this.getAttribute('aria-expanded') === 'true';
61+
close_all(this);
62+
this.setAttribute('aria-expanded', expanded ? 'false' : 'true');
63+
});
64+
}
65+
66+
document.addEventListener('click', function (event) {
67+
if (!nav.contains(event.target)) close_all(null);
68+
});
69+
70+
document.addEventListener('keydown', function (event) {
71+
if (event.key === 'Escape' || event.key === 'Esc') close_all(null);
2372
});
2473
})(window, document);
2574
</script>

_pages/_open-source.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)