<?php
/**
 * Functions and definitions for the theme
 */


// Register custom block patterns category
function nextra_patterns_category() {
    register_block_pattern_category(
        'nextra',
        array( 'label' => esc_html__( 'Nextra', 'nextra' ) )
    );
}
add_action( 'init', 'nextra_patterns_category' );

// Enable excerpt support for pages
function nextra_add_excerpt_support() {
    add_post_type_support('page', 'excerpt');
}
add_action('init', 'nextra_add_excerpt_support');

// Enqueue stylesheet 
function nextra_enqueue_styles() {
    wp_enqueue_style( 'nextra-style', get_stylesheet_uri() );
} 
add_action( 'wp_enqueue_scripts', 'nextra_enqueue_styles' );
