Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
50d32d6c
Commit
50d32d6c
authored
Mar 04, 2016
by
Achilleas Pipinellis
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add examples to 404 pages
[ci skip]
parent
52dcde27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
doc/pages/README.md
doc/pages/README.md
+12
-17
No files found.
doc/pages/README.md
View file @
50d32d6c
...
@@ -289,27 +289,22 @@ website hosted under GitLab.
...
@@ -289,27 +289,22 @@ website hosted under GitLab.
### Secure your custom domain website with TLS
### Secure your custom domain website with TLS
### Use a static generator to develop your website
#### Example projects
Below is a list of example projects for GitLab Pages with a plain HTML website
or various static site generators. Contributions are very welcome.
-
[
Plain HTML
](
https://gitlab.com/gitlab-examples/pages-plain-html
)
-
[
Jekyll
](
https://gitlab.com/gitlab-examples/pages-jekyll
)
-
[
Hugo
](
https://gitlab.com/gitlab-examples/pages-hugo
)
-
[
Middleman
](
https://gitlab.com/gitlab-examples/pages-middleman
)
-
[
Hexo
](
https://gitlab.com/gitlab-examples/pages-hexo
)
-
[
Brunch
](
https://gitlab.com/gitlab-examples/pages-brunch
)
-
[
Metalsmith
](
https://gitlab.com/gitlab-examples/pages-metalsmith
)
-
[
Harp
](
https://gitlab.com/gitlab-examples/pages-harp
)
### Custom error codes pages
### Custom error codes pages
You can provide your own 403 and 404 error pages by creating the
`403.html`
and
You can provide your own 403 and 404 error pages by creating the
`403.html`
and
`404.html`
files respectively in the
`public/`
directory that will be included
`404.html`
files respectively in the root directory of the
`public/`
directory
in the artifacts.
that will be included in the artifacts.
If the case of
`404.html`
, there are different scenarios. For example:
-
If you use project Pages (served under
`/projectname/`
) and try to access
`/projectname/non/exsiting_file`
, GitLab Pages will try to serve first
`/projectname/404.html`
, and then
`/404.html`
.
-
If you use user/group Pages (served under
`/`
) and try to access
`/non/existing_file`
GitLab Pages will try to serve
`/404.html`
.
-
If you use a custom domain and try to access
`/non/existing_file`
, GitLab
Pages will try to server only
`/404.html`
.
### Remove the contents of your pages
### Remove the contents of your pages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment