]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
Merge pull request #58 from freenode/faq
authorEd Kellett <redacted>
Fri, 26 Feb 2016 07:12:16 +0000 (07:12 +0000)
committerEd Kellett <redacted>
Fri, 26 Feb 2016 07:12:16 +0000 (07:12 +0000)
add FAQ

config.yml
content/faq/connect/chat.md [new file with mode: 0644]
templates/faq.html [new file with mode: 0644]
templates/faq_index.html [new file with mode: 0644]

index 99167d97e9811041d92a0aa64019788b6657a14f..51ddf2fe2646c9b62c3430cc9779aeca4e1aea8f 100644 (file)
@@ -12,9 +12,26 @@ modules:
     source: news
     root: news
   - name: 'pages'
-    id: 'pages'
     source: pages
-    root: pages
+    root: ''
+  - name: 'faq'
+    source: faq
+    root: 'faq/answer'
+    index_root: 'faq'
+    indexes:
+      chat:
+        title: 'Chat'
+        cats: [connect]
+        promote:
+          - name: faq/connect/chat
+            caption: Chat
+            icon: comment
+          - name: faq/connect/chat
+            caption: Chat
+            icon: comment
+          - name: faq/connect/chat
+            caption: Chat
+            icon: comment
 resources:
   - command: [cat]
     source: static/fonts
diff --git a/content/faq/connect/chat.md b/content/faq/connect/chat.md
new file mode 100644 (file)
index 0000000..2974371
--- /dev/null
@@ -0,0 +1,42 @@
+Title: Connect
+Slug: chat
+---
+<p>To access the <span class="freenode">freenode</span> IRC servers,
+you'll first need an IRC client.  Text clients include
+irssi, WeeChat, and ERC.  Graphical clients include XChat, Smuxi, and Quassel 
+for Unix and GNU/Linux, and mIRC for Windows. There is also the 
+<a href="http://webchat.freenode.net/">freenode webchat</a>.
+Packages for various IRC clients may be included on your operating
+system install CDs and links to web sites for the client software can be
+found
+
+<a href="http://www.irc.org/links.html">here</a>.</p>
+
+
+
+
+<p>Once you have a client, you'll need a server. 
+You can simply use <b>chat.freenode.net</b> to reach our main rotation of
+servers; or, you can find a more geographically-local server
+
+<a href="irc_servers.shtml">here</a>.</p>
+
+
+
+
+<p>After you've obtained your client and the name of
+a server, you may still need a bit of help in getting connected.  Take a
+look at this
+
+<a href="http://www.irchelp.org/irchelp/irctutorial.html">tutorial</a>
+
+or this
+
+<a href="http://www.irchelp.org/irchelp/ircprimer.html">IRC primer</a>
+
+on
+
+<a href="http://www.irchelp.org/">irchelp.org</a>,
+
+which contains a variety of other useful information as well.</p>
+
diff --git a/templates/faq.html b/templates/faq.html
new file mode 100644 (file)
index 0000000..3445922
--- /dev/null
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+{% set title = entry.title %}
+{% block content %}
+<div class="main">
+    <h1>{{ entry.title }}</h1>
+    <p class="art-ingress">
+        {{ entry.render() }}
+    </p>
+</div>
+{% endblock %}
diff --git a/templates/faq_index.html b/templates/faq_index.html
new file mode 100644 (file)
index 0000000..b2963fb
--- /dev/null
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+{% set title = index.title %}
+{% block content %}
+{% if index.promote %}
+<div class="jumbotron">
+    <h1 class="child">{{ index.title }}</h1>
+    <div class="box-container">
+    {% for button in index.promote %}
+        <a class="box" href="{{ button.entry.url }}">
+            <i class="fa fa-{{ button.icon }} fa-4x"></i>
+            <div>{{ button.caption }}</div>
+        </a>
+    {% endfor %}
+    </div>
+</div>
+<div class="main">
+{% else %}
+<div class="main">
+<h1>{{ index.title }}</h1>
+{% endif %}
+<ul class="faq-index">
+    {%- for entry in index.entries -%}
+    <li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
+    {%- endfor %}
+</ul>
+</div>
+{% endblock content %}