github-pages

Jekyll: How to use custom plugins with GitHub pages

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 09:01:31
问题 It turns out that custom ruby plugins don't work on GitHub pages because of security concerns. I'm trying to add a plugin (this one) to the _plugins folder of my Jekyll project, but when I deploy it to GitHub it is ignored. Question: Is there a way to workaround this? Has anyone found a solution? Note: Obviously I can generate html files locally and commit them to my repository. But that's not what I want. 回答1: Without a plugin A reading time script does not require a plugin. I have created a

“no implicit conversion of Integer into String” error with Jekyll posts that have numbered titles

微笑、不失礼 提交于 2020-01-13 08:35:10
问题 I have a Jekyll blog hosted on GitHub Pages that I recently updated to HTTPS. In doing so, I discovered that recent updates to Jekyll were causing my blog to no longer build properly. Running a local install I kept encountering the following error: Liquid Exception: no implicit conversion of Integer into String in /_layouts/default.html After some trial and error I was able to identify the following posts as causing the problem: 2003-09-21-100.md 2004-02-10-10000.md 2004-02-28-228.md 2004-09

AngularJS App not working on github pages

余生长醉 提交于 2020-01-13 06:04:44
问题 So this is the repository https://github.com/fredericojesus/mygroceries-angular and this is the link for github pages http://fredericojesus.github.io/mygroceries-angular/ For some reason the browser is not getting the files (see console), but they exist so really dunno what's happening, I'm new to github pages, first time trying. Can anyone help ? 回答1: Just remove the <base href="/"> in your index.html . Then add the folder name to the libraries path. E.g. <link rel="stylesheet" href="styles

AngularJS App not working on github pages

懵懂的女人 提交于 2020-01-13 06:04:06
问题 So this is the repository https://github.com/fredericojesus/mygroceries-angular and this is the link for github pages http://fredericojesus.github.io/mygroceries-angular/ For some reason the browser is not getting the files (see console), but they exist so really dunno what's happening, I'm new to github pages, first time trying. Can anyone help ? 回答1: Just remove the <base href="/"> in your index.html . Then add the folder name to the libraries path. E.g. <link rel="stylesheet" href="styles

Creating a website with Jekyll that has a subdirectory for the blog with paginated content

[亡魂溺海] 提交于 2020-01-12 10:04:30
问题 I am creating a website with Jekyll where the main page (jekyllsiteblogpaginated.com/index.html) displays no blog content. In addition, I would like to create a subdirectory for the blog where the main page, jekyllsiteblogpaginated.com/blog/index.html, displays the post in a paginated manner. I have pushed my example here http://bpatra.github.io/jekyllsiteblogpaginated. The github repository can be found here You may see in the repository branches that I have tested several organisation:

Can I use a Markdown file in a GitHub page?

笑着哭i 提交于 2020-01-12 07:09:59
问题 Since the GitHub wiki does not support directories, I want to put my md files into GitHub pages. However when I open them I found they are not interpreted at all. GitHub just gives me the raw file. See http://greenlaw110.github.com/Rythm/en/index.md. Any idea? 回答1: The documentation isn't particularly clear on this, but given that the Markdown rendering is done by Jekyll, I believe you need what they call "YAML front matter" for it to compile the page. So try putting this at the top of your

Can I use a Markdown file in a GitHub page?

江枫思渺然 提交于 2020-01-12 07:08:10
问题 Since the GitHub wiki does not support directories, I want to put my md files into GitHub pages. However when I open them I found they are not interpreted at all. GitHub just gives me the raw file. See http://greenlaw110.github.com/Rythm/en/index.md. Any idea? 回答1: The documentation isn't particularly clear on this, but given that the Markdown rendering is done by Jekyll, I believe you need what they call "YAML front matter" for it to compile the page. So try putting this at the top of your

Can I have a proper nice tiled pagination in Jekyll using Liquid templates?

喜夏-厌秋 提交于 2020-01-11 09:35:29
问题 I've found this nice jekyll theme: http://www.jacoporabolini.com/emerald/ with good looking pagination. Unfortunately is only good looking when there is a small number of pages. In case of my blog this looks like this: Not surprisingly because the code looks like this: {% for page in (1..paginator.total_pages) %} And it should like more like this: {% for page in (min(1,paginator.page-3)..max(paginator.page+3,paginator.total_pages)) %} The problem is, I don't think there is something like min

GitHub Pages mangling syntax highlighting after upgrade to Jekyll 3

ⅰ亾dé卋堺 提交于 2020-01-06 19:57:04
问题 I use Github Pages for my personal website. They're upgrading from Jekyll 2 to Jekyll 3 and sending deprecation warnings. I complied with their warnings and switched from redcarpet to kramdown and from pygments to rouge. When I build locally (with bundle exec jekyll serve ) everything works. But when I push the changes the syntax highlighting gets mangled wherever I have linenos in my code blocks. This is the code block: {% highlight python linenos %} ''' scrape lyrics from vagalume.com.br

Angular app not picked up by github pages?

北城余情 提交于 2020-01-06 08:06:54
问题 First I setup A records for canary.fireflysemantics.com . Then waited an hour (Not sure if time matters?). I created a brand new repository: https://github.com/fireflysemantics/canary/ I then pushed the app using ng deploy like this: ng deploy --base-href=https://canary.fireflysemantics.com --cname=canary.fireflysemantics.com And the files are now in the repository github-pages branch: https://github.com/fireflysemantics/canary However they are not being published / built and the CNAME is not