Add plugins & config
This commit is contained in:
@ -38,7 +38,8 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"timber/timber": "^2.1",
|
"timber/timber": "^2.1",
|
||||||
"illuminate/collections": "^12.20",
|
"illuminate/collections": "^12.20",
|
||||||
"twbs/bootstrap": "^5.3"
|
"twbs/bootstrap": "^5.3",
|
||||||
|
"twbs/bootstrap-icons": "^1.13"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"automattic/wordbless": "^0.4.2",
|
"automattic/wordbless": "^0.4.2",
|
||||||
|
9
page.php
9
page.php
@ -8,10 +8,13 @@
|
|||||||
* different template.
|
* different template.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace App;
|
/**namespace App;
|
||||||
|
|
||||||
use Timber\Timber;
|
use Timber\Timber;
|
||||||
|
$context = Timber::context();
|
||||||
|
Timber::render( 'templates/page.twig', $context );*/
|
||||||
|
|
||||||
$context = Timber::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 );
|
@ -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( '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( '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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="author" href="{{ site.theme.link }}/humans.txt" />
|
<link rel="author" href="{{ site.theme.link }}/humans.txt" />
|
||||||
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
||||||
|
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
||||||
{% do action('get_header') %}
|
{% do action('get_header') %}
|
||||||
{{ function('wp_head') }}
|
{{ function('wp_head') }}
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user