diff --git a/.github/workflows/detect-duplicate.yml b/.github/workflows/detect-duplicate.yml new file mode 100644 index 00000000..99832690 --- /dev/null +++ b/.github/workflows/detect-duplicate.yml @@ -0,0 +1,32 @@ +name: Duplicate Issue Detector + +on: + issues: + types: [opened] + +jobs: + detect-duplicate: + runs-on: ubuntu-latest + steps: + + - name: Check out repository + uses: actions/checkout@v2 + + - name: Detect duplicate issues + id: detect + uses: actions-cool/issues-similarity-analysis@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + owner: ${{ github.repository_owner }} + repo: ${{ github.event.repository.name }} + threshold: 0.7 # Similarity threshold; adjust as needed + label: duplicate + close: true + + - name: Comment on Duplicate Issue + if: steps.detect.outputs.duplicate == 'true' + run: | + curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ + -d '{"body": "This issue is a duplicate of #${{ steps.detect.outputs.original_issue_number }}. Please refer to the original issue for updates."}' diff --git a/Blog_page.html b/Blog_page.html index db9647b4..195bab18 100644 --- a/Blog_page.html +++ b/Blog_page.html @@ -29,70 +29,9 @@ opacity: 0.6; } - .navbar { - background-color: #f0adfb; - padding: 10px; - display: flex; - justify-content: center; /* Center aligns the navbar */ - position: fixed; /* Sticks to the top */ - width: 100%; - z-index: 1000; - } - - .navbar h1 { - color: rgb(255, 255, 255); - margin: 0; - } - - .nav-links { - display: flex; - gap: 20px; - } - - .nav-links a { - color: rgb(255, 255, 255); - text-decoration: none; - padding: 6px 4px; - border-radius: 4px; - transition: background-color 0.3s; - } - - .nav-links a:hover { - background-color: #541058; - } - - .title { - display: flex; - align-items: center; - gap: 1rem; - } - - .site-name { - background: linear-gradient(45deg, #6b21a8, #9333ea); - -webkit-background-clip: text; - background-clip: text; - -webkit-text-fill-color: transparent; - margin: 0; - font-size: 1.8rem; - } - - .nav-links { - display: flex; - gap: 1.5rem; - } + - .nav-links a { - color: #5b21b6; - text-decoration: none; - padding: 0.5rem 1rem; - border-radius: 0.5rem; - transition: all 0.3s ease; - } - - .nav-links a:hover { - background: rgba(147, 51, 234, 0.1); - transform: translateY(-2px); - } + .banner { text-align: center; @@ -261,13 +200,15 @@ margin: 0 1rem; transition: all 0.3s ease; } - + Blog Section + + @@ -653,23 +575,22 @@ - + +