mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 05:18:12 +08:00
home page fix (#551)
* explicit site.url in config * infra for custom css * moves home item to html layout * adds baseurl to site config
This commit is contained in:
+1
-2
@@ -1,9 +1,8 @@
|
|||||||
theme: jekyll-theme-cayman
|
theme: jekyll-theme-cayman
|
||||||
show_downloads: false
|
show_downloads: false
|
||||||
|
baseurl: /cellxgene
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
- title: Home
|
|
||||||
url: /
|
|
||||||
- title: Data
|
- title: Data
|
||||||
url: data.html
|
url: data.html
|
||||||
- title: FAQ
|
- title: FAQ
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
|
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
|
||||||
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
|
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
|
||||||
{% if site.nav %}
|
{% if site.nav %}
|
||||||
|
<a href="{{ site.baseurl }}/" class="btn">Home</a>
|
||||||
{% for item in site.nav %}
|
{% for item in site.nav %}
|
||||||
<a href="{{ item.url }}" class="btn">{{ item.title }}</a>
|
<a href="{{ item.url }}" class="btn">{{ item.title }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
@import "{{ site.theme }}";
|
||||||
Reference in New Issue
Block a user