-
Notifications
You must be signed in to change notification settings - Fork 1
Use absolute paths plus the baseurl. #5
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
base: ben
Are you sure you want to change the base?
Conversation
…learly distinguish between absolute and relative urls in the template code.
Did you look on circle? The style, etc is not rendering correctly: |
@vsoch I worked on this a bit yesterday, things are a bit funky / not straightforward. I didn't have time to look at it again today, but hopefully tomorrow we can wrap things up! Any progress from your side? |
I haven't looked at your PR - I've been working from the last up to date version that I had working. To get this to work on circle I tried doing another sed command to change the url, but I couldn't get it working. For your version - I did a bunch of testing, and was able to figure out that the posts are not rendering because the site.baseurl variable is not defined on index.html - if you take a look, one of the h2 tag is empty. I think it must have something to do with the config fie for the posts, but nothing that I tried seemed to work. An interesting thing I tried was to instead use "site.url," and that worked only given that it was defined (when I changed it to be an empty string, the original error occurred) Some progress - I got in contact with a circle person so minimally they know that we would want the functionality for circle to automatically detect a jekyll repo and act accordingly. I haven't heard back from the initial response. Doing some "bigger picture" thinking about this - I'm thinking back to the original goal. We want something that is easy for people to add packages / posts to, and has some kind of continuous integration (for previewing updates). I'm not entirely sure what was wrong with the initial look of the site? Is sphinx hard to update? Jekyll is really annoying. There are some pretty substantial bugs, and I'm not convinced that hosting on github pages is somehow ideal or easier than say, some free service for sites (aka, like google sites). There is definitely work to be done to improve the look of the template that I made, but I'm not sure it's worth it because Jekyll sucks the big one. What do you think? |
@vsoch I think this higher-level discussion is perfect for the developer's mailing list. Would you be up for sending there? I think this is the kind of feedback people were waiting for. If you'd like a response from me before sharing anything there, lemme know and I'd be happy to do it! For my version, for whatever reason the BASEURL env variable is not getting set in the script. I spent over an hour trying to figure out why, then gave up and embedded it directly in the sed command. That worked, but exposed another issue in how the post URLs are constructed. I got stuck on that... |
ok, all set. Let's discuss this properly on the list before either of us invests more time! I think there is misalignment between goals for this site and the infrastructure we are using, and we should work out those details. |
When coding, we have to distinguish between relative paths and absolute paths. I propose the following convention, to make it very clear:
This makes the intent very clear, without having to search whether baseurl was prepended. In order to do this, we simply need to make baseurl not have a trailing slash.
This PR changes the config so that baseurl does not have a trailing slash, and then fixes up the URLs to either use this convention, or (in some cases) start using the baseurl convention.