Skip to content

Commit 2e417ca

Browse files
committedDec 25, 2020
Add community sites and move the project history under an About section.
1 parent e51997f commit 2e417ca

File tree

8 files changed

+254
-2
lines changed

8 files changed

+254
-2
lines changed
 

Diff for: ‎_data/community.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
links:
2+
- url: https://leaguesunited.org/
3+
name: Leagues United
4+
description: Leagues United is the main competitive league for BZFlag. It is the result of a merger of three other leagues (Ducati, GU, and OpenLeague).
5+
- url: https://bzlist.net/
6+
name: The Noah's BZList
7+
description: A site that shows a list of public BZFlag servers and online players, and supports adding favorite servers and friends. Uses the BZFlag web login system so you won't need another account.
8+
- url: http://bzstats.strayer.de/
9+
name: Strayer's BZstats
10+
description: Another site that shows a list of public servers and online players, and also supports creating a friends list to see when your friends are online. This one also has graphs and historical data, and links to other player data such as BZFlag accounts and Leagues United profiles.
11+
- url: https://the-noah.github.io/bzfs-plugins/
12+
name: The Noah's BZFlag server plugins page
13+
description: You will find a compilation of BZFlag server (bzfs) plugins from many authors. These are specifically ones that aren't included with the official BZFlag distribution. Server plugins can add new mechanics, new flags, new game modes, or features for administration.
14+
- url: https://bzflag-plugin-starter.allejo.org/
15+
name: allejo's BZFlag Plug-in Starter
16+
description: This tool generates the skeleton for BZFlag 2.4 compatible server plugins.
17+
- urls:
18+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-1/
19+
name: Chapter 1 - Getting Started
20+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-2/
21+
name: Chapter 2 - Player Records and Modification API Events
22+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-3/
23+
name: Chapter 3 - Custom Slash Commands
24+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-4/
25+
name: Chapter 4 - Stateful Data
26+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-5/
27+
name: Chapter 5 - Configuration Files
28+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-6/
29+
name: Chapter 6 - URL Calls (for talking to web servers from your plugin)
30+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-7/
31+
name: Chapter 7 - Custom Map Objects
32+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-8/
33+
name: Chapter 8 - Tick Event
34+
- url: https://allejo.io/blog/bzflag-plug-ins-for-dummies-chapter-9/
35+
name: Chapter 9 - Custom Flags
36+
name: allejo's BZFlag Plug-ins for Dummies Tutorials
37+
description: A tutorial series for creating BZFlag server plugins.

Diff for: ‎_data/navigation.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ links:
1111
name: Documentation
1212
- url: /help/
1313
name: Help
14+
- url: /about/
15+
name: About

Diff for: ‎_pages/about/community.html.twig

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Community Sites
3+
section: about
4+
sectiontitle: About
5+
permalink: /about/community/
6+
---
7+
8+
{% extends "_layouts/page.html.twig" %}
9+
10+
{% block content %}
11+
<h1>Community Links</h1>
12+
<p class="mb-3">
13+
There are many community created sites for BZFlag. Here are a handful of them.
14+
</p>
15+
16+
{% for link in data.community.links %}
17+
<h2>{{- link.name }}</h2>
18+
{{ link.description | markdown }}
19+
{% if link.urls %}
20+
<ul>
21+
{% for url in link.urls %}
22+
<li>
23+
<a href="{{ url.url }}">
24+
{{- url.name -}}
25+
</a>
26+
</li>
27+
{% endfor %}
28+
</ul>
29+
{% else %}
30+
<a href="{{ link.url }}" rel="noopener" target="_blank">
31+
{{- link.name -}}
32+
</a>
33+
{% endif %}
34+
{% endfor %}
35+
{% endblock %}

Diff for: ‎_pages/history.html.twig renamed to ‎_pages/about/history.html.twig

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Project History
3-
section: history
4-
permalink: /history/
3+
section: about
4+
sectiontitle: About
5+
permalink: /about/history/
56
---
67

78
{% extends "_layouts/base.html.twig" %}

Diff for: ‎_pages/about/index.html.twig

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: About
3+
section: about
4+
permalink: /about/
5+
---
6+
7+
{% extends "_layouts/page.html.twig" %}
8+
9+
{% from _self import card_block %}
10+
11+
{% macro card_block(image, header, link, content) %}
12+
<div class="col-md-6 col-lg-4 mb-5 mb-md-4 mb-lg-3">
13+
<article class="c-card">
14+
<header class="background-light mb-2">
15+
<img src="{{ url('/assets/images/about/' ~ image ~ '.svg') }}"
16+
alt="{{ image | capitalize }} icon"
17+
>
18+
</header>
19+
<div>
20+
<h2 class="mt-0 mb-2">
21+
{% if link %}
22+
{%- set url = (link.permalink or link[0] == '/') ? url(link) : link -%}
23+
<a href="{{- url -}}">{{- header -}}</a>
24+
{% else %}
25+
{{- header -}}
26+
{% endif %}
27+
</h2>
28+
{% spaceless %}{{ content }}{% endspaceless %}
29+
</div>
30+
</article>
31+
</div>
32+
{% endmacro %}
33+
34+
{% block content %}
35+
<h1>Help</h1>
36+
<p class="mb-5">
37+
BZFlag has been around for almost 30 years. Learn about the project history or visit some of our community sites.
38+
</p>
39+
40+
<div class="row">
41+
{% set project_history_content %}
42+
<p>BZFlag's history dates back to 1992. Read about the origin of the game and milestones throughout the years.</p>
43+
{% endset %}
44+
{{ card_block(
45+
'history',
46+
'Project History',
47+
pages['Project History'],
48+
project_history_content
49+
) }}
50+
51+
{% set links_content %}
52+
<p>Check out some other sites run by members of our community.</p>
53+
{% endset %}
54+
{{ card_block(
55+
'community',
56+
'Community Sites',
57+
pages['Community Sites'],
58+
links_content
59+
) }}
60+
</div>
61+
{% endblock %}

Diff for: ‎_pages/credits.html.twig

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ permalink: /credits/
2121
- [FAQ by ProSymbols](https://thenounproject.com/icon/790491/) from the Noun Project - CC-BY 3.0 US License
2222
- [chat icon](https://thenounproject.com/icon/888687/) from the Starter Icons Collection from the Noun Project - Public Domain
2323
- [Magnifying Glass](https://thenounproject.com/icon/888719/) from the Starter Icons Collection from the Noun Project - Public Domain
24+
- [links by cindy clegane](https://thenounproject.com/term/links/3125909/) from the Noun Project - CC-BY 3.0 US License
25+
- [History by Becris](https://thenounproject.com/term/history/3249728/) from the Noun Project - CC-BY 3.0 US License
2426
- [Apple by zidney](https://thenounproject.com/term/apple/1426926/) from the Noun Project - CC-BY 3.0 US License
2527
- [Windows Logo](https://commons.wikimedia.org/wiki/File:Windows_logo_-_2012.svg) - Public Domain
2628
- Operating system logos are copyright and/or trademark their respective owners.

Diff for: ‎assets/images/about/community.svg

+64
Loading

Diff for: ‎assets/images/about/history.svg

+50
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.