mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 15:25:43 +03:00
24ad131221
Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix.
38 lines
1 KiB
Handlebars
38 lines
1 KiB
Handlebars
{{/*
|
|
<html>
|
|
<body>
|
|
<div>
|
|
*/}}
|
|
|
|
{{template "custom/body_inner_post" .}}
|
|
|
|
</div>
|
|
|
|
{{template "custom/body_outer_post" .}}
|
|
|
|
{{template "base/footer_content" .}}
|
|
{{if .RequireSimpleMDE}}
|
|
<script src="{{AssetUrlPrefix}}/js/easymde.js?v={{MD5 AppVer}}"></script>
|
|
<script src="{{AssetUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script>
|
|
<script src="{{AssetUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js"></script>
|
|
<script>
|
|
CodeMirror.modeURL = '{{AssetUrlPrefix}}/vendor/plugins/codemirror/mode/%N/%N.js';
|
|
</script>
|
|
{{end}}
|
|
|
|
<!-- Third-party libraries -->
|
|
{{if .RequireU2F}}
|
|
<script src="{{AssetUrlPrefix}}/vendor/plugins/u2f/index.js"></script>
|
|
{{end}}
|
|
{{if .EnableCaptcha}}
|
|
{{if eq .CaptchaType "recaptcha"}}
|
|
<script src='{{ URLJoin .RecaptchaURL "api.js"}}' async></script>
|
|
{{end}}
|
|
{{if eq .CaptchaType "hcaptcha"}}
|
|
<script src='https://hcaptcha.com/1/api.js' async></script>
|
|
{{end}}
|
|
{{end}}
|
|
<script src="{{AssetUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
|
|
{{template "custom/footer" .}}
|
|
</body>
|
|
</html>
|