Skip to content

Commit

Permalink
Use Bedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
hissy committed Apr 14, 2024
1 parent 7378597 commit 7a2751e
Show file tree
Hide file tree
Showing 13 changed files with 9,257 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
themes/theme_boilerplate/theme_bedrock_documentation/node_modules
7 changes: 7 additions & 0 deletions themes/theme_boilerplate/assets/css/main.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/theme_boilerplate/assets/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions themes/theme_boilerplate/assets/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/js/main.js": "/js/main.js",
"/css/main.css": "/css/main.css"
}
2 changes: 1 addition & 1 deletion themes/theme_boilerplate/elements/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</div>

<?php View::element('footer_required'); ?>
<script src="<?= $view->getThemePath() ?>/assets/js/bootstrap.bundle.js"></script>
<script src="<?= $view->getThemePath() ?>/assets/js/main.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion themes/theme_boilerplate/elements/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'pageMetaKeywords' => $pageMetaKeywords ?? '',
]);
?>
<link href="<?= $view->getThemePath() ?>/assets/css/bootstrap.css" rel="stylesheet">
<link href="<?= $view->getThemePath() ?>/assets/css/main.css" rel="stylesheet">
</head>
<body>
<div class="<?= $c->getPageWrapperClass() ?>">
4 changes: 4 additions & 0 deletions themes/theme_boilerplate/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/js/main.js": "/js/main.js",
"/css/main.css": "/css/main.css"
}
2 changes: 1 addition & 1 deletion themes/theme_boilerplate/page_theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PageTheme extends Theme
use BedrockThemeTrait {
getColorCollection as getBedrockColorCollection;
}

public function getThemeName()
{
return t('Boilerplate');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@concretecms/bedrock/assets/bedrock/js/frontend';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "@concretecms/bedrock/assets/bedrock/scss/frontend";
Loading

0 comments on commit 7a2751e

Please sign in to comment.