jekyll-theme-H2O | Jekyll博客主题 | Theme library
kandi X-RAY | jekyll-theme-H2O Summary
kandi X-RAY | jekyll-theme-H2O Summary
A clean and delicate Jekyll theme. Jekyll博客主题
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jekyll-theme-H2O
jekyll-theme-H2O Key Features
jekyll-theme-H2O Examples and Code Snippets
Community Discussions
Trending Discussions on jekyll-theme-H2O
QUESTION
I'm modifying a Jekyll theme called H2O locally on my Windows 10 PC. It is a blog theme that I will be hosting on Github Pages on a repo called blog. I'm aware there is a common problem using relative links locally that may initially appear fine on your computer, but when you push your files up to your repo everything is essentially broken due to baseurl and linking issues as properly addressed on this commented jekyll issue.
Although I have made some of the necessary changes; more specifically prepending {{ site.baseurl }}
before my hyperlinked stylesheet files on my head.html, post-head.html, and default.html files, I'm still experiencing issues.
Issues: (Please visit my current blog url to see live examples.)
- There is supposed to be an "H2O" logo in the top left-hand corner on the main page. This logo doesn't appear at all on the main page. The post pages show the logo momentarily, but when scrolling down, the default CSS effect does not work correctly. (Please see the theme author's live demo for the correct example of how everything should look and function.
- The tags page loads correctly, but when you try clicking on the posts displayed at the bottom, they do not load correctly since the blog/ directory is omitted from the URL.
- When viewing any blog post page example, my avatar photo at the bottom does not appear. This is odd since my avatar correctly displays on the main page of the url: http://www.joshuagalan.com/blog/
- My favicon does not load correctly at all.
It may be worth mentioning that my website is being hosted on Github with the original name of muygalan.github.io with a custom doman name of www.joshuagalan.com.
P.S. The website Configuring Jekyll for User and Project GitHub Pages covers this topic in-depth, but I'm unable to use the grep searches the author provided under the Checking your site for link correctness section, since I believe they are linux based and I'm using a Windows computer.
...ANSWER
Answered 2018-Feb-14 at 03:00I went through your site and noticed the following. Editing them should resolve your errors:
- In your config file, you have
url: 'muygalan.github.io/blog'
andbaseurl: /blog
. You should not be having/blog
in yoururl:
. - In
assets/js/index.min.js
there's a liner.css({background:"url(/assets/icons/logo_"+i+".svg) no-repeat center","background-size":"100% 100%"})
.. See how the url doesn't contain/blog
..?
Other pointers:
- Strings in YAML files do not need to be quoted. See how
baseurl: /blog
is just fine.. - Dont prepend urls with
{{ site.baseurl }}
.. userelative_url
filter instead.{{ 'foo' | relative_url }}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jekyll-theme-H2O
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page