Skip to content

Commit 8a4a41a

Browse files
author
Bibhas C Debnath
committed
Added description to <title>, solves idan#43
1 parent 02b058d commit 8a4a41a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

static/js/gistio.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var Gisted = (function($, undefined) {
55
var description = data['description'];
66
if (description) {
77
$("#description").text(description);
8+
$("title").html(description + ' &middot; ' + $("title").html());
89
} else {
910
$("#description").text('');
1011
}

templates/gist.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "base.html" %}
22

3-
{% block title %}gist.io &middot; #{{ gist_id }}{% endblock %}
3+
{% block title %}#{{ gist_id }} &middot; gist.io{% endblock %}
44

55
{% block content %}
66
<!-- <h1>Loading Gist #{{ gist_id }}…</h1> -->

0 commit comments

Comments
 (0)