mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-12 06:18:31 +02:00
removed usage of highlights.js because hugo uses another code highlighter (#194)
This commit is contained in:
@@ -259,5 +259,9 @@ keywords = "search engine, vector database, neural network, matching, filter, Sa
|
||||
parent = "company"
|
||||
url = "/legal/credits/"
|
||||
|
||||
[markup]
|
||||
[markup.goldmark.renderer]
|
||||
unsafe=true
|
||||
[markup.highlight]
|
||||
style='friendly'
|
||||
codeFences=true
|
||||
|
||||
@@ -21,14 +21,6 @@
|
||||
<link rel="preload" href="https://fonts.googleapis.com/css2?family={{ .Site.Params.font }}&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family={{ .Site.Params.font }}&display=swap"></noscript>
|
||||
|
||||
<!-- highlight.js -->
|
||||
{{ if .Site.Params.highlight | default false }}
|
||||
|
||||
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/default.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/default.min.css"></noscript>
|
||||
|
||||
{{ end }}
|
||||
|
||||
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.2/dist/css/splide-core.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.2/dist/css/splide-core.min.css"></noscript>
|
||||
|
||||
|
||||
@@ -45,15 +45,6 @@
|
||||
anchors.add("article > :is(h1, h2, h3, h4, h5, h6)");
|
||||
</script>
|
||||
|
||||
<!-- highlight.js -->
|
||||
{{ if .Site.Params.highlight }}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js"></script>
|
||||
{{ range .Site.Params.highlightLanguages }}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/languages/{{ . }}.min.js"></script>
|
||||
{{ end }}
|
||||
<script>hljs.highlightAll();</script>
|
||||
|
||||
{{ end }}
|
||||
<script src="{{ "js/lang-switcher.js" | absURL }}"></script>
|
||||
<script src="{{ "js/copy-code.js" | absURL }}"></script>
|
||||
<script>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
.highlight + .highlight {
|
||||
display: none;
|
||||
}
|
||||
.highlight > pre {
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.lang-tabs {
|
||||
display: block;
|
||||
min-height: 26px;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
* @class LangSwitcher
|
||||
* create tabs with buttons to switching
|
||||
* between languages variants,
|
||||
* works with highlights.js
|
||||
* works with .highlight class elements
|
||||
*/
|
||||
class LangSwitcher {
|
||||
constructor(tabs, index) {
|
||||
|
||||
Reference in New Issue
Block a user