Skip to content

Commit

Permalink
test: jekyll exclude file list
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhawks committed Jan 2, 2024
1 parent 579349e commit 8c7ad7d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
uses: actions/jekyll-build-pages@v1
with:
source: ./
exclude: |
template.md
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions create_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CreateMarkdown:

def __init__(self):
self.url = 'https://github.com/jackhawks/rectg'
self.template_file = 'template.md'
self.template_file = '_template.md'

def readme_handler(self):
readme_url = posixpath.join(self.url, "blob/main/README.md")
Expand Down Expand Up @@ -100,7 +100,7 @@ def get_info(self, urls):
}

def create_md(self, repo):
with open('template.md', 'r', encoding='utf-8') as file:
with open('_template.md', 'r', encoding='utf-8') as file:
template = Template(file.read(), trim_blocks=True)
rendered_file = template.render(repo=repo)
# output the file
Expand Down

0 comments on commit 8c7ad7d

Please sign in to comment.