Skip to content

Commit b2d56ce

Browse files
committed
Included github-metadata gem
1 parent e0880be commit b2d56ce

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ gem "jekyll", "~> 4.2.0"
1717
# If you have any plugins, put them here!
1818
group :jekyll_plugins do
1919
gem "jekyll-feed", "~> 0.12"
20+
gem "jekyll-github-metadata"
2021
end
2122

2223
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ baseurl: "/dcs-notes.github.io"
2727
# theme: jekyll-theme-cayman
2828
plugins:
2929
- jekyll-feed
30+
- jekyll-github-metadata
3031
markdown: kramdown
3132
github:
3233
repository_url: https://github.com/CSRG-Group/dcs-notes.github.io
@@ -92,6 +93,11 @@ collections:
9293
output: true
9394
CS131:
9495
output: true
96+
order:
97+
- part1.md
98+
- part2.md
99+
- part3.md
100+
- part4.md
95101
CS132:
96102
output: true
97103
order:

_includes/partnav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- if include.pre -%}
2-
<a href="{{ site.baseurl }}{{ include.pre }}" title="{{ include.ntitle }}">👈Prev</a>
2+
<a href="{{ include.pre | relative_url }}" title="{{ include.ptitle }}">👈Prev</a>
33
{%- endif -%}
44
<a href="./" title="{{ include.mod }} Home">🏡{{ include.mod }}</a>
55
{%- if include.nex -%}
6-
<a href="{{ site.baseurl }}{{ include.nex }}" title="{{ include.ptitle }}">Next👉</a>
6+
<a href="{{ include.nex | relative_url }}" title="{{ include.ntitle }}">Next👉</a>
77
{%- endif -%}

_layouts/default.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
<meta name="viewport" content="width=device-width, initial-scale=1">
2323
<meta name="theme-color" content="#157878">
2424
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
25-
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css">
25+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
2626
</head>
2727
<body>
2828
<header class="page-header" role="banner">
2929
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
3030
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
31+
{% if site.github.is_project_page %}
3132
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
33+
{% endif %}
3234
{% if site.show_downloads %}
3335
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
3436
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
@@ -42,7 +44,6 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de
4244
{% if site.github.is_project_page %}
4345
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
4446
{% endif %}
45-
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
4647
</footer>
4748
</main>
4849
</body>

_layouts/notes.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ <h2 style="margin-left: 10px;">Table of Contents</h2>
8181
}}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name
8282
}}</a>.</span>
8383
{% endif %}
84-
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub
85-
Pages</a>.</span>
8684
</footer>
8785
</main>
8886
</div>

0 commit comments

Comments
 (0)