Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions themes/devopsdays-theme/layouts/shortcodes/asset.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ $file := .Get "file" }}
{{ $image := .Get "image" }}
{{ $year := .Get "year" }}
{{ $city := .Get "city" }}
{{ $name := .Get "name" }}

{{- if ne $file "" -}}

<a href="https://assets.devopsdays.org/events/{{- $year -}}/{{- $city -}}/{{- $file -}}" target="_blank">{{- $name -}}</a>

{{- end -}}

{{- if ne $image "" -}}

<img src = "https:/assets.devopsdays.org/events/{{- $year -}}/{{- $city -}}/{{- $image -}}" class = "img-fluid" alt="{{- $name -}}">

{{- end -}}
14 changes: 14 additions & 0 deletions themes/devopsdays-theme/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
&emsp;[registration_end](#registration_end)
&emsp;[event_map](#event_map)
&emsp;[tix](#tix)
&emsp;[asset](#asset)

<!-- /MDTOC -->

Expand Down Expand Up @@ -448,3 +449,16 @@ To enable the header text, add `info=show` to enable showing of the Event Info s
```
{{< tix city="belgium" year="antwerp-2024" info="show">}}
```

### asset
Create a links to a file or image from the DevOpsDays assset website.
This shorcode requires the city name `city`, the year `year`, the name `name` being file or image and the link type, being `file` which creates a hyperlink or `image` which embeds the image on the page.

```
{{< asset year="2025" city="chicago" name="prospectus" file="2025-chicago-devopsdays-prospectus.pdf" >}}
```

```
{{< asset year="2025" city="chicago" name="map layout" image="map.png" >}}
```

Loading