lektor-website/content/docs/api/db/obj/is-visible/contents.lr

19 lines
342 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: is_visible
---
summary: Indicates if the object is visible or not.
---
type: property
---
body:
This is exactly the opposite of [is_hidden :ref](../is-hidden/).
## Example
```html+jinja
{% set downloads = site.get('/downloads') %}
{% if downloads.is_visible %}
<p><a href="{{ downloads|url }}">go to downloads</a>
{% endif %}
```