mirror of https://github.com/jpanther/congo.git
parent
00daa189d0
commit
612cd8f8b4
|
@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Code blocks are rendered incorrectly in RTL languages ([#164](https://github.com/jpanther/congo/issues/164))
|
||||||
- Scroll to top link overlaps footer menu on mobile devices when there are several links ([#172](https://github.com/jpanther/congo/issues/172))
|
- Scroll to top link overlaps footer menu on mobile devices when there are several links ([#172](https://github.com/jpanther/congo/issues/172))
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
window.addEventListener("DOMContentLoaded", (event) => {
|
||||||
|
document.querySelectorAll("pre, .highlight-wrapper").forEach((tag) => (tag.dir = "auto"));
|
||||||
|
});
|
|
@ -62,6 +62,10 @@
|
||||||
{{ $jsCode := resources.Get "js/code.js" }}
|
{{ $jsCode := resources.Get "js/code.js" }}
|
||||||
{{ $assets.Add "js" (slice $jsCode) }}
|
{{ $assets.Add "js" (slice $jsCode) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Site.Params.rtl | default false }}
|
||||||
|
{{ $jsRTL := resources.Get "js/rtl.js" }}
|
||||||
|
{{ $assets.Add "js" (slice $jsRTL) }}
|
||||||
|
{{ end }}
|
||||||
{{ if $assets.Get "js" }}
|
{{ if $assets.Get "js" }}
|
||||||
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
||||||
<script defer type="text/javascript" id="script-bundle" src="{{ $bundleJS.RelPermalink }}" integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n "code.copy" }}" data-copied="{{ i18n "code.copied" }}"></script>
|
<script defer type="text/javascript" id="script-bundle" src="{{ $bundleJS.RelPermalink }}" integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n "code.copy" }}" data-copied="{{ i18n "code.copied" }}"></script>
|
||||||
|
|
Loading…
Reference in New Issue