Comments (7)
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.
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.
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.
This needs to be fixed on master? @h-enk
from doks.
This needs to be fixed on master? @h-enk
Yes, absolutely — I will do that (soon).
from doks.
1589916: changed to href: "{{ .Permalink }}",
from doks.
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)
- Figcaption css missing in Doks template HOT 2
- Rendering broken on dark-theme cards HOT 1
- Adding `fade` to the `safelist` section should fix the `toTopButton` issue
- Images get cropped when generated from /assets/images to /resources/_gen/images HOT 4
- Mermaid Rendering Issue with GitHub Pages HOT 2
- SEO title not working when updating to doks-core 1.3.0 HOT 2
- Blog Reactions HOT 1
- Is there currently support for multiple content docs? HOT 3
- Hugo Installer causing error HOT 2
- Images in assets folder are not present in public or resources after build HOT 1
- Flexsearch result are not ordered by relevance. HOT 1
- imge url not correct if baseurl defined HOT 3
- Viewport between 992 and 1200 hides content HOT 2
- Tags not showed slug 🏷
- Please change the default baseURL HOT 1
- Add option to collapse (true/false) navbar sections per default
- New install of Doks crashes with error HOT 2
- Minor issue for highlighting the active topic links HOT 15
- Displaying modification dates for markdown pages?
- Add option to hide the links at the bottom of content page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doks.