2 Commits

Author SHA1 Message Date
Dave Kerr
eaace27b1a fix(build): only deploy website on release 2025-03-31 08:32:14 +01:00
Dave Kerr
1974f53351 feat(website): linkedin share 2025-03-31 08:29:49 +01:00
2 changed files with 3 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
<div class="social-sharing"> <div class="social-sharing">
<a href="https://twitter.com/intent/tweet?url=https://hacker-laws.com/#{{ section.id}}?hashtags=example" title="Share on Twitter" target="_blank"><i class="bi bi-twitter"></i></a> <a href="https://twitter.com/intent/tweet?url=https://hacker-laws.com/#{{ section.id}}?hashtags=example" title="Share on Twitter" target="_blank"><i class="bi bi-twitter"></i></a>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://hacker-laws.com/&num;{{ section.id }}" title="Share on Facebook" target="_blank"><i class="bi bi-facebook"></i></a> <a href="https://www.facebook.com/sharer/sharer.php?u=https://hacker-laws.com/&num;{{ section.id }}" title="Share on Facebook" target="_blank"><i class="bi bi-facebook"></i></a>
<a href="https://www.linkedin.com/feed/?shareActive=true&text={{ section.title}} https://hacker-laws.com/&num;{{ section.id }}" title="Share on LinkedIn" target="_blank"><i class="bi bi-linkedin"></i></a>
</div> </div>
</section> </section>
{% endfor %} {% endfor %}

View File

@@ -87,6 +87,8 @@ jobs:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: release
if: ${{ needs.release.outputs.released }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4