Skip to content

Commit

Permalink
Revert "Add a option to include comments for the htmlmin netlify plugin"
Browse files Browse the repository at this point in the history
This reverts commit 5d59061.
  • Loading branch information
Robin-Wils authored and kaushalmodi committed May 24, 2021
1 parent cb65704 commit 27ea830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
35 changes: 5 additions & 30 deletions layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,19 @@ <h1>{{ .Title }}</h1>
</form>
<hr />

{{ partial "htmlmin-ignore-comment" . }}
<div id="search-results"></div>
{{ partial "htmlmin-ignore-comment" . }}
</div>

<template id="search-result-template"><div class="search_summary">
<h2 class="post-title no-text-decoration">
{{ partial "htmlmin-ignore-comment" . }}
<a class="search_link search_title" href=""></a>
{{ partial "htmlmin-ignore-comment" . }}
</h2>
<p>
{{ partial "htmlmin-ignore-comment" . }}
<em class="search_snippet"></em>
{{ partial "htmlmin-ignore-comment" . }}
</p>
<h2 class="post-title no-text-decoration"><a class="search_link search_title" href=""></a></h2>
<p><em class="search_snippet"></em></p>
<small>
<table>
<tr class="search_iftags">
<td><strong>Tags</strong></td>
{{ partial "htmlmin-ignore-comment" . }}
<td class="search_tags"></td>
{{ partial "htmlmin-ignore-comment" . }}
</tr>
<tr class="search_ifcategories">
<td><strong>Categories</strong></td>
{{ partial "htmlmin-ignore-comment" . }}
<td class="search_categories"></td>
{{ partial "htmlmin-ignore-comment" . }}
</tr>
<tr class="search_iftags"><td><strong>Tags</strong></td><td class="search_tags"></td></tr>
<tr class="search_ifcategories"><td><strong>Categories</strong></td><td class="search_categories"></td></tr>
</table>
</small>
</div>
</template>
</div></template>
{{ end }}

{{ define "footer" }}
Expand All @@ -68,15 +47,11 @@ <h2 class="post-title no-text-decoration">
// @license-end
</script>
<!-- These are the two libraries needed for current browsers. -->
{{ partial "htmlmin-ignore-comment" . }}
<script src={{ "js/libs/fuse.js/3.2.1/fuse.min.js" | absURL }}></script>
<script src={{ "js/libs/mark.js/9.0.0/mark.min.js" | absURL }}></script>
{{ partial "htmlmin-ignore-comment" . }}

<!-- Below works *only if* this theme component is named "hugo-search-fuse-js"
AND *if* the themesDir is left at the default value of "themes". -->
{{ $search_js_md5 := (readFile "themes/hugo-search-fuse-js/static/js/search.js" | md5) }}
{{ partial "htmlmin-ignore-comment" . }}
<script src={{ printf "%s?%s" ("js/search.js" | absURL) $search_js_md5 }}></script>
{{ partial "htmlmin-ignore-comment" . }}
{{ end }}
7 changes: 0 additions & 7 deletions layouts/partials/htmlmin-ignore-comment.html

This file was deleted.

0 comments on commit 27ea830

Please sign in to comment.