Skip to content

Commit b31a5bb

Browse files
committed
feat: Implement Custom Footer
This commit replaces the default footer with a custom message. Currently, it utilizes a fork of the 'jekyll-build-pages' action (https://github.com/actions/jekyll-build-pages) due to an unmerged pull request (pages-themes/primer#85). Once the pull request is merged into the upstream, this change can be reverted.
1 parent dee12a5 commit b31a5bb

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
- name: Setup Pages
3030
uses: actions/configure-pages@v4
3131
- name: Build with Jekyll
32-
uses: actions/jekyll-build-pages@v1
32+
# uses: actions/jekyll-build-pages@v1
33+
# NOTE: Remove items below when https://github.com/pages-themes/primer/pull/85 is merged.
34+
uses: rickstaa/jekyll-build-pages@remote_theme
3335
with:
3436
source: ./
3537
destination: ./_site

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source 'https://rubygems.org'
22
gem 'github-pages', group: :jekyll_plugins
33
gem 'nokogiri', '~> 1.12.5'
4+
gem "jekyll-remote-theme"

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ name: A curated list of awesome Livepeer resources.
22
title: null
33
markdown: GFM
44
google_analytics:
5+
# NOTE: Remove items below when https://github.com/pages-themes/primer/pull/85 is merged.
6+
plugins:
7+
- jekyll-remote-theme
8+
remote_theme: rickstaa/primer@make_footer_customisable

_includes/footer-custom.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% if site.github.private != true and site.github.license %}
2+
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
3+
This list is open source and maintained by the community. {% github_edit_link "Improve this page" %}.
4+
</div>
5+
{% endif %}

0 commit comments

Comments
 (0)