Skip to content

Commit

Permalink
Added redirect template.
Browse files Browse the repository at this point in the history
  • Loading branch information
blendermf committed May 21, 2016
1 parent 0d60194 commit a90c7e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions theme/mindcrack/redirect.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "_layout.twig" %}

{% block content %}

<article>
<h1 class="section-heading">Redirecting...</h1>
{% if record.templatefields.redirect_url is not empty %}
{{ redirect(record.templatefields.redirect_url) }}
{% endif %}
</article>

{% endblock %}
7 changes: 6 additions & 1 deletion theme/mindcrack/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ templatefields:
askcrack_embed_url:
type: text
label: AskCrack Embed url
pattern: "url"
pattern: "url"
redirect.twig:
redirect_url:
type: text
pattern: "url"
label: Redirect URL

0 comments on commit a90c7e1

Please sign in to comment.