Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
{%- if page.redirect -%}
{% include head/redirect.html delay=page.redirect.delay destination=page.redirect.destination %}
{%- endif -%}

{%- include snippets/get-article-title.html article=page -%}
<title>{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
Expand Down
1 change: 1 addition & 0 deletions _includes/head/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta http-equiv="refresh" content="{{ include.delay }};url={{ include.destination }}">
8 changes: 8 additions & 0 deletions docs/_docs/en/2.3-layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Base on Base Layout.
| **sidebar** | `!!map` | | |
| **footer** | false | Set as `false` to hide footer on this page. | 2.2.3 |
| **lightbox** | true, false | Set as `true` to enable lightbox (modal image gallery) for large images on this page, you can set `lightbox-ignore` class name to ignore the certain image. | 2.2.4 |
| **redirect** | `!!map` | Redirection destination and delay. |

### header

Expand Down Expand Up @@ -103,6 +104,13 @@ Base on Base Layout.
| --- | --- | --- |
| **nav** | `!!str` | |

### redirect

| Variable | Option Values | Description
| --- | --- | --- |
| **destination** | `!!str` | Redirection destination URL. |
| **delay** | `!!int` | Delay in seconds before being redirected |

## Article Layout

Base on Page Layout.
Expand Down