File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ module.exports = function (eleventyConfig) {
90
90
sourcemap : 'true' ,
91
91
manifest : true ,
92
92
rollupOptions : {
93
+ external : [ "/pagefind/pagefind-ui.js" ] ,
93
94
output : {
94
95
assetFileNames : ( assetInfo ) => {
95
96
var info = assetInfo . name . split ( '.' ) ;
@@ -103,7 +104,7 @@ module.exports = function (eleventyConfig) {
103
104
manualChunks : {
104
105
PhotoSwipe : [ 'photoswipe' ] ,
105
106
PhotoSwipeLightbox : [ 'photoswipe/lightbox' ]
106
- }
107
+ } ,
107
108
} ,
108
109
plugins : [
109
110
rollupPluginCritical ( {
Original file line number Diff line number Diff line change 1
1
// generated pagefind UI
2
2
import '/pagefind/pagefind-ui.js' ; // xxx doesn't work on 1st build
3
+ // to study: https://syntackle.com/blog/pagefind-search-in-astro-site/
3
4
4
5
const initSearch = ( ) => {
5
6
/* global PagefindUI */
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ lastUpdate: 2024-09-26
35
35
</section >
36
36
37
37
<hr />
38
- <!-- xxx < section class="container">
38
+ <section class =" container" >
39
39
<div class =" search feature" >
40
40
<label for =" site-search" class =" input-search-label visually-hidden" >Campo di ricerca</label >
41
41
<div id =" searchBox" class =" search-box" ></div >
42
42
</div >
43
43
</section >
44
- -->
44
+
45
45
46
46
<!-- xxx <section class="container">
47
47
{% set projectslist = collections["design_" + page.lang] %}
You can’t perform that action at this time.
0 commit comments