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: "post-a-post-with-plotly-js", 13 14 title: "a post with plotly.js", 15 16 description: "this is what included plotly.js code could look like", 17 section: "Posts", 18 handler: () => { 19 20 window.location.href = "/blog/2025/plotly/"; 21 22 }, 23 },{id: "post-a-post-with-image-galleries", 24 25 title: "a post with image galleries", 26 27 description: "this is what included image galleries could look like", 28 section: "Posts", 29 handler: () => { 30 31 window.location.href = "/blog/2024/photo-gallery/"; 32 33 }, 34 },{id: "post-google-gemini-updates-flash-1-5-gemma-2-and-project-astra", 35 36 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>', 37 38 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.", 39 section: "Posts", 40 handler: () => { 41 42 window.open("https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/", "_blank"); 43 44 }, 45 },{id: "post-a-post-with-tabs", 46 47 title: "a post with tabs", 48 49 description: "this is what included tabs in a post could look like", 50 section: "Posts", 51 handler: () => { 52 53 window.location.href = "/blog/2024/tabs/"; 54 55 }, 56 },{id: "post-a-post-with-typograms", 57 58 title: "a post with typograms", 59 60 description: "this is what included typograms code could look like", 61 section: "Posts", 62 handler: () => { 63 64 window.location.href = "/blog/2024/typograms/"; 65 66 }, 67 },{id: "post-a-post-that-can-be-cited", 68 69 title: "a post that can be cited", 70 71 description: "this is what a post that can be cited looks like", 72 section: "Posts", 73 handler: () => { 74 75 window.location.href = "/blog/2024/post-citation/"; 76 77 }, 78 },{id: "post-a-post-with-pseudo-code", 79 80 title: "a post with pseudo code", 81 82 description: "this is what included pseudo code could look like", 83 section: "Posts", 84 handler: () => { 85 86 window.location.href = "/blog/2024/pseudocode/"; 87 88 }, 89 },{id: "post-a-post-with-code-diff", 90 91 title: "a post with code diff", 92 93 description: "this is how you can display code diffs", 94 section: "Posts", 95 handler: () => { 96 97 window.location.href = "/blog/2024/code-diff/"; 98 99 }, 100 },{id: "post-a-post-with-advanced-image-components", 101 102 title: "a post with advanced image components", 103 104 description: "this is what advanced image components could look like", 105 section: "Posts", 106 handler: () => { 107 108 window.location.href = "/blog/2024/advanced-images/"; 109 110 }, 111 },{id: "post-a-post-with-vega-lite", 112 113 title: "a post with vega lite", 114 115 description: "this is what included vega lite code could look like", 116 section: "Posts", 117 handler: () => { 118 119 window.location.href = "/blog/2024/vega-lite/"; 120 121 }, 122 },{id: "post-a-post-with-geojson", 123 124 title: "a post with geojson", 125 126 description: "this is what included geojson code could look like", 127 section: "Posts", 128 handler: () => { 129
130 window.location.href = "/blog/2024/geojson-map/"; 131 132 }, 133 },{id: "post-a-post-with-echarts", 134 135 title: "a post with echarts", 136 137 description: "this is what included echarts code could look like", 138 section: "Posts", 139 handler: () => { 140 141 window.location.href = "/blog/2024/echarts/"; 142 143 }, 144 },{id: "post-a-post-with-chart-js", 145 146 title: "a post with chart.js", 147 148 description: "this is what included chart.js code could look like", 149 section: "Posts", 150 handler: () => { 151 152 window.location.href = "/blog/2024/chartjs/"; 153 154 }, 155 },{id: "post-a-post-with-tikzjax", 156 157 title: "a post with TikZJax", 158 159 description: "this is what included TikZ code could look like", 160 section: "Posts", 161 handler: () => { 162 163 window.location.href = "/blog/2023/tikzjax/"; 164 165 }, 166 },{id: "post-a-post-with-bibliography", 167 168 title: "a post with bibliography", 169 170 description: "an example of a blog post with bibliography", 171 section: "Posts", 172 handler: () => { 173 174 window.location.href = "/blog/2023/post-bibliography/"; 175 176 }, 177 },{id: "post-a-post-with-jupyter-notebook", 178 179 title: "a post with jupyter notebook", 180 181 description: "an example of a blog post with jupyter notebook", 182 section: "Posts", 183 handler: () => { 184 185 window.location.href = "/blog/2023/jupyter-notebook/"; 186 187 }, 188 },{id: "post-a-post-with-custom-blockquotes", 189 190 title: "a post with custom blockquotes", 191 192 description: "an example of a blog post with custom blockquotes", 193 section: "Posts", 194 handler: () => { 195 196 window.location.href = "/blog/2023/custom-blockquotes/"; 197 198 }, 199 },{id: "post-a-post-with-table-of-contents-on-a-sidebar", 200 201 title: "a post with table of contents on a sidebar", 202 203 description: "an example of a blog post with table of contents on a sidebar", 204 section: "Posts", 205 handler: () => { 206 207 window.location.href = "/blog/2023/sidebar-table-of-contents/"; 208 209 }, 210 },{id: "post-a-post-with-audios", 211 212 title: "a post with audios", 213 214 description: "this is what included audios could look like", 215 section: "Posts", 216 handler: () => { 217 218 window.location.href = "/blog/2023/audios/"; 219 220 }, 221 },{id: "post-a-post-with-videos", 222 223 title: "a post with videos", 224 225 description: "this is what included videos could look like", 226 section: "Posts", 227 handler: () => { 228 229 window.location.href = "/blog/2023/videos/"; 230 231 }, 232 },{id: "post-displaying-beautiful-tables-with-bootstrap-tables", 233 234 title: "displaying beautiful tables with Bootstrap Tables", 235 236 description: "an example of how to use Bootstrap Tables", 237 section: "Posts", 238 handler: () => { 239 240 window.location.href = "/blog/2023/tables/"; 241 242 }, 243 },{id: "post-a-post-with-table-of-contents", 244 245 title: "a post with table of contents", 246 247 description: "an example of a blog post with table of contents", 248 section: "Posts", 249 handler: () => { 250 251 window.location.href = "/blog/2023/table-of-contents/"; 252 253 }, 254 },{id: "post-a-post-with-giscus-comments", 255 256 title: "a post with giscus comments", 257 258 description: "an example of a blog post with giscus comments", 259 section: "Posts", 260 handler: () => { 261 262 window.location.href = "/blog/2022/giscus-comments/"; 263 264 }, 265 },{id: "post-displaying-external-posts-on-your-al-folio-blog", 266 267 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>', 268 269 description: "", 270 section: "Posts", 271 handler: () => { 272 273 window.open("https://medium.com/@al-folio/displaying-external-posts-on-your-al-folio-blog-b60a1d241a0a?source=rss-17feae71c3c4------2", "_blank"); 274 275 }, 276 },{id: "post-a-post-with-redirect", 277 278 title: "a post with redirect", 279 280 description: "you can also redirect to assets like pdf", 281 section: "Posts", 282 handler: () => { 283 284 window.location.href = "/assets/pdf/example_pdf.pdf"; 285 286 }, 287 },{id: "post-a-post-with-diagrams", 288 289 title: "a post with diagrams", 290 291 description: "an example of a blog post with diagrams", 292 section: "Posts", 293 handler: () => { 294 295 window.location.href = "/blog/2021/diagrams/"; 296 297 }, 298 },{id: "post-a-distill-style-blog-post", 299 300 title: "a distill-style blog post", 301 302 description: "an example of a distill-style blog post and main elements", 303 section: "Posts", 304 handler: () => { 305 306 window.location.href = "/blog/2021/distill/"; 307 308 }, 309 },{id: "post-a-post-with-twitter", 310 311 title: "a post with twitter", 312 313 description: "an example of a blog post with twitter", 314 section: "Posts", 315 handler: () => { 316 317 window.location.href = "/blog/2020/twitter/"; 318 319 }, 320 },{id: "post-a-post-with-disqus-comments", 321 322 title: "a post with disqus comments", 323 324 description: "an example of a blog post with disqus comments", 325 section: "Posts", 326 handler: () => { 327 328 window.location.href = "/blog/2015/disqus-comments/"; 329 330 }, 331 },{id: "post-a-post-with-math", 332 333 title: "a post with math", 334 335 description: "an example of a blog post with some math", 336 section: "Posts", 337 handler: () => { 338 339 window.location.href = "/blog/2015/math/"; 340 341 }, 342 },{id: "post-a-post-with-code", 343 344 title: "a post with code", 345 346 description: "an example of a blog post with some code", 347 section: "Posts", 348 handler: () => { 349 350 window.location.href = "/blog/2015/code/"; 351 352 }, 353 },{id: "post-a-post-with-images", 354 355 title: "a post with images", 356 357 description: "this is what included images could look like", 358 section: "Posts", 359 handler: () => { 360 361 window.location.href = "/blog/2015/images/"; 362 363 }, 364 },{id: "post-a-post-with-formatting-and-links", 365 366 title: "a post with formatting and links", 367 368 description: "march & april, looking forward to summer", 369 section: "Posts", 370 handler: () => { 371 372 window.location.href = "/blog/2015/formatting-and-links/"; 373 374 }, 375 },{id: "books-the-godfather", 376 title: 'The Godfather', 377 description: "", 378 section: "Books",handler: () => { 379 window.location.href = "/books/the_godfather/"; 380 },},{id: "news-a-simple-inline-announcement", 381 title: 'A simple inline announcement.', 382 description: "", 383 section: "News",}
383,{id: "news-a-long-announcement-with-details", 384 title: 'A long announcement with details', 385 description: "", 386 section: "News",handler: () => { 387 window.location.href = "/news/announcement_2/"; 388 },},{id: "news-a-simple-inline-announcement-with-markdown-emoji-sparkles-smile", 389 title: 'A simple inline announcement with Markdown emoji! :sparkles: :smile:', 390 description: "", 391 section: "News",},{id: "projects-project-1", 392 title: 'project 1', 393 description: "with background image", 394 section: "Projects",handler: () => { 395 window.location.href = "/projects/1_project/"; 396 },},{id: "projects-project-2", 397 title: 'project 2', 398 description: "a project with a background image and giscus comments", 399 section: "Projects",handler: () => { 400 window.location.href = "/projects/2_project/"; 401 },},{id: "projects-project-3-with-very-long-name", 402 title: 'project 3 with very long name', 403 description: "a project that redirects to another website", 404 section: "Projects",handler: () => { 405 window.location.href = "/projects/3_project/"; 406 },},{id: "projects-project-4", 407 title: 'project 4', 408 description: "another without an image", 409 section: "Projects",handler: () => { 410 window.location.href = "/projects/4_project/"; 411 },},{id: "projects-project-5", 412 title: 'project 5', 413 description: "a project with a background image", 414 section: "Projects",handler: () => { 415 window.location.href = "/projects/5_project/"; 416 },},{id: "projects-project-6", 417 title: 'project 6', 418 description: "a project with no image", 419 section: "Projects",handler: () => { 420 window.location.href = "/projects/6_project/"; 421 },},{id: "projects-project-7", 422 title: 'project 7', 423 description: "with background image", 424 section: "Projects",handler: () => { 425 window.location.href = "/projects/7_project/"; 426 },},{id: "projects-project-8", 427 title: 'project 8', 428 description: "an other project with a background image and giscus comments", 429 section: "Projects",handler: () => { 430 window.location.href = "/projects/8_project/"; 431 },},{id: "projects-project-9", 432 title: 'project 9', 433 description: "another project with an image ð", 434 section: "Projects",handler: () => { 435 window.location.href = "/projects/9_project/"; 436 },},{ 437 id: 'social-email', 438 title: 'email', 439 section: 'Socials', 440 handler: () => { 441 window.open("mailto:%79%6F%75@%65%78%61%6D%70%6C%65.%63%6F%6D", "_blank"); 442 }, 443 },{ 444 id: 'social-inspire', 445 title: 'Inspire HEP', 446 section: 'Socials', 447 handler: () => { 448 window.open("https://inspirehep.net/authors/1010907", "_blank"); 449 }, 450 },{ 451 id: 'social-rss', 452 title: 'RSS Feed', 453 section: 'Socials', 454 handler: () => { 455 window.open("/feed.xml", "_blank"); 456 }, 457 },{ 458 id: 'social-scholar', 459 title: 'Google Scholar', 460 section: 'Socials', 461 handler: () => { 462 window.open("https://scholar.google.com/citations?user=qc6CJjYAAAAJ", "_blank"); 463 }, 464 },{ 465 id: 'social-custom_social', 466 title: 'Custom_social', 467 section: 'Socials', 468 handler: () => { 469 window.open("https://www.alberteinstein.com/", "_blank"); 470 }, 471 },{ 472 id: 'light-theme', 473 title: 'Change theme to light', 474 description: 'Change the theme of the site to Light', 475 section: 'Theme', 476 handler: () => { 477 setThemeSetting("light"); 478 }, 479 }, 480 { 481 id: 'dark-theme', 482 title: 'Change theme to dark', 483 description: 'Change the theme of the site to Dark', 484 section: 'Theme', 485 handler: () => { 486 setThemeSetting("dark"); 487 }, 488 }, 489 { 490 id: 'system-theme', 491 title: 'Use system default theme', 492 description: 'Change the theme of the site to System Default', 493 section: 'Theme', 494 handler: () => { 495 setThemeSetting("system"); 496 }, 497 },];
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.