-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: correct the PurgeCSS template example
- Loading branch information
Showing
7 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
exampleSite/layouts/shortcodes/code/purgecss-template-js.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
```js | ||
const tmplSearchResults = document.getElementById('template-search-results').innerHTML; | ||
render(tmplSearchResults, data); | ||
const tmpl = document.getElementById('template-custom-widget-bar').innerHTML; | ||
render(tmpl, data); | ||
``` |
10 changes: 7 additions & 3 deletions
10
exampleSite/layouts/shortcodes/code/purgecss-template-partial.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
```html | ||
<script type="text/html" id="template-search-results"> | ||
<div class="search-results"> | ||
... | ||
<div class="d-none" id="template-custom-widget-foo"> | ||
<div class="custom-widget-foo"></div> | ||
</div> | ||
|
||
<script type="text/html" id="template-custom-widget-bar"> | ||
<div class="custom-widget-bar"> | ||
NOTE THAT: ANY CSS INSIDE THE SCRIPT TAG WONT BE INCLUDED INTO THE STATS FILE. | ||
</div> | ||
</script> | ||
``` |
6 changes: 6 additions & 0 deletions
6
exampleSite/layouts/shortcodes/code/purgecss-template-stat.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
```bash | ||
$ cat hugo_stats.json | grep custom-widget- | ||
"custom-widget-foo", | ||
"template-custom-widget-foo", | ||
"template-custom-widget-bar", | ||
``` |