{"action":"created","issue":{"url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/141","repository_url":"https://api.github.com/repos/probberechts/hexo-theme-cactus","labels_url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/141/comments","events_url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/141/events","html_url":"https://github.com/probberechts/hexo-theme-cactus/issues/141","id":385332556,"node_id":"MDU6SXNzdWUzODUzMzI1NTY=","number":141,"title":"Some problems with Code highlight","user":{"login":"imbadark","id":38650392,"node_id":"MDQ6VXNlcjM4NjUwMzky","avatar_url":"https://avatars0.githubusercontent.com/u/38650392?v=4","gravatar_id":"","url":"https://api.github.com/users/imbadark","html_url":"https://github.com/imbadark","followers_url":"https://api.github.com/users/imbadark/followers","following_url":"https://api.github.com/users/imbadark/following{/other_user}","gists_url":"https://api.github.com/users/imbadark/gists{/gist_id}","starred_url":"https://api.github.com/users/imbadark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imbadark/subscriptions","organizations_url":"https://api.github.com/users/imbadark/orgs","repos_url":"https://api.github.com/users/imbadark/repos","events_url":"https://api.github.com/users/imbadark/events{/privacy}","received_events_url":"https://api.github.com/users/imbadark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-28T15:49:40Z","updated_at":"2018-11-30T09:32:51Z","closed_at":null,"author_association":"NONE","body":"Using this theme for a long time and I often find code highlighting somewhat problematic... After I cannot get the answer from the issue , I open a issue for those who have same problem.\r\nThere are two main problems:\r\n1. In theory, the `cactus` theme should use the official `highlight.js` for code highlighting (I guess)?  however, it will be found that some highlighting languages ​​supported in `highlight.js` are not able to display highlights on the page at all. Using `F12` to view html found that it is not treated as a `sql` code snippet. SO HOW COULD I FIX IT?\r\n2. There are some languages ​​that can be identified as being highlighted like `bash`, and you will find that if there are multiple `bash code` snippets on the same page, some parts cannot be highlighted normally.\r\nI believe it's very likely that some characters affect the highlighting logic. But I don't know how to determine what it is, I found the `highlight.js`'s path on `node_modules/highlight.js/lib/languages`  and check the js-files...  \r\n---\r\nI think some of the css styles that come with the theme won't affect whether the code in some languages ​​can be highlighted or parsed. So can you help me to figure out how to locate these problems?"},"comment":{"url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/comments/443145441","html_url":"https://github.com/probberechts/hexo-theme-cactus/issues/141#issuecomment-443145441","issue_url":"https://api.github.com/repos/probberechts/hexo-theme-cactus/issues/141","id":443145441,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE0NTQ0MQ==","user":{"login":"imbadark","id":38650392,"node_id":"MDQ6VXNlcjM4NjUwMzky","avatar_url":"https://avatars0.githubusercontent.com/u/38650392?v=4","gravatar_id":"","url":"https://api.github.com/users/imbadark","html_url":"https://github.com/imbadark","followers_url":"https://api.github.com/users/imbadark/followers","following_url":"https://api.github.com/users/imbadark/following{/other_user}","gists_url":"https://api.github.com/users/imbadark/gists{/gist_id}","starred_url":"https://api.github.com/users/imbadark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imbadark/subscriptions","organizations_url":"https://api.github.com/users/imbadark/orgs","repos_url":"https://api.github.com/users/imbadark/repos","events_url":"https://api.github.com/users/imbadark/events{/privacy}","received_events_url":"https://api.github.com/users/imbadark/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T09:32:51Z","updated_at":"2018-11-30T09:32:51Z","author_association":"NONE","body":"Add  some questions :\r\n1. One is that when there are more blog posts, the generated search.xml file may have a few megabytes, and each time the search page is accessed, the xml file will be loaded, causing the search function to be particularly slow. (The browser doesn't seem to cache `search,xml`..)\r\n2. The other is that I found that I can't comment out the `open_graph` and google analytics in the theme configuration.( `config.yml` ) ,if I comment on them, `hexo g ` will generate a lot of errors. If I just don't care about them, it seems that after the page is generated, it will load some strange google's urls, and some strange font files, which greatly affect the page loading speed, so I would like to know how to get rid of them.\r\nThe urls like : \r\n- `https://fonts.gstatic.com/s/notosanssc/v2/k3kXo84MPvpLmixcA63oeALhLOCT-xWNm8Hqd37g1OkDRZe7lR4sg1IzSy-MNbE9VH8V.116.woff2`  (a string of urls from `107~120`...)"}}
{"actor":{"display_login":"imbadark"}}