From: Tim Wood Date: Tue, 1 Nov 2011 22:46:37 +0000 (-0700) Subject: Adding page titles X-Git-Tag: 1.1.1~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74992e3574738595a677a7544785edd2f39ffa0c;p=thirdparty%2Fmoment.git Adding page titles --- diff --git a/site/docs/index.html b/site/docs/index.html index 57286dcbc..18b096371 100644 --- a/site/docs/index.html +++ b/site/docs/index.html @@ -1,4 +1,4 @@ -

Moment.js Documentation

A lightweight javascript date library for parsing, manipulating, and formatting dates.

Where to get it

Github

Production Version 1.1.02.5kb minified & gzippedDevelopment Version 1.1.017.7kb full source + comments

You can also clone the project with Git by running:

git clone git://github.com/timrwood/moment

npm

npm install moment

Where to use it

Moment was designed to work in both the browser and in NodeJS. All code will work in both environments. All unit tests are run in both environments.

In NodeJS

var moment = require('moment');
+Moment.js Documentation

Moment.js Documentation

A lightweight javascript date library for parsing, manipulating, and formatting dates.

Where to get it

Github

Production Version 1.1.02.5kb minified & gzippedDevelopment Version 1.1.017.7kb full source + comments

You can also clone the project with Git by running:

git clone git://github.com/timrwood/moment

npm

npm install moment

Where to use it

Moment was designed to work in both the browser and in NodeJS. All code will work in both environments. All unit tests are run in both environments.

In NodeJS

var moment = require('moment');
 moment().add('hours', 1).fromNow(); // "1 hour ago"
 

In the browser

<script src="moment.min.js"></script>
 moment().add('hours', 1).fromNow(); // "1 hour ago"
diff --git a/site/index.html b/site/index.html
index 748fab90e..35c6836bf 100644
--- a/site/index.html
+++ b/site/index.html
@@ -1,4 +1,4 @@
-

Moment.js

A lightweight javascript date library for parsing, manipulating, and formatting dates.

Use it

var now = moment();
+Moment.js - A lightweight javascript date library

Moment.js

A lightweight javascript date library for parsing, manipulating, and formatting dates.

Use it

var now = moment();
 console.log(now.format('dddd, MMMM Do YYYY, h:mm:ss a'));
 
var aWhileAgo = moment([2011, 10, 31]);
 console.log(aWhileAgo.fromNow());
diff --git a/site/test/index.html b/site/test/index.html
index c951a1646..b053cfc6a 100755
--- a/site/test/index.html
+++ b/site/test/index.html
@@ -1 +1 @@
-

Moment.js unit test suite

    \ No newline at end of file +Moment.js Unit Test Suite

    Moment.js unit test suite

      \ No newline at end of file diff --git a/sitesrc/docs.jade b/sitesrc/docs.jade index 255c6fbac..644acc33a 100644 --- a/sitesrc/docs.jade +++ b/sitesrc/docs.jade @@ -2,6 +2,7 @@ extends html block styles link(rel="stylesheet", href="../css/style.css") + title Moment.js Documentation block scripts script(src="../js/docs.min.js") diff --git a/sitesrc/home.jade b/sitesrc/home.jade index 687f02a82..37e16b233 100644 --- a/sitesrc/home.jade +++ b/sitesrc/home.jade @@ -2,6 +2,7 @@ extends html block styles link(rel="stylesheet", href="css/style.css") + title Moment.js - A lightweight javascript date library block scripts script(src="js/home.min.js") diff --git a/sitesrc/test.jade b/sitesrc/test.jade index 21a1616b2..6abc03ecd 100644 --- a/sitesrc/test.jade +++ b/sitesrc/test.jade @@ -2,6 +2,7 @@ extends html block styles link(rel="stylesheet", href="../css/style.css") + title Moment.js Unit Test Suite block scripts script(src="../js/test.min.js")