diff options
author | silverwind <me@silverwind.io> | 2020-01-28 22:57:20 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2020-01-28 23:57:20 +0200 |
commit | b9690d7c0b4980c46b3416e36478fa0140dd5f9e (patch) | |
tree | 9395508c79655a7807f98de4d0a4fd75267f6a76 /templates/base/footer.tmpl | |
parent | d879353632c5220c8ac0e3831311ebfe7cf357fe (diff) | |
download | gitea-b9690d7c0b4980c46b3416e36478fa0140dd5f9e.tar.gz gitea-b9690d7c0b4980c46b3416e36478fa0140dd5f9e.zip |
move highlight.js to npm/webpack (#10011)
- introduced window.config to help with js-based lazy-loading
- adjusted webpack chunk naming to avoid 'vendors~name.js' that webpack
defaults to for vendor chunks.
- added theme class to html and prefixed all selectors. this is
neccesary so that the theme styles win over the lazy-loaded ones.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index f59b34a983..db196c41a1 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -24,9 +24,6 @@ {{end}} <!-- Third-party libraries --> -{{if .RequireHighlightJS}} - <script src="{{StaticUrlPrefix}}/vendor/plugins/highlight/highlight.pack.js"></script> -{{end}} {{if .RequireMinicolors}} <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.min.js"></script> {{end}} |