Coder Social home page Coder Social logo

Comments (7)

soichih avatar soichih commented on May 30, 2024 2

Sorry, please ignore my last post. I wasn't reading your suggestion correctly. I was doing

{{ .RelPermalink | absURL }}

instead of..

{{ .Permalink | absURL }}

Your suggestion fixed it, and now everything is working. Thank you @h-enk !

from doks.

h-enk avatar h-enk commented on May 30, 2024

Hi, @soichih, in ./assets/js/index.js, could you try replacing line 89: href: "{{ .RelPermalink | relURL }}", w/ href: "{{ .Permalink | absURL }}", and check if that does the trick?

from doks.

soichih avatar soichih commented on May 30, 2024

I've tried to the absURL filter, but I didn't notice any change to the behavior.

Meanwhile, I've tried setting canonifyURLs to false in config/production/config.toml

baseurl = "/dsla/"
canonifyURLs = false

This fixed the FlexSearch issue, but now my images are not displayed. I am doing the following which worked before..

![sample image](/images/sample.gif)

But now this seems to be looking at absolute path "https://somehost.com/images/sample.gif" instead of "https://somehost.com/dsla/images/sample.gif".

from doks.

NOBLES5E avatar NOBLES5E commented on May 30, 2024

This needs to be fixed on master? @h-enk

from doks.

h-enk avatar h-enk commented on May 30, 2024

This needs to be fixed on master? @h-enk

Yes, absolutely — I will do that (soon).

from doks.

h-enk avatar h-enk commented on May 30, 2024

1589916: changed to href: "{{ .Permalink }}",

from doks.

soichih avatar soichih commented on May 30, 2024

I am setting baseurl in my production config.toml

[config/prduction/config.toml]

baseurl = "/projects/tla/"
canonifyURLs = true

I am not sure if it's related to this change, but I am using h-enk/doks-child-theme and after updating to the latest code in master branch, the baseURL gets repeated inside the URL like this.

/projects/tla/projects/tla/fonts/vendor/jost/jost-v4-latin-regular.woff2

I also noticed that double quotes around these URLs are missing.

For example, this is exactly what I see in index.html

<link rel=preload as=font href=/projects/tla/projects/tla/fonts/vendor/jost/jost-v4-latin-regular.woff2 type=font/woff2 crossorigin>

However, some URLs are correctly formatted.. Like these..

<meta property="og:image" content="/projects/tla/doks.png">

I don't know why some URLs are broken and some are not, but I just wanted to report this.

from doks.

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.