Skip to content

Commit

Permalink
Add handling to page description.
Browse files Browse the repository at this point in the history
Note:
    - Please line wrap your code at 79 characters if possible.
  • Loading branch information
tommyip committed Feb 14, 2017
1 parent 6a1dddc commit ddbfc5d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ theme: jekyll-theme-cayman

title: Krypton Chicken
tagline: Krypton Chicken's website | blog posts
description:
Krypton Chicken is an organization created by the grand prize winners of
Google Code-in 2016. This blog contains our experiences surrounding Google
Code-In 2016.

author:
name: Tommy Ip
Expand Down
8 changes: 7 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{% if page.description %}
{% assign description = page.description %}
{% else %}
{% assign description = site.description %}
{% endif %}

<head>
<meta charset="UTF-8">
<title>{{ site.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
<meta name="description" content="{{ description }}">
<meta name="theme-color" content="#157878">
<link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="navbar">
{% assign pages = site.html_pages | sort: "navbar_order" %}
{% for p in pages %}
<a href="{{ p.url }}" {% if p.url == page.url %}class="active" {% endif %}>
<a href="{{ p.url }}" {% if p.url == page.url %}class="active"{% endif %}>
{{ p.title }}
</a>
{% endfor %}
Expand Down
1 change: 1 addition & 0 deletions _posts/2017-02-12-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: post
title: "Hello, World!"
date: 2017-02-12 15:36
author: tommy_ip
description: "Why did we call ourselves the Krypton Chicken?"
---

__*So why call ourselves "Krypton Chicken"?*__ We (the GCI 2016 winners) were
Expand Down
1 change: 1 addition & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: About Us
description: About the Krypton Chickens.
navbar_order: 2
---

Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: default
title: Home
description: Krypton Chicken is an organization created by the grand prize winners of Google Code-in 2016. This blog contains our experience before, during, and after Google Code-In 2016.
navbar_order: 1
---

Expand Down

0 comments on commit ddbfc5d

Please sign in to comment.