Skip to content

Commit

Permalink
rebuilding site Mon May 27 07:05:27 PM IST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ppipada committed May 27, 2024
1 parent d1479f9 commit 5b87aa3
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 14 deletions.
2 changes: 1 addition & 1 deletion index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>Copyright © 2016-2024 Pankaj Pipada. All Rights Reserved.</copyright>
<lastBuildDate>Mon, 27 May 2024 18:53:41 +0530</lastBuildDate>
<lastBuildDate>Mon, 27 May 2024 19:05:21 +0530</lastBuildDate>
<atom:link href="https://pankajpipada.com/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo - Integrating Datatables</title>
Expand Down

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

12 changes: 9 additions & 3 deletions posts/2024-05-27-hugo-search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,17 @@ <h2 id="step-1-create-a-data-index-for-search">Step 1: Create a data index for s
</span></span><span style="display:flex;"><span> window.<span style="color:#a6e22e">pankajpipadaCom</span>.<span style="color:#a6e22e">lunrIndex</span> <span style="color:#f92672">=</span> <span style="color:#a6e22e">lunr</span>(<span style="color:#66d9ef">function</span> () {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">ref</span>(<span style="color:#e6db74">&#34;url&#34;</span>);
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;content&#34;</span>, { <span style="color:#a6e22e">boost</span><span style="color:#f92672">:</span> <span style="color:#ae81ff">10</span> });
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;title&#34;</span>, { <span style="color:#a6e22e">boost</span><span style="color:#f92672">:</span> <span style="color:#ae81ff">15</span> });
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;tags&#34;</span>);
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;title&#34;</span>, { <span style="color:#a6e22e">boost</span><span style="color:#f92672">:</span> <span style="color:#ae81ff">20</span> });
</span></span><span style="display:flex;"><span> <span style="color:#75715e">// Define the new field for concatenated tags
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;tags_str&#34;</span>, { <span style="color:#a6e22e">boost</span><span style="color:#f92672">:</span> <span style="color:#ae81ff">15</span> });
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">field</span>(<span style="color:#e6db74">&#34;date&#34;</span>);
</span></span><span style="display:flex;"><span> window.<span style="color:#a6e22e">pankajpipadaCom</span>.<span style="color:#a6e22e">posts</span>.<span style="color:#a6e22e">forEach</span>(<span style="color:#66d9ef">function</span> (<span style="color:#a6e22e">doc</span>) {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">add</span>(<span style="color:#a6e22e">doc</span>);
</span></span><span style="display:flex;"><span> <span style="color:#75715e">// Create a new field &#39;tags_str&#39; for indexing
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span> <span style="color:#66d9ef">const</span> <span style="color:#a6e22e">docForIndexing</span> <span style="color:#f92672">=</span> {
</span></span><span style="display:flex;"><span> ...<span style="color:#a6e22e">doc</span>,
</span></span><span style="display:flex;"><span> <span style="color:#a6e22e">tags_str</span><span style="color:#f92672">:</span> <span style="color:#a6e22e">doc</span>.<span style="color:#a6e22e">tags</span>.<span style="color:#a6e22e">join</span>(<span style="color:#e6db74">&#34; &#34;</span>),
</span></span><span style="display:flex;"><span> };
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">this</span>.<span style="color:#a6e22e">add</span>(<span style="color:#a6e22e">docForIndexing</span>);
</span></span><span style="display:flex;"><span> }, <span style="color:#66d9ef">this</span>);
</span></span><span style="display:flex;"><span> });
</span></span><span style="display:flex;"><span> <span style="color:#a6e22e">console</span>.<span style="color:#a6e22e">log</span>(<span style="color:#e6db74">&#34;Index built at&#34;</span>, <span style="color:#66d9ef">new</span> Date().<span style="color:#a6e22e">toISOString</span>());
Expand Down
2 changes: 1 addition & 1 deletion posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>Copyright © 2016-2024 Pankaj Pipada. All Rights Reserved.</copyright>
<lastBuildDate>Mon, 27 May 2024 18:53:41 +0530</lastBuildDate>
<lastBuildDate>Mon, 27 May 2024 19:05:21 +0530</lastBuildDate>
<atom:link href="https://pankajpipada.com/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo - Integrating Datatables</title>
Expand Down
2 changes: 1 addition & 1 deletion search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h2 class="m-0 mt-4">



<script src="https://pankajpipada.com/js/search.min.a65c3e05b6a3923549243e532112eaa1cfc371b1f1f024642a24e6fe559b7d0b.js" integrity="sha256-plw&#43;BbajkjVJJD5TIRLqoc/DcbHx8CRkKiTm/lWbfQs=" defer></script>
<script src="https://pankajpipada.com/js/search.min.7e968a9ef35980108f5b9b4eed6c8b672abb5b753bdca314ba6b6f8b07fc5768.js" integrity="sha256-fpaKnvNZgBCPW5tO7WyLZyq7W3U73KMUumtviwf8V2g=" defer></script>


</div>
Expand Down
10 changes: 5 additions & 5 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://pankajpipada.com/tags/hugo/</loc>
<lastmod>2024-05-27T18:53:41+05:30</lastmod>
<lastmod>2024-05-27T19:05:21+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/posts/2024-05-27-hugo-datatables/</loc>
<lastmod>2024-05-27T18:53:41+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/posts/</loc>
<lastmod>2024-05-27T18:53:41+05:30</lastmod>
<lastmod>2024-05-27T19:05:21+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/</loc>
<lastmod>2024-05-27T18:53:41+05:30</lastmod>
<lastmod>2024-05-27T19:05:21+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/tags/</loc>
<lastmod>2024-05-27T18:53:41+05:30</lastmod>
<lastmod>2024-05-27T19:05:21+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/posts/2024-05-27-hugo-search/</loc>
<lastmod>2024-05-27T18:48:53+05:30</lastmod>
<lastmod>2024-05-27T19:05:21+05:30</lastmod>
</url><url>
<loc>https://pankajpipada.com/posts/2024-05-27-hugo-copy/</loc>
<lastmod>2024-05-27T18:48:53+05:30</lastmod>
Expand Down
2 changes: 1 addition & 1 deletion tags/hugo/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>Copyright © 2016-2024 Pankaj Pipada. All Rights Reserved.</copyright>
<lastBuildDate>Mon, 27 May 2024 18:53:41 +0530</lastBuildDate>
<lastBuildDate>Mon, 27 May 2024 19:05:21 +0530</lastBuildDate>
<atom:link href="https://pankajpipada.com/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo - Integrating Datatables</title>
Expand Down
2 changes: 1 addition & 1 deletion tags/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>Copyright © 2016-2024 Pankaj Pipada. All Rights Reserved.</copyright>
<lastBuildDate>Mon, 27 May 2024 18:53:41 +0530</lastBuildDate>
<lastBuildDate>Mon, 27 May 2024 19:05:21 +0530</lastBuildDate>
<atom:link href="https://pankajpipada.com/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Hugo</title>
Expand Down

0 comments on commit 5b87aa3

Please sign in to comment.