From e13d4bcfbfdede28cd52f3044984f1bb3e034d06 Mon Sep 17 00:00:00 2001 From: Shrayas Date: Sat, 10 Jan 2015 00:31:01 +0530 Subject: [PATCH 1/3] Add custom 404 page tip to docs - Addresses #492 --- docs/tips.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/tips.rst b/docs/tips.rst index eb400124..12399d70 100644 --- a/docs/tips.rst +++ b/docs/tips.rst @@ -62,6 +62,17 @@ by the ``ghp-import`` command) to the ``elemoine.github.io`` repository's To publish your Pelican site as User Pages, feel free to adjust the ``github`` target of the Makefile. +Custom 404 pages +---------------- + +Github has a way to display a predefined custom 404 page when people try to +access nonexistent pages on your site. You can find more information about it +`here `_. + +The way to achieve this with Pelican would be to save a page as either ``404.md`` +or ``404.html``. The latter can be done by setting the ``save_as`` metadata. In +addition you can set ``status`` to ``hidden`` as well. + Extra Tips ---------- @@ -99,3 +110,4 @@ Moreover, markup languages like reST and Markdown have plugins that let you embed videos in the markup. You can use `reST video directive `_ for reST or `mdx_video plugin `_ for Markdown. + From 56414fd91026e2392fe22b780d66d179ee2eb866 Mon Sep 17 00:00:00 2001 From: Shrayas Date: Sat, 10 Jan 2015 10:01:11 +0530 Subject: [PATCH 2/3] Changing "Github" to "GitHub Pages" s/Github/GitHubPages on tips.rst --- docs/tips.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tips.rst b/docs/tips.rst index 12399d70..671fc794 100644 --- a/docs/tips.rst +++ b/docs/tips.rst @@ -65,7 +65,7 @@ by the ``ghp-import`` command) to the ``elemoine.github.io`` repository's Custom 404 pages ---------------- -Github has a way to display a predefined custom 404 page when people try to +GitHub Pages has a way to display a predefined custom 404 page when people try to access nonexistent pages on your site. You can find more information about it `here `_. From b3d6822d1f7d31ec2bfd02148f51505bfc327616 Mon Sep 17 00:00:00 2001 From: Shrayas Date: Sat, 10 Jan 2015 13:52:22 +0530 Subject: [PATCH 3/3] Status of 404 page should be hidden --- docs/tips.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tips.rst b/docs/tips.rst index 671fc794..33c86224 100644 --- a/docs/tips.rst +++ b/docs/tips.rst @@ -71,7 +71,7 @@ access nonexistent pages on your site. You can find more information about it The way to achieve this with Pelican would be to save a page as either ``404.md`` or ``404.html``. The latter can be done by setting the ``save_as`` metadata. In -addition you can set ``status`` to ``hidden`` as well. +addition you should set ``status`` to ``hidden`` as well. Extra Tips ----------