-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Get rid of unnecessary safeHTML usage (#135)
Fixes #134. * Simplify post-meta.html template logic * Fixed indentation in previous commit * Use icon.html template for zodiac icons in lists * Remove unnecessary safeHTML usage in footer.html (busuanzi functionality unchanged, cannot test) * Improved previous commit, no unnecessary markup for the copyright symbol * Remove unnecessary safeHTML usage in style.html * Use icon.html partial in the header * Remove unnecesary safeHTML usage in script.html * Removed unnecessary safeHTML usage in menu.html * Remove unnecessary safeHTML use in header.html * Use icon.html partial in back-to-top and port-share components * Use icon.html partial in related-posts and socials components * Remove unnecessary safeHTML use in feed generation * Simplify minimal-footer-about component * Removed safeHTML usage from post-updated-badge component * Remove unnecessary safeHTML usage in post-copyright component * Remove unnecessary safeHTML usage in post-nav component * Simplify minimal-footer component and remove safeHTML usage * Simplify post-tags component and remove safeHTML usage * Made summary.html produce its result directly rather than via scratch, removed unnecessary safeHTML usage in home-posts.html * Use icon.html partial on home-footage page * Remove unnecessary safeHTML usage on post.html page * Remove unnecessary safeHTML usage on home-poetry.html page * Remove unnecessary safeHTML usage from OpenGraph data * Remove unnecessary safeHTML usage from utils/list-item.html * Improve image autodetection regex and remove unnecessary unsafeHTML usage in images.html * Remove unnecessary safeHTML usage from relative-url.html * Remove unnecessary safeHTML usage in content.html * Revert image auto-detection changes, these aren't useful * Delete the missing line in post-share * Revert to using urls.Parse on tag and category names passed to .GetPage again * Fix error caused by wrong context in list.html * Replace hyphen with en dash * Remove unnecessary safeHTML usage in post-gitinfo.html * Remove unnecessary safeHTML usage of busuanzi in footer.html Co-authored-by: reuixiy <reuixiy@gmail.com>
- Loading branch information
Showing
32 changed files
with
215 additions
and
270 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ if or (and .IsHome .Site.Params.displayBackToTopInHome) (and (not .IsHome) .Site.Params.enableBackToTop) }} | ||
<div id="back-to-top" class="back-to-top"> | ||
<a href="#">{{ index .Site.Data.SVG .Site.Params.backToTopIcon | safeHTML }}</a> | ||
<a href="#">{{ partial "utils/icon.html" (dict "Deliver" . "name" .Site.Params.backToTopIcon) }}</a> | ||
</div> | ||
{{ end }} | ||
{{ end }} |
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
Oops, something went wrong.