Skip to content

Commit

Permalink
Merge pull request github#126 from github/kytrinyx-seo-h1
Browse files Browse the repository at this point in the history
Update titles for improved SEO
  • Loading branch information
Nadia Eghbal authored Sep 10, 2016
2 parents 0ae3ec2 + b83a75f commit 7162588
Show file tree
Hide file tree
Showing 25 changed files with 51 additions and 20 deletions.
6 changes: 6 additions & 0 deletions _data/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ contents:

next:
type: String

nav:
type: String

seo_title:
type: String
2 changes: 1 addition & 1 deletion _includes/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% assign subpage = site.pages | where: "path", path | first %}
<li{% if page.url contains subpage.url %} class="selected"{% endif %}>
<a class="d-block {% if page.url == subpage.url %} current{% endif %}"
href="{{ subpage.url | prepend: site.baseurl }}">{{ subpage.title }}</a>
href="{{ subpage.url | prepend: site.baseurl }}">{% if subpage.nav == nil %}{{ subpage.title }}{% else %}{{ subpage.nav }}{% endif %}</a>
{% if subpage.contents %}
{% include contents.html item=subpage %}
{% endif %}
Expand Down
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i" rel="stylesheet">
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="icon" type="image/png" href="{{ "/img/favicon-128.png" | prepend: site.baseurl }}" sizes="128x128" />
<title>
{% if page.seo_title == nil %}{{ page.title }}{% else %}{{ page.seo_title }}{% endif %}
</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="{{ "/js/script.js" | prepend: site.baseurl }}"></script>
<script>
Expand Down
1 change: 1 addition & 0 deletions disclaimer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
seo_title: Legal Disclaimer—Open Source Handbook
title: Legal Disclaimer
---

Expand Down
3 changes: 2 additions & 1 deletion getting-started/branding.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Branding
title: Branding your open source project
nav: Branding
next: getting-started/preparing.md
---

Expand Down
3 changes: 2 additions & 1 deletion getting-started/defining.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: What it means to open source
title: What is an open source project?
nav: What it means to open source
next: getting-started/setting-expectations.md
---

Expand Down
3 changes: 2 additions & 1 deletion getting-started/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Getting started
title: How to start an open source project
nav: Getting started
next: getting-started/defining.md
contents:
- getting-started/defining.md
Expand Down
1 change: 1 addition & 0 deletions getting-started/legal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: The legal side of open source
nav: The legal side of open source
---

Sharing your creative work with the world can be an exciting and rewarding experience. It can also mean a bunch of legal things you didn't know you had to worry about.
Expand Down
3 changes: 2 additions & 1 deletion getting-started/preparing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Preparing for launch
title: Launching your open source project
nav: Preparing for launch
next: marketing/index.md
---

Expand Down
1 change: 1 addition & 0 deletions getting-started/setting-expectations.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Setting expectations for your open source project
nav: Setting expectations
next: getting-started/branding.md
---

Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Welcome
seo_title: Open Source Handbook—from GitHub
title: Welcome to the Open Source Handbook!
layout: landing
contents:
---
Expand Down
3 changes: 2 additions & 1 deletion marketing/building-community.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Building a community
title: Building an open source community
nav: Building a community
next: marketing/measuring.md
---

Expand Down
3 changes: 2 additions & 1 deletion marketing/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Marketing your project
title: Marketing your open source project
nav: Marketing your project
next: marketing/spreading-word.md
contents:
- marketing/spreading-word.md
Expand Down
3 changes: 2 additions & 1 deletion marketing/measuring.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Measuring success
title: Measuring the success of your open source project
nav: Measuring success
next: sustaining/index.md
---

Expand Down
3 changes: 2 additions & 1 deletion marketing/spreading-word.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Spreading the word
title: Promoting your open source project
nav: Spreading the word
next: marketing/building-community.md
---

Expand Down
3 changes: 2 additions & 1 deletion sustaining/best-practices.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Best practices for maintainers
title: Best practices for open source project maintenance
nav: Best practices for maintainers
next: sustaining/healthy-communities.md
---

Expand Down
3 changes: 2 additions & 1 deletion sustaining/healthy-communities.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Sustaining healthy communities
title: Sustaining healthy open source communities
nav: Sustaining healthy communities
next: sustaining/leadership.md
---

Expand Down
3 changes: 2 additions & 1 deletion sustaining/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Sustaining Growth
title: Sustaining growth of your open source project
nav: Sustaining growth
next: sustaining/best-practices.md
contents:
- sustaining/best-practices.md
Expand Down
3 changes: 2 additions & 1 deletion sustaining/leadership.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Leadership & governance
title: Open source project leadership & governance
nav: Leadership & governance
next: troubleshooting/index.md
---

Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/burnout.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Feeling guilty or burned out
title: Open source project burnout
nav: Feeling guilty or burned out
---

Open source work once brought you joy. Maybe now it's starting to make you feel avoidant or guilty. Perhaps you're feeling overwhelmed or a growing sense of dread when you think about your projects. And meanwhile, the issues and pull requests pile up.
Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/conduct.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Enforcing your code of conduct
title: Enforcing your open source project code of conduct
nav: Enforcing your code of conduct
---

Your code of conduct helps create a healthy and constructive social atmosphere for your project's community. Sometimes, despite your best efforts, somebody will do something that violates this code. In this section, we'll talk about how to address negative or harmful behavior in your project's community.
Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/contributions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Handling contributions you don't want to accept
title: Handling open source contributions you don't want to accept
nav: Handling contributions you don't want to accept
---

As a maintainer of an open source project, you'll inevitably receive contributions that you don't want to accept. Maybe the contribution changes your project's scope or doesn't match your vision. Maybe the idea is good, but the implementation is poor.
Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/finding-consensus.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Finding community consensus
title: Finding open source community consensus
nav: Finding community consensus
---

In the early stages of your project, making major decisions is easy. When you want to do something, you just do it.
Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/getting-paid.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Getting paid for open source work
title: Getting paid for open source project work
nav: Getting paid for open source work
---

If you make regular, substantial contributions to open source, or you're just considering your first contribution, you may start to wonder whether anybody gets paid to work on open source.
Expand Down
3 changes: 2 additions & 1 deletion troubleshooting/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Troubleshooting
title: Open source project troubleshooting & maintenance
nav: Troubleshooting
contents:
- troubleshooting/conduct.md
- troubleshooting/burnout.md
Expand Down

0 comments on commit 7162588

Please sign in to comment.