mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-10-06 08:07:21 +02:00
Adds meta descriptions to status code pages and index
Makes use of the first paragraph of the status code!
This commit is contained in:
parent
db4119d9ea
commit
6383b80064
2
build.js
2
build.js
@ -8,6 +8,7 @@ var elevate = require('metalsmith-elevate');
|
|||||||
var ignore = require('metalsmith-ignore');
|
var ignore = require('metalsmith-ignore');
|
||||||
var collectionGrouping = require('metalsmith-collection-grouping');
|
var collectionGrouping = require('metalsmith-collection-grouping');
|
||||||
var fingerprint = require('metalsmith-fingerprint-ignore');
|
var fingerprint = require('metalsmith-fingerprint-ignore');
|
||||||
|
var excerpts = require('metalsmith-better-excerpts');
|
||||||
|
|
||||||
var metalsmith = Metalsmith(__dirname);
|
var metalsmith = Metalsmith(__dirname);
|
||||||
metalsmith
|
metalsmith
|
||||||
@ -41,6 +42,7 @@ var metalsmith = Metalsmith(__dirname);
|
|||||||
|
|
||||||
.use(branch('**/*.md')
|
.use(branch('**/*.md')
|
||||||
.use(markdown())
|
.use(markdown())
|
||||||
|
.use(excerpts({pruneLength: 400}))
|
||||||
.use(layouts({
|
.use(layouts({
|
||||||
engine: 'jade',
|
engine: 'jade',
|
||||||
directory: 'templates',
|
directory: 'templates',
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"jade": "^1.11.0",
|
"jade": "^1.11.0",
|
||||||
"lodash.groupby": "^3.1.1",
|
"lodash.groupby": "^3.1.1",
|
||||||
"metalsmith": "^2.1.0",
|
"metalsmith": "^2.1.0",
|
||||||
|
"metalsmith-better-excerpts": "^0.1.7",
|
||||||
"metalsmith-branch": "0.0.4",
|
"metalsmith-branch": "0.0.4",
|
||||||
"metalsmith-collection-grouping": "^0.1.0",
|
"metalsmith-collection-grouping": "^0.1.0",
|
||||||
"metalsmith-collections": "^0.7.0",
|
"metalsmith-collections": "^0.7.0",
|
||||||
|
@ -3,6 +3,9 @@ extends layout.jade
|
|||||||
block title
|
block title
|
||||||
title !{code} !{title} — httpstatuses.com
|
title !{code} !{title} — httpstatuses.com
|
||||||
|
|
||||||
|
block description
|
||||||
|
meta(name='description' content='HTTP Status Code ' + code + ': ' + excerpt)
|
||||||
|
|
||||||
block contents
|
block contents
|
||||||
article.code.container
|
article.code.container
|
||||||
h2 !{groups.codes[set].title}
|
h2 !{groups.codes[set].title}
|
||||||
|
@ -7,6 +7,8 @@ html(lang="en")
|
|||||||
link(rel='stylesheet', href='/' + fingerprint['style.css'])
|
link(rel='stylesheet', href='/' + fingerprint['style.css'])
|
||||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||||
meta(charset='utf-8')
|
meta(charset='utf-8')
|
||||||
|
block description
|
||||||
|
meta(name='description' content='HTTP Status Code directory, with definitions, details and helpful code references.')
|
||||||
body
|
body
|
||||||
block contents
|
block contents
|
||||||
script.
|
script.
|
||||||
|
Loading…
Reference in New Issue
Block a user