feat(core): integrasi Plus Jakarta Sans, refactor index.php, dan tambahkan page.php serta 404.php

This commit is contained in:
Mas Budi Kusuma
2026-09-15 21:11:36 +07:00
parent 226e09f2b1
commit bbdce3157d
5 changed files with 359 additions and 274 deletions
+12 -1
View File
@@ -7,6 +7,8 @@
function edukarsa_setup() {
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script' ) );
add_post_type_support( 'page', 'excerpt' );
register_nav_menus( array(
@@ -18,10 +20,19 @@ add_action( 'after_setup_theme', 'edukarsa_setup' );
// 2. MENGHUBUNGKAN ASET (CSS & JS FRONTEND)
function edukarsa_scripts() {
// Memuat Google Font: Plus Jakarta Sans (Native Webfont)
wp_enqueue_style(
'edukarsa-google-fonts',
'https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap',
array(),
null
);
// CSS Utama Tema dengan Cache Busting time()
wp_enqueue_style(
'edukarsa-style',
get_template_directory_uri() . '/style.css',
array(),
array('edukarsa-google-fonts'),
time(),
'all'
);