fix: mantis.html backtest section mobile rendering #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SEO Audit | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "*.html" | |
| - "sitemap.xml" | |
| - "robots.txt" | |
| jobs: | |
| seo-audit: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: SEO / Content checks | |
| run: | | |
| PASS=0; FAIL=0 | |
| check() { | |
| local label="$1"; local file="$2"; local pattern="$3" | |
| if grep -qE "$pattern" "$file" 2>/dev/null; then | |
| echo " ✓ $label: $file" | |
| PASS=$((PASS+1)) | |
| else | |
| echo " ✗ $label MISSING: $file" | |
| FAIL=$((FAIL+1)) | |
| fi | |
| } | |
| PAGES="index.html dotlend.html sha.html invariant.html tix-dao.html nexus.html oap.html ton-sha.html cookies.html" | |
| for PAGE in $PAGES; do | |
| [ ! -f "$PAGE" ] && continue | |
| echo "── $PAGE" | |
| check "<title> tag" "$PAGE" "<title>" | |
| check "meta description" "$PAGE" "meta name=\"description\"" | |
| check "viewport meta" "$PAGE" "meta name=\"viewport\"" | |
| check "charset utf-8" "$PAGE" "charset" | |
| check "og:title" "$PAGE" "og:title" | |
| done | |
| echo "" | |
| echo "── Grant amount check (no \$49,000 in HTML)" | |
| if grep -rE '\$49,000|49,000' --include="*.html" --exclude-dir=docs . 2>/dev/null; then | |
| echo " ✗ FAIL: \$49,000 found — SHA grant is \$25,000" | |
| FAIL=$((FAIL+1)) | |
| else | |
| echo " ✓ PASS" | |
| PASS=$((PASS+1)) | |
| fi | |
| echo "" | |
| echo "── SHA contract address check" | |
| if grep -q "0xD661a1aB8CEFaaCd78F4B968670C3bC438415615" sha.html 2>/dev/null; then | |
| echo " ✓ PASS: contract address present in sha.html" | |
| PASS=$((PASS+1)) | |
| else | |
| echo " ✗ WARN: SHA contract address not found in sha.html" | |
| fi | |
| echo "" | |
| echo "── sitemap.xml present" | |
| if [ -f "sitemap.xml" ]; then | |
| echo " ✓ PASS" | |
| PASS=$((PASS+1)) | |
| else | |
| echo " ✗ FAIL" | |
| FAIL=$((FAIL+1)) | |
| fi | |
| echo "" | |
| echo "══════════════════════════════" | |
| echo "Result: $PASS PASS — $FAIL FAIL" | |
| echo "══════════════════════════════" | |
| [ $FAIL -gt 0 ] && exit 1 || exit 0 |