Skip to content

Commit 22b8a7a

Browse files
committed
Add meta description
Explicitly load resources via https Add alt text to logo
1 parent 31a4081 commit 22b8a7a

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# README
22

3-
Source files for [coderstats.net](http://coderstats.net/).
4-
5-
# Reference
6-
7-
* https://developer.github.com/v3/search/#search-users
8-
* https://help.github.com/en/articles/searching-users#search-only-users-or-organizations
3+
Source files for [coderstats.net](https://coderstats.net/).

content/github.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: CoderStats
2+
title: CoderStats - Summary Statistics, Rankings and Repositories
3+
description: Summary statistics, rankings and repositories about public source code repositories on GitHub.
34
template: coder.html
45
created: 2017-09-22T22:12:48
56
---

content/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
noindex: 1
3+
created: 2017-09-22T22:02:05
34
url: /
45
title: CoderStats - View Statistics for Millions of GitHub Users and Organizations
6+
description: CoderStats is a free service that displays statistics about public source code repositories for GitHub users and organizations.
57
template: front.html
6-
created: 2017-09-22T22:02:05
78
---

src/js/coder.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ if (document.location.hash) {
1414
document.location.href = '/';
1515
}
1616
// Set these values here because they are outside of vue's scope.
17-
document.title = `CoderStats(${github_user})`;
18-
document.getElementsByClassName('brand')[0].textContent = document.title;
17+
let short_title = `CoderStats(${github_user})`
18+
document.title = document.title.replace('CoderStats', short_title);
19+
document.getElementsByClassName('brand')[0].textContent = short_title;
1920

2021
let url_user = `https://api.github.com/users/${github_user}`,
2122
url_repos = `${url_user}/repos?sort=pushed&per_page=100`,

templates/base.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="shortcut icon" href="/img/coderstats.png">
99
<link rel="canonical" href="{{ canonical }}" />
1010
{% block styles %}{% endblock %}
11-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
11+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
1212
<link rel="stylesheet" href="/compiled/style.css">
1313
</head>
1414
<body>
@@ -21,10 +21,10 @@
2121
</footer>
2222

2323
{% block scripts %}
24-
<script src="//cdn.jsdelivr.net/npm/vue"></script>
25-
<script src="//cdn.jsdelivr.net/npm/vue-resource@1.5.1/dist/vue-resource.min.js"></script>
26-
<script src="//cdn.jsdelivr.net/npm/d3-collection@1.0.7/dist/d3-collection.min.js"></script>
27-
<script src="//cdn.jsdelivr.net/npm/d3-array@2.2.0/dist/d3-array.min.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
25+
<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.1/dist/vue-resource.min.js"></script>
26+
<script src="https://cdn.jsdelivr.net/npm/d3-collection@1.0.7/dist/d3-collection.min.js"></script>
27+
<script src="https://cdn.jsdelivr.net/npm/d3-array@2.2.0/dist/d3-array.min.js"></script>
2828
{% endblock %}
2929
</body>
3030
</html>

templates/coder.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{% extends 'base.html' %}
22

33
{% block styles %}
4-
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
55
<link rel="stylesheet" href="/compiled/coder.css">
66
{% endblock %}
77

88
{% block content %}
99
<nav class="container-full clear"><div class="row">
1010
<div class="col-12 col-4-xl col-4-l col-5-m">
11-
<a href="/"><img src="/img/coderstats.png"></a>
11+
<a href="/"><img src="/img/coderstats.png" alt="logo"></a>
1212
<span class="brand">CoderStats({{ username }})</span>
1313
</div>
1414
<div class="col-12 col-8-xl col-8-l col-7-m" id="search">
@@ -151,7 +151,7 @@ <h2 id="repos">Repositories</h2>
151151

152152
{% block scripts %}
153153
{{ super() }}
154-
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
154+
<script src="https://cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
155155
<script src="/compiled/coder.js"></script>
156156
<script src="/compiled/search.js"></script>
157157
{% endblock %}

0 commit comments

Comments
 (0)