Giter Club home page Giter Club logo

Comments (4)

xoxys avatar xoxys commented on June 4, 2024

Can you test another browser?

from hugo-geekdoc.

 avatar commented on June 4, 2024

adding

<script defer src="{{ index .Site.Data.assets "js/flexsearch.min.js" | relURL }}"></script>

into partials/foot.html fixed the issues (tested on FF/Chrome and Edge)

{{ if default true .Site.Params.GeekdocSearch }}
{{ .Scratch.Set "geekdocSearchConfig" .Site.Params.GeekdocSearchConfig }}
<!-- Remove after https://github.com/gohugoio/hugo/issues/6331 -->
{{ $searchJSFile := printf "js/%s.search.js" .Language.Lang }}
{{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | fingerprint }}
<script defer src="{{ index .Site.Data.assets "js/flexsearch.min.js" | relURL }}"></script>
<script defer src="{{ $searchJS.RelPermalink }}"></script>
{{ end }}

{{ if default true .Site.Params.GeekdocAnchorCopy }}
<script defer src="{{ index .Site.Data.assets "js/clipboard.min.js" | relURL }}"></script>
<script>
    document.addEventListener("DOMContentLoaded", function(event) {
        var clipboard = new ClipboardJS('.clip');
    });
</script>
{{ end }}

from hugo-geekdoc.

xoxys avatar xoxys commented on June 4, 2024

Thanks! You're right there is an issue loading the hashed flexsearch source file. I've prepared a PR and will tag a new release later.

from hugo-geekdoc.

xoxys avatar xoxys commented on June 4, 2024

Fixed in v0.7.3 please test. Thanks again for reporting.

from hugo-geekdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.