-
Notifications
You must be signed in to change notification settings - Fork 196
BUG: Search CSS broken #239
Comments
Hi, I'm working on this theme to fix some issues. After leaving this theme for over a year, I've found that URLs starting with
reported in #236. This weekend, I've made a few updates on upstream and submitted some PRs, which I had tested on
After some recent work on my testing branches |
I tried |
Hi Vincent, Thanks for your reply, looking at the Console, lots of errors are popping out : I suppose this is the root cause of my problem : The resource from “http://localhost:1313/css/add-on.css” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff). Not sure how to setup the right Content Types within Hugo ? Or should I try to turn-off the X-Content-Type-Options: nosniff directive ? |
Did you modify the |
Hi Patrick, |
@pacollins That's not related to this issue, but I observed that the downloading of some files from Cloudfare failed in @giom-mallet's screenshot. That's exactly #236, for which I submitted a WIP PR. I read somewhere in Hugo forum that the loading of resources should be made with @giom-mallet Do you mind disclosing the structure of your
|
Hi, The baseURL should be : I must mention that at the moment, this URL displays the site generated last year. The problem I meet is when I run hugo server. I didn't deploy online yet. |
@giom-mallet Thanks for reponse. I now know that your're building your site at the root of your domain. You updated the submodule from which commit? Here's my guess. The head of the generated HTML code shows <meta property="og:updated_time" content="2020-03-07T11:18:52+08:00" /> The latest commit on the |
Hi, |
@giom-mallet I tried to reproduce the errors based on the diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0920cad..d616ce5 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -8,21 +8,21 @@ paginate = 3
disqusShortname = ""
googleAnalytics = ""
pluralizeListTitles = false
-disableLanguages = []
+disableLanguages = [""]
[markup.goldmark.renderer]
unsafe = true
[outputs]
- home = ["html", "json", "rss"]
+ home = ["html", "json"]
[params]
- enableCDN = false
+ enableCDN = true
cssFiles = ["default"]
jsFiles = ["default"]
highlightjs = true
highlightjsTheme = ""
- highlightjsLang = []
+ highlightjsLang = ["html", "toml", "js"]
viewMorePostsLink = "/blog/"
readingTime = true
imageStretch = "" Screenshot taken with byzanz-record. After making the above changes to hugo serve --themesDir=${$(pwd)%/*} \
--source ./exampleSite I observed the 404 errors related to highlight.js well, but the my browser downloaded I installed Hugo via snap.
|
Hi Vincent, Sorry for delay in replying, I wanted to try one thing first, so I rebooted the site from the 'Example Site' and eliminated the problem successfully. There have been a considerable amount of changes in the latest version of the theme, especially in config.toml which probably explains the issues I met trying to upgrade more than 1 year later. |
Bug Report
Describe the bug
I have an issue with the CSS of the new search function after upgrading my website with contents developed last year.
To Reproduce
Expected behavior
The result of a search doesn't have formatting and just displays
Screenshots
Environment
Additional context
[Add any other context about the problem here.]
The text was updated successfully, but these errors were encountered: