sylhare / Type-on-Strap

🎨 Simplistic, responsive jekyll based open source theme
https://sylhare.github.io/Type-on-Strap/
MIT License
813 stars 901 forks source link

"There are no blog posts", when installing gem into new Jekyll project #320

Closed elmar-hinz closed 3 years ago

elmar-hinz commented 3 years ago

I try to check out the gem "type-on-strap" with a fresh Jekyll installation, which contains one default post from today. Type-on-strap shows "There are no blog posts".

Searching the sources this comes form _includes/blog/blog.html , which iterates paginator.posts. The gems description names a runtime dependency jekyll-paginate. Even installing this gem manually doesn't get it running. jekyll-paginate was last updated three years ago and has few description.

At this point I give up. At least the initial installation should run out-of-the-box.

Steps to reproduce:

jekyll new testproject 
cd testproject/
bundler remove minima
 bundler add webrick type-on-strap
 # edit _conf.yml: Set theme to type-on-strap.
 jekyll serve -w
# check that there is one post
 ls -al  _posts/
Screenshot 2021-10-10 at 15 16 15
im-coder-lg commented 3 years ago

Have you tried cloning the repository and installing+running? Not sure if Type On Strap is failing in something...

im-coder-lg commented 3 years ago

It works fine on the GitHub Pages site, maybe all you need to do is cloning and running that.

elmar-hinz commented 3 years ago

I checked to clone the full repository from GitHub. This does work.

It's not exactly the issue with the gem and and a fresh Jekyll project.

im-coder-lg commented 3 years ago

Well there is a bug with the gem so @sylhare has to look on that when he is free. Meanwhile can you show a GUI image of the posts directory?

im-coder-lg commented 3 years ago

@sylhare I managed to recreate this. Looks like the bug does exist. Maybe it is just due to the wrong configuration so let me change that and try again.

im-coder-lg commented 3 years ago

I think I might have solved this bug. SInce @elmar-hinz used the gem by adding the Minima theme and replacing it with Type On Strap, it triggered some kind of bug that makes it think that there are no blog posts. Maybe the best thing to do is first make the Gemfile and installing the dependencies based on that which is suggested.

im-coder-lg commented 3 years ago

First off, @sylhare you have literally locked down the gem. I mean, just spin up a Gitpod environment, use the terminal and try pulling the latest gem package and it asks you to log in. You can log in to the RubyGems package environment but I can't. I tried that and it is of no use. I can't pull the gem since you need to give me perms to get the gem pulled on. Maybe you set something up in your Packages settings and it is behaving like that.

elmar-hinz commented 3 years ago

Sorry, I can't assist any further with this. Minimal Mistakes theme does fit my use case. Thank you very much.

I don't close the issue, as I think it's worth to keep working on it.

sylhare commented 3 years ago

Thank you for trying out the gem. Here is an article on how I made it work https://sylhare.github.io/2021/03/25/Run-type-on-strap-jekyll-theme-locally.html

@im-coder-lg maybe you made a typo when trying from gitpod? I successfully installed it on a random workspace:

image

I'll close for now then.

im-coder-lg commented 3 years ago

Oh, so that's the way to do this? Man, I thought I needed the official package line from here :rofl: But you are using the Ruby on Rails image and I used the workspace-full image since Gitpod runs on different images so it has to be that you launched a particular image that has Ruby on Rails. I have an idea on which I am working right now.