error_default.txp

Posted

This page template is utilised when viewing a page error (such as a 404 page not found).

<!DOCTYPE html>
<html lang="<txp:lang />" dir="<txp:text item="lang_dir" />">

<head>
    <meta charset="utf-8">
    <title>
        <txp:error_status />
    </title>

    <!-- Google font API -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700,700italic">

    <!-- CSS -->
    <txp:css format="link" media="" />
    <!-- ...or you can use (faster) external CSS files e.g. <link rel="stylesheet" href="<txp:site_url />css/default.css"> -->

    <meta name="generator" content="Textpattern CMS">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="none">

    <!-- content feeds -->
    <txp:feed_link flavor="atom" format="link" label="Atom" />
    <txp:feed_link flavor="rss" format="link" label="RSS" />

    <!-- HTML5/Media Queries support for IE 8 (you can remove this section if you don't intend to support IE 8) -->
    <!--[if lt IE 9]>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
        <txp:css format="link" media="" name="ie8" />
    <![endif]-->
</head>

<body class="error-page" itemscope itemtype="http://schema.org/WebPage">

    <!-- header -->
    <header class="site-header">
        <h1>
            <txp:link_to_home>
                <txp:site_name />
            </txp:link_to_home>
        </h1>
        <h3>
            <txp:site_slogan />
        </h3>
    </header>

    <!-- navigation -->
    <nav class="site-navigation" aria-label="<txp:text item="navigation" />" itemscope itemtype="http://schema.org/SiteNavigationElement">
        <txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break="">
            <li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>>
                <a itemprop="url" href="<txp:section url="1" />">
                    <txp:section title="1" />
                </a>
            </li>
        </txp:section_list>
    </nav>

    <div class="wrapper">
        <div class="container">

            <!-- Main content -->
            <main aria-label="<txp:text item="main_content" />">
                <h1 class="error-status">
                    <txp:error_status />
                </h1>
                <p class="error-msg">
                    <txp:error_message />
                </p>
            </main>

            <!-- Complementary content -->
            <aside class="complementary-content">

                <!-- links by default to form: 'search_input.misc.txp' unless you specify a different form -->
                <txp:search_input />

                <!-- feed links, default flavor is RSS, so we don't need to specify a flavor on the first feed_link -->
                <p>
                    <txp:feed_link class="feed-rss" label="RSS" />
                    /
                    <txp:feed_link class="feed-atom" flavor="atom" label="Atom" />
                </p>

                <!-- if links exist, renders a links list -->
                <txp:variable name="links" value='<txp:linklist limit="1" />' />

                <txp:if_variable name="links" value="">
                <txp:else />
                    <section>
                        <h4>
                            <txp:text item="links" />
                        </h4>

                        <!-- links by default to form: 'plainlinks.link.txp' unless you specify a different form -->
                        <txp:linklist wraptag="ul" break="li" />
                    </section>
                </txp:if_variable>

            </aside>

        </div> <!-- /.container -->
    </div> <!-- /.wrapper -->

    <!-- footer -->
    <footer class="site-footer" role="contentinfo">
        <p>
            <small>
                <txp:text item="published_with" />
                <a rel="external" href="http://textpattern.com" title="<txp:text item="go_txp_com" />">Textpattern CMS</a>
            </small>
        </p>
    </footer>

    <!-- add your own JavaScript here -->

</body>
</html>

Author