Skip to content

Commit

Permalink
Removed jekyll-theme external dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Jun 16, 2024
1 parent 411f4e3 commit 8a61f67
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jekyll-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll; JEKYLL_ENV=production JEKYLL_GITHUB_TOKEN=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 jekyll build --safe true --trace"
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll; JEKYLL_ENV=production PAGES_REPO_NWO=zubeax jekyll build --safe true --trace"
2 changes: 1 addition & 1 deletion .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
JEKYLL_GITHUB_TOKEN: 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
PAGES_REPO_NWO: zubeax
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
Expand Down
18 changes: 18 additions & 0 deletions _includes/repo-display.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="project">
<h2><a href="{{ repo.html_url }}">{{ include.repo.name }}</a></h2>

<p>{{include.repo.description}}</p>

<div class="topics">
{% for topic in include.repo.topics %}
<p>{{ topic }}</p>
{% endfor %}
</div>

<p>
Last updated:
<span class="update">
{{include.repo.updated_at | date_to_string}}
</span>
</p>
</div>
5 changes: 1 addition & 4 deletions _layouts/repository.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

{% for repo in site.github.public_repositories %}
{% if repo.fork == false and repo.topics.size > 0 %}
## [{{ repo.name }}]({{ repo.html_url }})
{{repo.description}}
Topics: {{ repo.topics | array_to_sentence_string}}
Last updated: {{repo.updated_at | date_to_string}}
{% include repo-display.html repo=repo %}
{% endif %}
{% endfor %}
2 changes: 1 addition & 1 deletion start-jekyll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ draftsclause="--drafts"

export JEKYLL_ENV=production
export JEKYLL_GITHUB_TOKEN=$(cat token)
export PAGES_REPO_NWO="https://github.com/zubeax"
export PAGES_REPO_NWO=zubeax

#bundle exec jekyll build --trace
bundle exec jekyll serve --host=0.0.0.0 $draftsclause --trace --incremental --watch --force_polling
Expand Down

0 comments on commit 8a61f67

Please sign in to comment.