Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project still not working #11

Closed
mroberts1 opened this issue Nov 2, 2021 · 9 comments
Closed

Project still not working #11

mroberts1 opened this issue Nov 2, 2021 · 9 comments
Labels
documentation Improvements or additions to documentation

Comments

@mroberts1
Copy link

mroberts1 commented Nov 2, 2021

I'm trying again to deploy this template as a GH pages project (i.e. not using github.io as the site root). The page itself is created but displays only as raw text without the theme.

I have several questions:

  1. When I click on Use this template, should I check "Include all branches"?

  2. In _config.yml, I am then setting the baseurl as and the url as <mroberts1.github.io>. Is that correct?

  3. Do I need to create a gh-pages branch and add a .github/workflow/jekyll.yml file to it in order to get GH Pages to deploy it, or should it deploy as-is?

  4. Alternatively, do I need to choose the Jekyll option from the GH Actions page to get the project to build properly?

Thanks for your help with this.

@hfactor
Copy link
Contributor

hfactor commented Dec 6, 2021

  1. Both are fine, what you need is there in the main branch.
  2. Yes
  3. As-is is fine. Github page now supports any branch
  4. Nope. No need.

Check documentation at https://jekyll-garden.github.io/posts/how-to
I will add point 1 to that doc so that it's clear for everyone.

@hfactor hfactor added the documentation Improvements or additions to documentation label Dec 6, 2021
@makayla-moster
Copy link

I'm also having this trouble trying to deploy this as a template from a project repository at makayla-moster.github.io/note-garden.

The theme isn't displaying correctly, is there something I've done incorrectly? I was super hype for this template to work with GH pages and it isn't, unfortunately.

My code is here.

@UnipiNotes
Copy link

@makayla-moster I think the problem with your setup is that you forked the theme in a Repository called note-garden. In the official how-to of the theme (check here) you can see that it wants you to create a Repository with a specific name yourusername.github.io (in your case it should be makayla-moster.github.io).

After that the theme should work just fine.

@makayla-moster
Copy link

@UnipiNotes so there's no way to host this project outside of yourusername.github.io? I use that for my personal website and would rather keep the two separate.

@UnipiNotes
Copy link

@makayla-moster I'm pretty sure that you can. I just recommended that way cause that's the "official" way according to the docs. My solution would be to change the _config.yml, specifically the baseurl.

Let's say that your repo has the name note-garden, your baseurl should be /note-garden. But now you will have broken links and in general the assets won't work.

What you have to do is, go to any html layout/include and check the links and assets and make sure they are correctly linked to note-garden. You can easily do that by just applying {{site.baseurl}} in that link.

For example a link that I see in the navbar should be changed to {{site.baseurl}}/posts, it will then correctly point out to /note-garden/posts.

Note: I would first test the site a lot after changing the baseurl and inserting {{site.baseurl}} to links just to make sure that everything works.

@hfactor
Copy link
Contributor

hfactor commented Mar 30, 2022

@makayla-moster : I just forked the repo, created one named sub-notes and it's working fine. (The UI is different as homepage CSS is loading over this sub-domain)

Here is what I did :

  1. Went to the Project page, and forked by clicking "Use this template"
  2. Named it "sub-notes"
  3. Modified config.yml line 23 and 24
baseurl: "/sub-notes" 
url: "" 
  1. Went to Github pages settings, activated Pages.
  2. Finally, modified some markdown, so that Jekyll will trigger and create Github Page environment
  3. Done! (I have CNAME already set, hence it's going to hiran.in/sub-notes)

Try this! :)

@makayla-moster
Copy link

@hfactor Thank you! I'll check it out!

@hfactor
Copy link
Contributor

hfactor commented Mar 30, 2022

There are URL-level bugs, as I have hard-coded at most places and baseurl was never considered. This is a bug to be sorted. Ref : Link

@hfactor
Copy link
Contributor

hfactor commented May 22, 2022

Subpath is fixed. Check the latest version!

@hfactor hfactor closed this as completed May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants