Code Monkey home page Code Monkey logo

Comments (7)

nielsenramon avatar nielsenramon commented on July 28, 2024

@christiantype Have you tried setting the baseurl to demo? As you aren't using the root domain.

from chalk.

christiantype avatar christiantype commented on July 28, 2024

Great! That seemed to fix things :-) http://christiansolorzano.com/demo/

Some links are broke now. Below is what is in my _config.yml. Should /demo/ be included elsewhere besides the baseurl?

# Mandatory settings

baseurl: /demo/
name: Chalk
paginate: 25
paginate_path: "/posts/page/:num/"
url: # add site url http://example.com/
blog_theme: light # Or use dark

# Optional settings

discus_identifier: # Add your Disqus identifier
ga_analytics: # Add your GA Tracking Id
rss_enabled: true # Change to false if not
social:
  dribbble: # Add your Dribbble link
  facebook: # Add your Facebook link
  github: # Add your GitHub link
  linkedin: # Add your LinkedIn link
  twitter: # Add your Twitter handle
  email: # Add your Email address
  bitcoin: # Add your Bitcoin link or address

# Important settings (change at own risk)

assets:
  compress:
    css: true
    js: true
  features:
    automatic_img_size: false
  sources:
    - _assets/bower
    - _assets/fonts
    - _assets/images
    - _assets/javascripts
    - _assets/stylesheets
    - _vendor/
collections:
  my_tags:
    output: true
    permalink: /tag/:slug/
defaults:
  -
    scope:
      path: ""
      type: my_tags
    values:
      layout: articles_by_tag
exclude:
  - .bowerrc
  - .travis.yml
  - bin/*
  - bower.json
  - circle.yml
  - Gemfile
  - Gemfile.lock
  - README.md
  - vendor/
gems:
  - jekyll-assets
  - jekyll-paginate
  - jekyll-sitemap
  - bourbon
  - neat
permalink: posts/:slug

from chalk.

nielsenramon avatar nielsenramon commented on July 28, 2024

@christiantype It should work with just the baseurl. Does it work locally when running jekyll serve?

from chalk.

christiantype avatar christiantype commented on July 28, 2024

When I work locally using http://127.0.0.1:4000/demo/, homepage works fine.

However, when I click on a post, the link goes to http://127.0.0.1:4000/posts/writingthrough and I receive the 404 error page. I have to manually type /demo before /posts/ in the URL, to see my post.

Here's an a live example:
Home page: http://christiansolorzano.com/demo
Post, clicked from: home page: http://christiansolorzano.com/posts/writingthrough
Correct URL, by manually fixing address in browser: http://christiansolorzano.com/demo/posts/writingthrough.html

It looks like Jekyll Build isn't including /demo/ in any of the sub-level pages.

from chalk.

nielsenramon avatar nielsenramon commented on July 28, 2024

@christiantype I see what happened, you are using an old version of Chalk. I fixed everything by using relative_paths from Jekyll. Please have a look at the index page and switch the urls :)

from chalk.

christiantype avatar christiantype commented on July 28, 2024

Cool! I noticed you Use new Jekyll relative_url and absolute_urls (#7) in several places. Would you recommend that I do it everywhere you did?

from chalk.

nielsenramon avatar nielsenramon commented on July 28, 2024

@christiantype Yes! Let me know if you have any more issues.

from chalk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.