1// get the ninja-keys element 2const ninja = document.querySelector('ninja-keys'); 3 4// add the home and posts menu items 5ninja.data = [{ 6 id: "nav-about", 7 title: "about", 8 section: "Navigation", 9 handler: () => { 10 window.location.href = "/"; 11 }, 12 },{id: "nav-blog", 13 title: "blog", 14 description: "", 15 section: "Navigation", 16 handler: () => { 17 window.location.href = "/blog/"; 18 }, 19 },{id: "nav-publications", 20 title: "publications", 21 description: "publications by categories in reversed chronological order. generated by jekyll-scholar.", 22 section: "Navigation", 23 handler: () => { 24 window.location.href = "/publications/"; 25 }, 26 },{id: "nav-projects", 27 title: "projects", 28 description: "A growing collection of your cool projects.", 29 section: "Navigation", 30 handler: () => { 31 window.location.href = "/projects/"; 32 }, 33 },{id: "nav-repositories", 34 title: "repositories", 35 description: "Edit the `_data/repositories.yml` and change the `github_users` and `github_repos` lists to include your own GitHub profile and repositories.", 36 section: "Navigation", 37 handler: () => { 38 window.location.href = "/repositories/"; 39 }, 40 },{id: "nav-cv", 41 title: "cv", 42 description: "This is a description of the page. You can modify it in '_pages/cv.md'. You can also change or remove the top pdf download button.", 43 section: "Navigation", 44 handler: () => { 45 window.location.href = "/cv/"; 46 }, 47 },{id: "nav-teaching", 48 title: "teaching", 49 description: "Materials for courses you taught. Replace this text with your description.", 50 section: "Navigation", 51 handler: () => { 52 window.location.href = "/teaching/"; 53 }, 54 },{id: "nav-people", 55 title: "people", 56 description: "members of the lab or group", 57 section: "Navigation", 58 handler: () => { 59 window.location.href = "/people/"; 60 }, 61 },{id: "dropdown-bookshelf", 62 title: "bookshelf", 63 description: "", 64 section: "Dropdown", 65 handler: () => { 66 window.location.href = "/books/"; 67 }, 68 },{id: "dropdown-blog", 69 title: "blog", 70 description: "", 71 section: "Dropdown", 72 handler: () => { 73 window.location.href = "/blog/"; 74 }, 75 },{id: "post-a-post-with-plotly-js", 76 77 title: "a post with plotly.js", 78 79 description: "this is what included plotly.js code could look like", 80 section: "Posts", 81 handler: () => { 82 83 window.location.href = "/blog/2025/plotly/"; 84 85 }, 86 },{id: "post-a-post-with-image-galleries", 87 88 title: "a post with image galleries", 89 90 description: "this is what included image galleries could look like", 91 section: "Posts", 92 handler: () => { 93 94 window.location.href = "/blog/2024/photo-gallery/"; 95 96 }, 97 },{id: "post-google-gemini-updates-flash-1-5-gemma-2-and-project-astra", 98 99 title: 'Google Gemini updates: Flash 1.5, Gemma 2 and Project Astra <svg width="1.2rem" height="1.2rem" top=".5rem" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>', 100 101 description: "Weâre sharing updates across our Gemini family of models and a glimpse of Project Astra, our vision for the future of AI assistants.", 102 section: "Posts", 103 handler: () => { 104 105 window.open("https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/", "_blank"); 106 107 }, 108 },{id: "post-a-post-with-tabs", 109 110 title: "a post with tabs", 111 112 description: "this is what included tabs in a post could look like", 113 section: "Posts", 114 handler: () => { 115 116 window.location.href = "/blog/2024/tabs/"; 117 118 }, 119 },{id: "post-a-post-with-typograms", 120 121 title: "a post with typograms", 122 123 description: "this is what included typograms code could look like", 124 section: "Posts", 125 handler: () => { 126 127 window.location.href = "/blog/2024/typograms/"; 128 129 }, 130 },{id: "post-a-post-that-can-be-cited", 131 132 title: "a post that can be cited", 133 134 description: "this is what a post that can be cited looks like", 135 section: "Posts", 136 handler: () => { 137 138 window.location.href = "/blog/2024/post-citation/"; 139 140 }, 141 },{id: "post-a-post-with-pseudo-code", 142 143 title: "a post with pseudo code", 144 145 description: "this is what included pseudo code could look like", 146 section: "Posts", 147 handler: () => { 148 149 window.location.href = "/blog/2024/pseudocode/"; 150 151 }, 152 },{id: "post-a-post-with-code-diff", 153 154 title: "a post with code diff", 155 156 description: "this is how you can display code diffs", 157 section: "Posts", 158 handler: () => { 159 160 window.location.href = "/blog/2024/code-diff/"; 161 162 }, 163 },{id: "post-a-post-with-advanced-image-components", 164 165 title: "a post with advanced image components", 166 167 description: "this is what advanced image components could look like", 168 section: "Posts", 169 handler: () => { 170 171 window.location.href = "/blog/2024/advanced-images/"; 172 173 }, 174 },{id: "post-a-post-with-vega-lite", 175 176 title: "a post with vega lite", 177 178 description: "this is what included vega lite code could look like", 179 section: "Posts", 180 handler: () => { 181 182 window.location.href = "/blog/2024/vega-lite/"; 183 184 }, 185 },{id: "post-a-post-with-geojson", 186 187 title: "a post with geojson", 188 189 description: "this is what included geojson code could look like", 190 section: "Posts", 191 handler: () => { 192
193 window.location.href = "/blog/2024/geojson-map/"; 194 195 }, 196 },{id: "post-a-post-with-echarts", 197 198 title: "a post with echarts", 199 200 description: "this is what included echarts code could look like", 201 section: "Posts", 202 handler: () => { 203 204 window.location.href = "/blog/2024/echarts/"; 205 206 }, 207 },{id: "post-a-post-with-chart-js", 208 209 title: "a post with chart.js", 210 211 description: "this is what included chart.js code could look like", 212 section: "Posts", 213 handler: () => { 214 215 window.location.href = "/blog/2024/chartjs/"; 216 217 }, 218 },{id: "post-a-post-with-tikzjax", 219 220 title: "a post with TikZJax", 221 222 description: "this is what included TikZ code could look like", 223 section: "Posts", 224 handler: () => { 225 226 window.location.href = "/blog/2023/tikzjax/"; 227 228 }, 229 },{id: "post-a-post-with-bibliography", 230 231 title: "a post with bibliography", 232 233 description: "an example of a blog post with bibliography", 234 section: "Posts", 235 handler: () => { 236 237 window.location.href = "/blog/2023/post-bibliography/"; 238 239 }, 240 },{id: "post-a-post-with-jupyter-notebook", 241 242 title: "a post with jupyter notebook", 243 244 description: "an example of a blog post with jupyter notebook", 245 section: "Posts", 246 handler: () => { 247 248 window.location.href = "/blog/2023/jupyter-notebook/"; 249 250 }, 251 },{id: "post-a-post-with-custom-blockquotes", 252 253 title: "a post with custom blockquotes", 254 255 description: "an example of a blog post with custom blockquotes", 256 section: "Posts", 257 handler: () => { 258 259 window.location.href = "/blog/2023/custom-blockquotes/"; 260 261 }, 262 },{id: "post-a-post-with-table-of-contents-on-a-sidebar", 263 264 title: "a post with table of contents on a sidebar", 265 266 description: "an example of a blog post with table of contents on a sidebar", 267 section: "Posts", 268 handler: () => { 269 270 window.location.href = "/blog/2023/sidebar-table-of-contents/"; 271 272 }, 273 },{id: "post-a-post-with-audios", 274 275 title: "a post with audios", 276 277 description: "this is what included audios could look like", 278 section: "Posts", 279 handler: () => { 280 281 window.location.href = "/blog/2023/audios/"; 282 283 }, 284 },{id: "post-a-post-with-videos", 285 286 title: "a post with videos", 287 288 description: "this is what included videos could look like", 289 section: "Posts", 290 handler: () => { 291 292 window.location.href = "/blog/2023/videos/"; 293 294 }, 295 },{id: "post-displaying-beautiful-tables-with-bootstrap-tables", 296 297 title: "displaying beautiful tables with Bootstrap Tables", 298 299 description: "an example of how to use Bootstrap Tables", 300 section: "Posts", 301 handler: () => { 302 303 window.location.href = "/blog/2023/tables/"; 304 305 }, 306 },{id: "post-a-post-with-table-of-contents", 307 308 title: "a post with table of contents", 309 310 description: "an example of a blog post with table of contents", 311 section: "Posts", 312 handler: () => { 313 314 window.location.href = "/blog/2023/table-of-contents/"; 315 316 }, 317 },{id: "post-a-post-with-giscus-comments", 318 319 title: "a post with giscus comments", 320 321 description: "an example of a blog post with giscus comments", 322 section: "Posts", 323 handler: () => { 324 325 window.location.href = "/blog/2022/giscus-comments/"; 326 327 }, 328 },{id: "post-displaying-external-posts-on-your-al-folio-blog", 329 330 title: 'Displaying External Posts on Your al-folio Blog <svg width="1.2rem" height="1.2rem" top=".5rem" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>', 331 332 description: "", 333 section: "Posts", 334 handler: () => { 335 336 window.open("https://medium.com/@al-folio/displaying-external-posts-on-your-al-folio-blog-b60a1d241a0a?source=rss-17feae71c3c4------2", "_blank"); 337 338 }, 339 },{id: "post-a-post-with-redirect", 340 341 title: "a post with redirect", 342 343 description: "you can also redirect to assets like pdf", 344 section: "Posts", 345 handler: () => { 346 347 window.location.href = "/assets/pdf/example_pdf.pdf"; 348 349 }, 350 },{id: "post-a-post-with-diagrams", 351 352 title: "a post with diagrams", 353 354 description: "an example of a blog post with diagrams", 355 section: "Posts", 356 handler: () => { 357 358 window.location.href = "/blog/2021/diagrams/"; 359 360 }, 361 },{id: "post-a-distill-style-blog-post", 362 363 title: "a distill-style blog post", 364 365 description: "an example of a distill-style blog post and main elements", 366 section: "Posts", 367 handler: () => { 368 369 window.location.href = "/blog/2021/distill/"; 370 371 }, 372 },{id: "post-a-post-with-twitter", 373 374 title: "a post with twitter", 375 376 description: "an example of a blog post with twitter", 377 section: "Posts", 378 handler: () => { 379 380 window.location.href = "/blog/2020/twitter/"; 381 382 }, 383 },{id: "post-a-post-with-disqus-comments", 384 385 title: "a post with disqus comments", 386 387 description: "an example of a blog post with disqus comments", 388 section: "Posts", 389 handler: () => { 390 391 window.location.href = "/blog/2015/disqus-comments/"; 392 393 }, 394 },{id: "post-a-post-with-math", 395 396 title: "a post with math", 397 398 description: "an example of a blog post with some math", 399 section: "Posts", 400 handler: () => { 401 402 window.location.href = "/blog/2015/math/"; 403 404 }, 405 },{id: "post-a-post-with-code", 406 407 title: "a post with code", 408 409 description: "an example of a blog post with some code", 410 section: "Posts", 411 handler: () => { 412 413 window.location.href = "/blog/2015/code/"; 414 415 }, 416 },{id: "post-a-post-with-images", 417 418 title: "a post with images", 419 420 description: "this is what included images could look like", 421 section: "Posts", 422 handler: () => { 423 424 window.location.href = "/blog/2015/images/"; 425 426 }, 427 },{id: "post-a-post-with-formatting-and-links", 428 429 title: "a post with formatting and links", 430 431 description: "march & april, looking forward to summer", 432 section: "Posts", 433 handler: () => { 434 435 window.location.href = "/blog/2015/formatting-and-links/"; 436 437 }, 438 },{id: "books-the-godfather", 439 title: 'The Godfather', 440 description: "", 441 section: "Books",handler: () => { 442 window.location.href = "/books/the_godfather/"; 443 },},{id: "news-a-simple-inline-announcement", 444 title: 'A simple inline announcement.', 445 description: "", 446 section: "News",}
446,{id: "news-a-long-announcement-with-details", 447 title: 'A long announcement with details', 448 description: "", 449 section: "News",handler: () => { 450 window.location.href = "/news/announcement_2/"; 451 },},{id: "news-a-simple-inline-announcement-with-markdown-emoji-sparkles-smile", 452 title: 'A simple inline announcement with Markdown emoji! :sparkles: :smile:', 453 description: "", 454 section: "News",},{id: "projects-project-1", 455 title: 'project 1', 456 description: "with background image", 457 section: "Projects",handler: () => { 458 window.location.href = "/projects/1_project/"; 459 },},{id: "projects-project-2", 460 title: 'project 2', 461 description: "a project with a background image and giscus comments", 462 section: "Projects",handler: () => { 463 window.location.href = "/projects/2_project/"; 464 },},{id: "projects-project-3-with-very-long-name", 465 title: 'project 3 with very long name', 466 description: "a project that redirects to another website", 467 section: "Projects",handler: () => { 468 window.location.href = "/projects/3_project/"; 469 },},{id: "projects-project-4", 470 title: 'project 4', 471 description: "another without an image", 472 section: "Projects",handler: () => { 473 window.location.href = "/projects/4_project/"; 474 },},{id: "projects-project-5", 475 title: 'project 5', 476 description: "a project with a background image", 477 section: "Projects",handler: () => { 478 window.location.href = "/projects/5_project/"; 479 },},{id: "projects-project-6", 480 title: 'project 6', 481 description: "a project with no image", 482 section: "Projects",handler: () => { 483 window.location.href = "/projects/6_project/"; 484 },},{id: "projects-project-7", 485 title: 'project 7', 486 description: "with background image", 487 section: "Projects",handler: () => { 488 window.location.href = "/projects/7_project/"; 489 },},{id: "projects-project-8", 490 title: 'project 8', 491 description: "an other project with a background image and giscus comments", 492 section: "Projects",handler: () => { 493 window.location.href = "/projects/8_project/"; 494 },},{id: "projects-project-9", 495 title: 'project 9', 496 description: "another project with an image ð", 497 section: "Projects",handler: () => { 498 window.location.href = "/projects/9_project/"; 499 },},{ 500 id: 'social-cv', 501 title: 'CV', 502 section: 'Socials', 503 handler: () => { 504 window.open("/assets/pdf/example_pdf.pdf", "_blank"); 505 }, 506 },{ 507 id: 'social-email', 508 title: 'email', 509 section: 'Socials', 510 handler: () => { 511 window.open("mailto:%79%6F%75@%65%78%61%6D%70%6C%65.%63%6F%6D", "_blank"); 512 }, 513 },{ 514 id: 'social-inspire', 515 title: 'Inspire HEP', 516 section: 'Socials', 517 handler: () => { 518 window.open("https://inspirehep.net/authors/1010907", "_blank"); 519 }, 520 },{ 521 id: 'social-rss', 522 title: 'RSS Feed', 523 section: 'Socials', 524 handler: () => { 525 window.open("/feed.xml", "_blank"); 526 }, 527 },{ 528 id: 'social-scholar', 529 title: 'Google Scholar', 530 section: 'Socials', 531 handler: () => { 532 window.open("https://scholar.google.com/citations?user=qc6CJjYAAAAJ", "_blank"); 533 }, 534 },{ 535 id: 'social-custom_social', 536 title: 'Custom_social', 537 section: 'Socials', 538 handler: () => { 539 window.open("https://www.alberteinstein.com/", "_blank"); 540 }, 541 },{ 542 id: 'light-theme', 543 title: 'Change theme to light', 544 description: 'Change the theme of the site to Light', 545 section: 'Theme', 546 handler: () => { 547 setThemeSetting("light"); 548 }, 549 }, 550 {
551 id: 'dark-theme', 552 title: 'Change theme to dark', 553 description: 'Change the theme of the site to Dark', 554 section: 'Theme', 555 handler: () => { 556 setThemeSetting("dark"); 557 }, 558 }, 559 { 560 id: 'system-theme', 561 title: 'Use system default theme', 562 description: 'Change the theme of the site to System Default', 563 section: 'Theme', 564 handler: () => { 565 setThemeSetting("system"); 566 }, 567 },];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.