Skip to content

Commit

Permalink
Merge pull request #526 from solita-petterizit/fix-double-curlies
Browse files Browse the repository at this point in the history
Fix double curlies
  • Loading branch information
Juholei authored Aug 13, 2024
2 parents 7b16b1d + b99002d commit 27a00b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ If you want to write a post, here's how:
7. Ask someone to review your post
8. Publish by merging the branch

### Formatting tips

#### Double curlies

To render double curly braces (`{{...text...}}`) in post content, you must surround it with raw-tags:

```md
{%- raw -%}
printf("Hello, {{foo}}", foo)
{% endraw %}
```

[More info in Jekyll docs](https://jekyllrb.com/docs/liquid/tags/#code-snippet-highlighting).

## Understanding how the deploy works

There are no workflows in this repo for the deploy - Github has builtin Jekyll based workflows
Expand Down
2 changes: 2 additions & 0 deletions _posts/2024-01-12-azure-without-secrets-part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Important parts here are:
- Set the environment if you configured the federated credential subject to contain it.

```yaml
{%- raw -%}
...

jobs:
Expand All @@ -113,6 +114,7 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Show current account
run: az account show
{% endraw %}
```

And that's it.
Expand Down

0 comments on commit 27a00b2

Please sign in to comment.