Skip to content

Commit 0a9efca

Browse files
committed
Set up config file, header with external links. Add or fix permalinks.
1 parent 4e445e6 commit 0a9efca

File tree

6 files changed

+60
-5
lines changed

6 files changed

+60
-5
lines changed

_config.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,27 @@
1313
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
16-
title: Your awesome title
17-
email: your-email@example.com
16+
title: Code4Lib
17+
# email: your-email@example.com
1818
description: >- # this means to ignore newlines until "baseurl:"
1919
Write an awesome description for your new site here. You can edit this
2020
line in _config.yml. It will appear in your document head meta (for
2121
Google search results) and in your feed.xml site description.
2222
baseurl: "" # the subpath of your site, e.g. /blog
23-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
24-
twitter_username: jekyllrb
25-
github_username: jekyll
23+
url: "http://code4lib.org" # the base hostname & protocol for your site, e.g. http://example.com
24+
25+
header_pages:
26+
- about.md
27+
28+
# - music last.fm's group pages taken down
29+
# - https://shop.spreadshirt.com/code4lib/
30+
31+
# external links are in _includes/header.html
32+
33+
34+
twitter_username: code4lib
35+
github_username: code4lib
36+
youtube_username: code4lib
2637

2738
# Build settings
2839
markdown: kramdown

_includes/header.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{%- if page_paths -%}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
15+
</svg>
16+
</span>
17+
</label>
18+
19+
<div class="trigger">
20+
{%- for path in page_paths -%}
21+
{%- assign my_page = site.pages | where: "path", path | first -%}
22+
{%- if my_page.title -%}
23+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24+
{%- endif -%}
25+
{%- endfor -%}
26+
27+
<a class="page-link" href="/irc/">Chat</a>
28+
<a class="page-link" href="/conference/">Conference</a>
29+
<a class="page-link" href="http://jobs.code4lib.org">Jobs</a>
30+
<a class="page-link" href="https://journal.code4lib.org">Journal</a>
31+
<a class="page-link" href="/local/">Local</a>
32+
<a class="page-link" href="https://lists.clir.org/cgi-bin/wa?A0=CODE4LIB">Mailing List</a>
33+
<a class="page-link" href="http://planet.code4lib.org">Planet</a>
34+
<a class="page-link" href="https://wiki.code4lib.org">Wiki</a>
35+
36+
</div>
37+
</nav>
38+
{%- endif -%}
39+
</div>
40+
</header>

_posts/2006-02-24-chat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ categories:
33
- irc
44
layout: page
55
title: Chat
6+
permalink: /irc/
67
created: 1140811721
78
---
89
There are code4lib chat rooms for folks who are interested in the convergence of technology and cultural heritage. These are less formal and more interactive alternative to the code4lib mailing list for the discussion of code, projects, ideas, music, first computers, etc.

_posts/2006-03-14-code4lib-irc-channel-faq.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ categories:
33
- irc
44
layout: page
55
title: "#code4lib irc channel faq"
6+
permalink: /irc/faq
67
created: 1142364428
78
---
89
Like any community, the #code4lib IRC channel can be intimidating to newcomers. For those who are new to the channel, here are some answers to Frequently Asked Questions.

_posts/2008-10-10-local-chapters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ categories:
33
- meetings
44
layout: page
55
title: Local Chapters
6+
permalink: /local/
67
created: 1223642962
78
---
89
<h2>About</h2>

_posts/2011-02-11-about.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ excerpt: "code4lib isn't entirely about code or libraries. It is a volunteer-dri
1111
categories: []
1212
layout: page
1313
title: About
14+
permalink: /about/
1415
created: 1297437091
1516
---
1617
code4lib isn't entirely about code or libraries. It is a volunteer-driven collective of hackers, designers, architects, curators, catalogers, artists and instigators from around the world, who largely work for and with libraries, archives and museums on technology "stuff." It started in the fall of 2003 as a <a href="https://lists.clir.org/cgi-bin/wa?A0=CODE4LIB">mailing list</a> when a group of library programmers decided to create an overarching community agnostic towards any particular language or technology.

0 commit comments

Comments
 (0)