diff --git a/.github/workflows/update-projects.yml b/.github/workflows/update-projects.yml deleted file mode 100644 index 3cc5561..0000000 --- a/.github/workflows/update-projects.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: update-projects - -on: - schedule: - - cron: '0 0 * * 0' # Runs at 00:00 UTC every Sunday - workflow_dispatch: # Allow manual triggering - -jobs: - update-stats: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Needed for git history - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.13' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyyaml requests - - - name: Update project details - run: python scripts/update-projects.py "data/projects.yml" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Commit changes - if: success() - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" - git add data/projects.yml - git diff --quiet && git diff --staged --quiet || git commit -m "Auto-update GitHub project details." - git push diff --git a/layouts/partials/project.html b/layouts/partials/project.html index 439e412..1c594bd 100644 --- a/layouts/partials/project.html +++ b/layouts/partials/project.html @@ -3,16 +3,19 @@

{{ .item.name }}

- GitHub stars - - {{ .item.stars }} - - {{ .item.language }} + + GitHub stars + + {{ if .item.language }} + Language: {{ .item.language }} + {{ end }}

{{ .item.description }}

- {{ .item.license }} - Last updated on {{ time.Format "January 2, 2006" .item.updated_at }} + {{ if .item.license }} + License: {{ .item.license }} + {{ end }} + Last commit
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/static/static/style.css b/static/static/style.css index c1dec25..58ce8c1 100644 --- a/static/static/style.css +++ b/static/static/style.css @@ -375,6 +375,15 @@ ul.flat li { margin-bottom: 15px; display: flex; align-items: center; + flex-wrap: wrap; + gap: 10px; + } + .projects .stars img { + height: 20px; + vertical-align: middle; + } + .projects .stars iframe { + vertical-align: middle; } .projects .stars .github { margin-right: 5px; @@ -422,7 +431,13 @@ ul.flat li { font-size: 0.875rem; line-height: 1.2rem; display: flex; - justify-content: space-between; + justify-content: flex-start; + align-items: center; + gap: 10px; + } + .projects .project-meta img { + height: 20px; + vertical-align: middle; } .projects .project-meta span { display: block;