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

19 lines
342 B
Markdown

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 %}
```