Skip to content

Commit 8860ae1

Browse files
authored
Update homepage content (#9)
2 parents f1f2a04 + 60d06fb commit 8860ae1

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

_includes/about.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<h2>What is this site?</h2>
2+
3+
<p>
4+
This is Cal-ITP's
5+
<a href="https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#types-of-github-pages-sites">
6+
GitHub Pages organization site</a>, served under a custom domain using a
7+
<a href="https://github.com/cal-itp/cal-itp.github.io/blob/main/CNAME">CNAME</a> file.
8+
</p>
9+
<p>
10+
This site is the root of Cal-ITP's GitHub Pages project sites, which are the other repositories that have GitHub Pages enabled. These
11+
sites are automatically available at <code>https://docs.calitp.org/repo-name</code>.
12+
</p>
13+
<p>
14+
To create a simple Markdown-based documentation site, see our instructions at:
15+
<a href="https://docs.calitp.org/mkdocs-template">https://docs.calitp.org/mkdocs-template</a>
16+
</p>

_includes/repos/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<h2>Browse our projects</h2>
2+
13
<div class="repo-list">
24
{% assign repos = site.data.repos | sort: "updated_at" | reverse %}
35
{% for repo in repos %}

index.html

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,6 @@
22
layout: default
33
---
44

5-
<h2>Browse our projects</h2>
5+
{% include about.html %}
66

77
{% include repos/index.html %}
8-
9-
<h2>What is this site for?</h2>
10-
<p>
11-
This is a GitHub Pages <em>organization site</em>, created in a repository named with the pattern
12-
<code>org-name.github.io</code>. For Cal-ITP this is
13-
<a href="https://github.com/cal-itp/cal-itp.github.io">cal-itp.github.io</a>.
14-
</p>
15-
<p>
16-
Like all GitHub Pages sites, organization sites can define a
17-
<a href="https://github.com/cal-itp/cal-itp.github.io/blob/main/CNAME"><code>CNAME</code></a> file to customize the domain.
18-
</p>
19-
<p>
20-
An organization site serves as the root of that organization's <em>project sites</em>, which are just the other
21-
repositories within the organization that have GitHub Pages enabled.
22-
</p>
23-
<p>
24-
With the custom domain configured here, all Cal-ITP GitHub Pages sites are automatically available at
25-
<code>https://docs.calitp.org/repo-name</code>.
26-
</p>

0 commit comments

Comments
 (0)