<?php
/**
 * The header for our theme
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 * @package PureNote
 */
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <?php wp_head(); ?>
</head>

<body <?php body_class(); ?> <?php purenote_schema_markup( 'html' ); ?>>
<?php wp_body_open(); ?>

<?php do_action( 'purenote_before_page' ); ?>

<div id="page" class="site">
    <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'purenote' ); ?></a>

    <?php
    /**
     * Header Section
     */
    do_action( 'purenote_header_section' );
    ?>

    <div id="content" class="site-content" <?php purenote_schema_markup( 'creative_work' ); ?>>

        <?php if ( is_home() && is_front_page() ) : ?>

            <?php
            /**
             * Frontpage Sections (Sticky Posts, Main Banner, etc.)
             */
            do_action( 'purenote_frontpage_section' );
            ?>

            <?php
            /**
             * Web Stories Section - Only on first page of front page
             */
            if ( is_front_page() && ! is_paged() ) {
                do_action( 'purenote_web_stories_hook' );
            }
            ?>

        <?php endif; ?>