github-pages

Defining footnote location with Kramdown/Jekyll

僤鯓⒐⒋嵵緔 提交于 2019-12-06 11:36:22
问题 I have a Jekyll blog that runs on kramdown 1.10, and I have tried to change the location of my footnote list to no avail. This is intended to go on a github-pages site, but doesn't work locally either. According to this issue, there is a way to add a footnote location elsewhere in your documents using Kramdown by defining a custom identifier that maps to a DOM object in your post. Particularly I have added this to my _config.yml kramdown: footnote_location: 'my_footnotes' and tried all of

Using a custom base URL for project pages

て烟熏妆下的殇ゞ 提交于 2019-12-06 11:35:24
I'm using Github pages/Jekyll for both my personal page as well as my project page. I'm also using a custom domain, so something like username.github.io redirects to mycustomdomain.com . Since I also have a gh-pages branch for my projects, my project's page lives at mycustomdomain.com/myproject . However, I'd prefer if I could choose what this URL would be, for example, mycustomdomain.com/projects/myproject . Is there any way to do this, without copy/pasting the whole project my username.github.io repository's projects folder? That should be what baseurl is for . Set baseurl in your _config

Angular 4 application on Github Pages

强颜欢笑 提交于 2019-12-06 10:49:46
I have a simple Angular (4) application which I want to host on Github Pages , the option to do this from Angular CLI seems removed. Is there a way to do this, if so how? this is my package.json { "name": "e-portfolio", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/cli": "^1.0.6", "@angular/common": "^4.0.0", "@angular/compiler": "^4.0.0", "@angular/core": "^4.0.0", "@angular/forms": "^4.0.0", "@angular/http": "^4.0.0", "@angular

Can I merge/sync a sub-folder from one branch to the root of another in git?

喜你入骨 提交于 2019-12-06 08:43:23
I want to have a /doc folder in master and easily merge/sync it to the root of a gh-pages branch. What is the easiest way to do this? VonC One nice trick would be to declare the branch gh-branch as a submodule in your master branch (also more detailed in " How to add a git repo as a submodule of itself? "). That way, when you are in your master branch, you see a folder gh-branch which represents the gh-branch content. You could then: version doc only in the gh-branch have a symlink doc in your master branch, linked to gh-branch/doc That way, you maintain the doc/ content only in one place. #!

How do I add a README.md file into the root directory of the generated blog by HEXO?

谁说我不能喝 提交于 2019-12-06 08:16:14
My blog is based on Github Pages and the program I'm using is HEXO the files that are generated by HEXO don't contain a README.md file so I can't make a declaration of my blog on Github repo page.So I want to add a README.md file to the folder that HEXO generates.I've tried that add it manually to the folder after using $ HEXO g and it is added to successfully.But the problem is that every time I use $ HEXO g ,the file I added will be deleted by the program. So I want to that is there any method that make the HEXO program generate a README.md file to the blog's root directory automatically

Overriding CSS on github pages using slate theme?

点点圈 提交于 2019-12-06 06:11:15
问题 I am trying to override the "forkme" banner on my github.io page to get a better understanding of how Jekyll, HTML, CSSand GitHub works. For that purpose, I created my ./assets/css/style.css file as mentioned in the readme of the official documentation on how to customize the CSS of the officially supported GitHub themes. I added the following CSS to it: #forkme_banner { display: none; } However, no luck, the banner doesn't disappear. Even adding fictitious elements to the CSS file like #test

Make Github pages case insensitive?

早过忘川 提交于 2019-12-06 03:42:53
问题 Is there a way to make github pages case insensitive? Or in jekyll to ensure all url's are lowercase? For example this url is valid: http://www.example.net/Vegas-2014.html but this 404s http://www.example.net/vegas-2014.html I don't like that from a usability perspective. (think text messaging urls, typing them in, etc.) I know I can fix this with permalink, but I'm wondering if there is a way to do it through configuration of Jekyll or pages or some other technique. 回答1: Sorry but case

GitHub pages for personal site. How to deploy a folder

﹥>﹥吖頭↗ 提交于 2019-12-06 03:36:11
If I am using GitHub pages for my personal site, how should manage my source files? I have a simple setup which works. But I understand I can't using Jekyll plugins with GitHub pages. If I want to use Grunt for example to optimise my images, for a usual app/site, it will produce output in say a dist/public folder, which I will then deploy. But I want to still use GitHub to manage my source files, how should I do it? Depending of repository kind your using, a User/Organization ( UO ) site or a Project site ( P ), sources and pages will be versionned in : User/Organization - sources : sources ,

Github won't let me change the source of my personal website to gh-pages branch?

强颜欢笑 提交于 2019-12-05 21:54:00
I made a personal website using github pages a while ago but recently recreated it from scratch using ReactJS. I changed the name of my old website repository and made my new one username.github.io and moved the CNAME over. I then started following: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#github-pages I'm stuck, however, on step 4 where I'm supposed to change the source to gh-pages branch. The option to change it is not clickable and right below it says "User pages must be built from the master branch". My thoughts are that

Table of Contents in Markdown, using only the standard / out of the box Github Pages tooling?

拥有回忆 提交于 2019-12-05 21:23:19
Trying to setup up a blog / documentation using purely hosted / "out of the box" GitHub Pages Jekyll; I am specifically trying to avoid having to run Jekyll locally (although I can). I have tried http://www.seanbuscay.com/blog/jekyll-toc-markdown/ but that doesn't work. Is this possible, or does it truly require additional tooling? By default Jekyll uses Kramdown, it already comes with a TOC generator. You don't need a plugin for this so it will work with github-pages. kramdown supports the automatic generation of the table of contents of all headers that have an ID set. Just assign the