Add plugins & config

This commit is contained in:
2025-07-16 07:33:09 +00:00
parent 4a0abe89c5
commit 21988a9666
4 changed files with 10 additions and 5 deletions

View File

@ -38,7 +38,8 @@
"require": {
"timber/timber": "^2.1",
"illuminate/collections": "^12.20",
"twbs/bootstrap": "^5.3"
"twbs/bootstrap": "^5.3",
"twbs/bootstrap-icons": "^1.13"
},
"require-dev": {
"automattic/wordbless": "^0.4.2",

View File

@ -8,10 +8,13 @@
* different template.
*/
namespace App;
/**namespace App;
use Timber\Timber;
$context = Timber::context();
Timber::render( 'templates/page.twig', $context );*/
$context = Timber::context();
Timber::render( 'templates/page.twig', $context );
$timber_post = Timber::get_post();
$context['post'] = $timber_post;
Timber::render( array( 'templates/page-' . $timber_post->post_name . '.twig', 'page.twig' ), $context );

View File

@ -43,7 +43,7 @@ class StarterSite extends Site {
//~ wp_enqueue_script( 'pop', get_template_directory_uri() . '/static/popper.min.js', [], $version, false);
wp_enqueue_script( 'twbs', get_template_directory_uri() . '/vendor/twbs/bootstrap/dist/js/bootstrap.min.js', [], $version, false);
wp_enqueue_script( 'lust', get_template_directory_uri() . '/static/site.js', [], $version, false);
//wp_enqueue_script( 'lust', get_template_directory_uri() . '/static/site.js', [], $version, false);
}

View File

@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="author" href="{{ site.theme.link }}/humans.txt" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<script src="https://unpkg.com/@popperjs/core@2"></script>
{% do action('get_header') %}
{{ function('wp_head') }}
</head>