github-pages

Github pages, HTTP headers

北城余情 提交于 2019-11-29 22:51:08
I serve some of my files from my Github pages account. But when I check my "js" files' headers, I saw following: Last-Modified:Sun, 10 Feb 2013 14:00:46 GMT Expires:Sun, 10 Feb 2013 14:13:23 GMT Cache-Control:max-age=600 This file was commited 14 days ago. But I don't plan these files so frequent. So I need to make much bigger max-age value and change Last-Modified value to last commited date. Is it possible to change headers of Github pages? I asked this to Github admins, and they told me that "it is not possible" to change headers. They added this issue to wishlist. tamyiuchau The answer is

Unable to set favicon using Jekyll and github pages

我们两清 提交于 2019-11-29 20:34:37
I am trying to set a favicon.ico for my github page, but it doesn't work. When I serve it locally I see the standard "empty" favicon and when I push it I see the facebook icon. Why is it so? I have the right favicon.ico in the root directory of my project and I added the line <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> to the relevant default.html . You can see the sources here: https://github.com/drorata/drorata.github.io Christopher Wells I cloned your project from GitHub to take a look at it. After serving it using Jekyll, the favicon did not display, as you noted. I

Can one host an angular.js based static blog on Github?

对着背影说爱祢 提交于 2019-11-29 20:20:17
I know one can host a Jekyl based static site/blog via Github pages. Can one do the same with a static site/blog based on AngularJS? I would say yes considering all the angular UI github pages are in fact angular apps with demos: http://angular-ui.github.io/ http://angular-ui.github.io/bootstrap/ etc You can but you can't use html5 mode (removes the # from urls). If you use html5 mode, you have to redirect all requests to the root url since its a single page app. Since you can't use server side code on GitHub pages, you can't do this. So, if you don't mind the # in the url, go for it. If you

Set subdirectory as website root on Github Pages

余生长醉 提交于 2019-11-29 19:43:27
I'm using Github Pages to host & serve a static website. The static website has the typical directory structure for an app: |_ source |_ build |_index.html .gitignore config.rb Gemfile ... README.MD index.html is under build/ , so I want to make that the default www path. So when users hit username.github.io it renders the content within that subdirectory and yet it doesn't show "/build"/ on the URL, cause that's set as the root folder. Notes: I don't have a custom domain nor planning to get one for this purpose. As you can see, I'm trying to leverage the default URL naming convention github

How to support latex in github-pages?

时间秒杀一切 提交于 2019-11-29 19:05:51
I use jekyll to write post and show it in github-pages. My source file is writen with markdown. How can I insert formula into the markdown file? I don't want to save the formula into an image and load the image in markdown file. I actually want to write latex formula in markdown file directly. matrixanomaly Since resources online have changed regarding this question, here's an update on supporting LateX with GitHub Pages. Note that the closest to Latex rendering without exporting as images and natively supporting it on your Jekyll site would be to use MathJax. MathJax is actually recommended

Excluding a “spook” pages from <marquee> line made from Jekyll list of page

我的未来我决定 提交于 2019-11-29 18:51:28
I am using the following expression <ul> {% assign mypages = site.pages | sort: "order" %} {% for page in mypages %} <li class="intro"> <a href="{{ page.url | absolute_url }}">{{ page.title }}</a> </li> {% endfor %} </ul> at my site's index.md to generate list of all pages and all works perfect Also I am using modified version of the above-mentioned code <marquee behavior="scroll" scrollamount="17" direction="left" height="80px" loop="-1" style="border:0px" width="99%" padding="0px" onmouseover="this.stop();" onmouseout="this.start();"> {% assign mypages = site.pages | sort: "order" %} {% for

Generating a list of pages (not posts) in a given category

守給你的承諾、 提交于 2019-11-29 18:48:35
I am using Jekyll as a static generator for a website (not a blog), and I want to have an automatically generated list of all pages on my index page. Specifically, I want to have different categories and list all articles in each category separately. Here's an example of what I'm describing, if you're having trouble following. Is there any way to do this in Jekyll (e.g. GitHub pages)? I've seen the variables documentation page but that seems specific to the blog post format. While building my own site I came across this very same problem, and I have found an (IMHO) easy and robust solution.

Is there a configuration in Github Pages that allows you to redirect everything to index.html for a Single Page App?

喜欢而已 提交于 2019-11-29 15:30:43
I'm trying to post my SPA app that works fine locally but when I push it to Github Pages, the interior pages don't register if you navigate to them directly. For example http://USER.github.io/PROJECT_NAME/ works but http://USER.github.io/PROJECT_NAME/about doesn't because theres no redirect or rewrite. The index.html is located at the root of the project. I just built this tiny package (for bower / npm) to solves that exact problem so I thought I'd share it here as an answer to your question, https://github.com/websemantics/gh-pages-spa If you include the package in your 404.html and index

Adding custom fonts to GitHub pages

你说的曾经没有我的故事 提交于 2019-11-29 14:09:57
I just hosted my new website on GitHub. I use there a few custom fonts, which I uploaded right next to the index.html and style.css files: The font code: @font-face { font-family: "gogoiadeco"; src: url('gogoia-deco-webfont.eot'); src: url('gogoia-deco-webfont.eot?#iefix') format('embedded-opentype'), url('gogoia-deco-webfont.woff') format('woff'), url('gogoia-deco-webfont.ttf') format('truetype'), url('gogoia-deco-webfont.svg#Gogoia') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'icomoon'; src:url('icomoon.eot'); src:url('icomoon.eot?#iefix') format(

MathJax not rendering some equations properly on Github pages

萝らか妹 提交于 2019-11-29 12:26:05
I've configured Mathjax on my Github pages site and it can render some equations properly but not others. It can render properly the following equations: \\[ \frac{1}{n^{2}} \\] \\[ J(\theta) = \frac{1}{2m}[\sum_{i=1}^m(h_\theta (x^{(i)}) - y^{(i)})^2 + \lambda\sum_{j=1}^n\theta^2_j] \\] But it can't render equations like below: \\[ F'(\theta_*)=\lim\limits_{\theta\to\theta_*}\frac{F(\theta)-F(\theta_*)}{\theta-\theta_*} \\] Can someone please see where the problem might be? You should try to post or link to some HTML output but usually this is due to markdown converting the underscores into