Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminEHowe committed Jun 30, 2024
1 parent 4bc0e1f commit 0044679
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-cloudflare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:
id: extract-branch
- name: Install gems
run: bundle install
- name: Calculate branch alias URL
if: steps.extract-branch.outputs.branch != 'main'
uses: schnerring/cloudflare-pages-branch-alias-action@v1.0.3
id: pages-branch-alias
with:
git-branch: ${{ steps.extract-branch.outputs.branch }}
- name: Set Jekyll URL
if: steps.extract-branch.outputs.branch != 'main'
uses: mikefarah/yq@v4.44.2
with:
cmd: yq -i '.url = "https://${{ steps.pages-branch-alias.outputs.branch-alias }}.beh-uk.pages.dev"' '_config.yml'
- name: Build website (non-production)
if: steps.extract-branch.outputs.branch != 'main'
run: bundle exec jekyll build --drafts --future
Expand Down
Binary file added _assets/img/og-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
url: https://www.beh.uk
language: "en-GB"
logo: "beh.svg"
permalink: /:year/:title
Expand Down
4 changes: 4 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- reset
- main
{% endminibundle %}
<meta property="og:title" content="{{ page.title }}">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ site.url }}/{% ministamp { source_path: '_assets/img/og-square.png', destination_path: 'assets/img/og-square.png' } %}">
<meta property="og:url" content="{{ site.url }}{{page.url}}">
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.beh.uk/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://cdn.beh.uk/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://cdn.beh.uk/img/favicon-16x16.png">
Expand Down

0 comments on commit 0044679

Please sign in to comment.