janczizikow / sleek

:chart_with_upwards_trend: Sleek is a modern Jekyll theme focused on speed performance & SEO best practices
https://janczizikow.github.io/sleek/
MIT License
423 stars 638 forks source link

modifying baseurl #11

Closed spsharman closed 6 years ago

spsharman commented 6 years ago

Really like your theme and I'm trying to adapt it to exactly what I'm looking for, however I'm very much new to this and I'm hitting which I'm sure is something very simple.

In _config.yml if I leave the baseurl to "/" everything loads as expected. I've been able to an archive page and some categories and all is good, however if I modify the baseurl to /myblog-sleek the site fails to build, images are broken etc - clearly something to do with changing the baseurl but I can work out what.

SSHARMAN-M-35ZJ:myblog-sleek ssharman$ bundle exec jekyll serve
Configuration file: /Users/ssharman/GitHub/blogs/myblog-sleek/_config.yml
            Source: /Users/ssharman/GitHub/blogs/myblog-sleek
       Destination: /Users/ssharman/GitHub/blogs/myblog-sleek/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 0.833 seconds.
 Auto-regeneration: enabled for '/Users/ssharman/GitHub/blogs/myblog-sleek'
    Server address: http://127.0.0.1:4000/myblog-sleek/
  Server running... press ctrl-c to stop.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/emile-perron-190221_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/shane-rounce-205187_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_lg.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/emile-perron-190221_thumb@2x.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_thumb@2x.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_lg.jpg' not found.
[2018-04-10 12:38:03] ERROR `/assets/img/posts/shane-rounce-205187_thumb@2x.jpg' not found.
[2018-04-10 12:38:04] ERROR `/sw.js' not found.
[2018-04-10 12:38:09] ERROR `/sw.js' not found.
[2018-04-10 12:38:11] ERROR `/assets/img/posts/sleek.jpg' not found.
[2018-04-10 12:38:11] ERROR `/assets/img/posts/sleek.jpg' not found.
[2018-04-10 12:38:13] ERROR `/sw.js' not found.

I'd also like to rename "Sleek" in the header - how would I go about this?

      <a class="header__logo" href="{{ '/' | relative_url }}">
        <div class="header__logo--container">
          {% include logo.svg %}
        </div>
      </a>

Any pointers would be gratefully accepted - many thanks!

janczizikow commented 6 years ago

Hey @spsharman are you using the theme through the ruby gem (installed with bundler)?

janczizikow commented 6 years ago

Hey @spsharman, I recently updated this repo & gem, I think the missing links should be now resolved. You can try buy running bundle update Jekyll sleek - this time the errors of missing links shouldn't appear.