Skip to content

Commit

Permalink
Add text_link in markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
BreathingFlesh committed Jan 29, 2025
1 parent 382bcc6 commit eee0e4e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions homepage_widget_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ There are two different types of rows, `<row-wide> </row-wide>` and `<row> </row
</title>
```
| Attribute Name | Description | Value if left empty | Possible Values |
| ------------- | ------------------------------------------ | ------------------- | ---------------------- |
| ------------- | ------------------------------------------ | ------------------- | ---------------------- |
| `class` | Custom classes | - | Any class name |


Expand Down Expand Up @@ -79,9 +79,10 @@ The images for the slider are defined via photoalbums. You can find the "show on
## Autoplay Video(s)
[![Autoplay Video](docs/_static/homepage_widgets//autoplay_video.png?raw=true)]()
```
<autoplay_video
<autoplay_video
max-height="100vh"
text="Text on video"
text_link="https://..."
link_mp4="/storage/..."
link_mp4_low_res="/storage/..."
link_webm="/storage/..."
Expand All @@ -92,6 +93,7 @@ The images for the slider are defined via photoalbums. You can find the "show on
| ------------- | ------------------------------------------ | ------------------- | ---------------------- |
| `max-height` | The *maximum* height of the video. Can for example be used for fullscreen videos on desktop. The video will center itself in the available space. | Video height | 30vw, 40vh, 100px, ... |
| `text` | Text to be shown atop of the video | - | Any text |
| `text_link` | Turns the text into a linked button | - | https://... |
| `link_mp4_low_res` | Link to the video in the mp4 format with reduced size uploaded in the files-section. Will be shown for mobile devices instead of the full sized video. | - | /storage/... |
| `link_mp4` | Link to the full sized video in the mp4 format uploaded in the files-section. Will be shown for desktop and mobile, if no smaller size is available. | - | /storage/... |
| `link_webm_low_res` | Link to the video in the webm format with reduced size uploaded in the files-section. Will be shown for mobile devices instead of the full sized video. | - | /storage/... |
Expand All @@ -101,9 +103,9 @@ The images for the slider are defined via photoalbums. You can find the "show on
You can add multiple videos and wrap them with `<random_videos> </random_videos>` to display one of the videos at random each time the page gets refreshed. Like this:
```
<random_videos>
<autoplay_video
<autoplay_video
link_mp4="/storage/video_1" />
<autoplay_video
<autoplay_video
link_mp4="/storage/video_2" />
</random_videos>
Expand All @@ -113,8 +115,8 @@ You can add multiple videos and wrap them with `<random_videos> </random_videos>
## Icon Links
[![Icon Links](docs/_static/homepage_widgets//icon_links.png?raw=true)]()
```
<icon_link
icon="fa-concierge-bell"
<icon_link
icon="fa-concierge-bell"
title="Online-Schalter"
link="/forms"
text="Nehmen Sie online bequem Dienstleistungen in Anspruch"
Expand Down Expand Up @@ -177,7 +179,7 @@ You can adjust the number of displayed events in the homepage-settings form.

## Partners
[![Partners](docs/_static/homepage_widgets//partners.png?raw=true)]()
```
```
<partners />
```
| Attribute Name | Description | Value if left empty | Possible Values |
Expand Down Expand Up @@ -210,13 +212,13 @@ The label and visibility of the services can be edited in the homepage settings.

## Contacts
[![Contacts](docs/_static/homepage_widgets/people.png?raw=true)]()
```
```
<contacts_and_albums/>
```

## Directories
[![Directories](docs/_static/homepage_widgets/directories.png?raw=true)]()
```
```
<directories/>
```

Expand Down Expand Up @@ -290,7 +292,7 @@ The label and visibility of the services can be edited in the homepage settings.

## Jobs
[![Jobs](docs/_static/homepage_widgets//jobs.png?raw=true)]()
```
```
<jobs
rss_feed="https://www.publicjobs.ch/rss/~search1576049765b9fb8a630d17ec5dfcce06841a6e"
jobs_card_title="Looking for ..."
Expand Down

0 comments on commit eee0e4e

Please sign in to comment.