简体   繁体   中英

Jekyll home page corruption on github

I have a simple Jekyll web site. It works as expected on the local server, but when uploaded to github it displays differently. I am guessing that this is because bundle exec jekyll serve behaves differently on github.

This is the way it looks on the local server (I'm using the theme minima )

在此处输入图片说明

and on github

在此处输入图片说明

The extra links in the menu-bar all point to pages on the website

index.md

---
layout: home
---
Welcome to the Psionman Set. This is a series of lessons that I wrote to help me get to grips with some new (to me) technology.

(Some were done for my private use, but you can read them).

[Wx Python from scratch]({{ site.baseurl }}{% link wx_python/wxpython_from_scratch.md %})

And the tree on the local server

.
├── 404.html
├── about.markdown
├── _config.yml
├── Gemfile
├── Gemfile.lock
├── index.md
├── _posts
├── _site
│   ├── 404.html
│   ├── about
│   │   └── index.html
│   ├── assets
│   │   ├── main.css
│   │   ├── main.css.map
│   │   └── minima-social-icons.svg
│   ├── feed.xml
│   ├── index.html
│   └── wx_python
│       ├── images
│       │   ├── basic_frame.png
│       │   ├── datepicker.png
│       ├── introduction.html
│       ├── post01.html
│       ├── post02.html
│       ├── post03.html
│       ├── post04.html
│       ├── snippets
│       │   ├── basic_frame.py
│       │   ├── basic_panel.py
│       └── wxpython_from_scratch.html
└── wx_python
    ├── images
    │   ├── basic_frame.png
    │   ├── datepicker.png
    ├── introduction.md
    ├── post01.md
    ├── post02.md
    ├── snippets
    │   ├── basic_frame.py
    │   ├── basic_panel.py
    └── wxpython_from_scratch.md

[EDIT]

It seems that the items in the menu-bar are created form a heading in the md file

## WxPython from Scratch

Github seems to pick up the first heading and place that in the menu-bar

Can someone please show me how to suppress these?

在 Netlify 上抛弃 Jekyll 转而使用 Sphinx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM