Skip to content

Commit

Permalink
Add option to disable icon links on talk overview layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzschmid committed Nov 1, 2020
1 parent 1909644 commit a4b22a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ conference:
Try again next year.
```

### Talk Settings: Main Categories
### Talk Settings: Main Categories and Icons

Each talk can have one or multiple categories associated via FrontMatter (see the _Individual Pages: Talks_ section below for more details). Some of these categories can be elevated to so called main categories". These are used to color group the talks across the entire website, particularly in the program. In order to do so add the `main_categories` property under the `talks` property. It consists of a list of all main categories. Each main category consists of:

Expand All @@ -305,6 +305,8 @@ Each talk can have one or multiple categories associated via FrontMatter (see th
- `light` (white)
- `dark` (dark grey)

Each talk can have associated links listed at the end of its content. If these links have an icon associated (see _Content_ > _Talks_ below), they are also shown on the talk overview page (e.g. to show in the overview which talk has a video recording and which not). To disable the showing of icon links on the overviw page, set the `hide_icons` property to `true`.

Example:

```yaml
Expand All @@ -316,6 +318,8 @@ conference:
color: info
- name: Cat B
color: success
# Hide icons on talk overview page
hide_icons: false
```

### Speaker Settings: First name
Expand Down
2 changes: 2 additions & 0 deletions _config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ conference:
color: info
- name: Cat B
color: success
# Hide icons on talk overview page
hide_icons: false

speakers:
# Show first and last name
Expand Down
2 changes: 1 addition & 1 deletion _layouts/talk-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3 class="mt-4 mb-3">
{% endif %}
{% endfor %}

{% if has_icon_links %}
{% if has_icon_links and site.conference.talks.hide_icons != true %}
<span class="{% if has_sub_categories %}ml-1{% endif %}">
{% for link in talk.links %}
{% if link.icon %}
Expand Down

0 comments on commit a4b22a4

Please sign in to comment.