Showing posts with label github-pages. Show all posts
Showing posts with label github-pages. Show all posts

Thursday, May 31, 2018

How to create simple 2-page site using 2 markdown files in github pages?

Leave a Comment

I am trying to make a very simple site in github pages that will only have two pages: a homepage and an about page.

I would like each of these pages to be generated from markdown files.

The homepage is easy, I just put the homepage markdown in README.md and it shows up at myusername.github.io

Is there a simple way to add a second markdown page?

I understand github pages uses jekyll and I can do this by creating an entire jekyll blog, but that seems like overkill for what I want to do. What's the simplest way to add a markdown file to the github repo and have a working url to a rendering of it.

This is not a blog. There will never be more than these two pages

2 Answers

Answers 1

I solved the issue.

The key is to include this at the top of the about markdown

--- title: Title --- 

This helps github pages know the page is a markdown file that needs to be rendered.

The about page can be placed in the repo in an about.md file, and linked to from the main README.md file

Answers 2

just create a file about.md with the content.
than you can link from your README.md to your about.md like so:
[YourLinkText For About](about.md)

Read More

Tuesday, May 8, 2018

generateAppendClassName: CSS module is undefined

Leave a Comment

I have a React v15 web app that runs fine at localhost. Yet when I deploy it to GitHub pages, I have a CSS module is undefined error:

enter image description here

I've set up a test repo for this issue: https://github.com/ZeningQu/test-repo/tree/master

If you clone the repo and run yarn start, you should be able to see the load-data-pane component: enter image description here

But when you do yarn run deploy, the GitHub page is basically empty:

enter image description here

More info:

1 Answers

Answers 1

I couldn't get your repo to work in my local machine. However, I've had problems with deploying React application before. One trick I learnt was to put <base href="/"> in the <head> tag in repo/public/index.html. Maybe you can try that and see if it works for you.

Read More

Wednesday, June 22, 2016

How to debug DNS for domain with no IP?

Leave a Comment

I have the domain icebuddha.com that I am trying to associate with a static Github Page (https://github.com/0xdabbad00/icebuddha). When I ping or dig this address I get no IP see here. I've configured this domain in Route53 as follows: enter image description here

Name servers match NS record. I don't know what the SOA record is. enter image description here

Other name server view: enter image description here

dig records (normal, notice it has no A records):

$ dig icebuddha.com ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> icebuddha.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 50957 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;icebuddha.com.                 IN      A  ;; Query time: 273 msec ;; SERVER: 192.168.106.2#53(192.168.106.2) ;; WHEN: Sat Jun 18 13:11:26 2016 ;; MSG SIZE  rcvd: 31 

dig records when I specify the name server to use (notice it does have A records, which is good):

$ dig icebuddha.com @ns-10.awsdns-01.com  ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> icebuddha.com @ns-10.awsdns-01.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18793 ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0 ;; WARNING: recursion requested but not available  ;; QUESTION SECTION: ;icebuddha.com.                 IN      A  ;; ANSWER SECTION: icebuddha.com.          300     IN      A       192.30.252.154 icebuddha.com.          300     IN      A       192.30.252.153  ;; AUTHORITY SECTION: icebuddha.com.          172800  IN      NS      ns-10.awsdns-01.com. icebuddha.com.          172800  IN      NS      ns-1447.awsdns-52.org. icebuddha.com.          172800  IN      NS      ns-1607.awsdns-08.co.uk. icebuddha.com.          172800  IN      NS      ns-737.awsdns-28.net.  ;; Query time: 69 msec ;; SERVER: 205.251.192.10#53(205.251.192.10) ;; WHEN: Sat Jun 18 13:11:43 2016 ;; MSG SIZE  rcvd: 199 

1 Answers

Answers 1

The solution was to ensure all three mentions of Name Servers and NS records are the same. By using that last image as the authoritive answer, and setting the middle image to those values, this worked.

Read More