Move search to _libraries
Dieser Commit ist enthalten in:
Ursprung
b06009ebbd
Commit
57b3848430
@ -23,7 +23,6 @@ COPY libs/ /daux/libs/
|
||||
COPY templates/ /daux/templates/
|
||||
COPY themes/ /daux/themes/
|
||||
COPY _libraries/ /daux/_libraries/
|
||||
COPY search/ /daux/search/
|
||||
COPY global.json /daux/global.json
|
||||
COPY index.php /daux/index.php
|
||||
|
||||
|
Dateidiff unterdrückt, weil mindestens eine Zeile zu lang ist
1
_libraries/search.min.js.map
Normale Datei
1
_libraries/search.min.js.map
Normale Datei
Dateidiff unterdrückt, weil mindestens eine Zeile zu lang ist
@ -25,7 +25,7 @@ module.exports = {
|
||||
search: {
|
||||
runner: "rollup",
|
||||
source: "src/js/search/index.js",
|
||||
destination: "search/search.min.js"
|
||||
destination: "_libraries/search.min.js"
|
||||
},
|
||||
theme_daux: {
|
||||
runner: "rollup",
|
||||
|
@ -78,12 +78,8 @@ class Generator implements \Todaymade\Daux\Format\Base\Generator, LiveGenerator
|
||||
);
|
||||
|
||||
if ($params['html']['search']) {
|
||||
GeneratorHelper::copyRecursive(
|
||||
$this->daux->local_base . DIRECTORY_SEPARATOR . 'search' . DIRECTORY_SEPARATOR,
|
||||
$destination . DIRECTORY_SEPARATOR . 'search'
|
||||
);
|
||||
file_put_contents(
|
||||
$destination . DIRECTORY_SEPARATOR . 'search' . DIRECTORY_SEPARATOR . 'search_index.json',
|
||||
$destination . DIRECTORY_SEPARATOR . '_search_index.json',
|
||||
json_encode(['pages' => $this->indexed_pages])
|
||||
);
|
||||
|
||||
|
Dateidiff unterdrückt, weil mindestens eine Zeile zu lang ist
@ -30,7 +30,7 @@ class SearchEngine {
|
||||
descriptiveWords: 25,
|
||||
highlightTerms: true,
|
||||
highlightEveryTerm: false,
|
||||
contentLocation: "search/search_index.json",
|
||||
contentLocation: "_search_index.json",
|
||||
...options
|
||||
};
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
<?php if ($params['html']['search']) { ?>
|
||||
<!-- Search -->
|
||||
<link href="<?= $base_url; ?>search/search.css" rel="stylesheet">
|
||||
<link href="<?= $base_url; ?>_libraries/search.css" rel="stylesheet">
|
||||
<?php } ?>
|
||||
</head>
|
||||
<body class="<?= $params['html']['float'] ? 'with-float' : ''; ?> <?= $this->section('classes'); ?>">
|
||||
|
@ -23,7 +23,7 @@
|
||||
</script>
|
||||
|
||||
<!-- Search -->
|
||||
<script type="text/javascript" src="<?php echo $base_url; ?>search/search.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo $base_url; ?>_libraries/search.min.js"></script>
|
||||
|
||||
<script>
|
||||
window.search({'base_url': '<?php echo $base_url?>'})
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren