How would I write a variable to detect if the current page/Url I'm viewing is for an entry, rather than a section home page or a single?
i.e
{% if I'm currently viewing an entry %}
do this
{% else %}
do this
{% endif %}
There are three types of sections in Craft: singles, structures, and channels. You can use entry.section.type
to test if the current page is displaying one of these section types.
{% if entry.section.type == "channel" %}
<p>This is a channel</p>
{% elseif entry.section.type == "single" %}
<p>This is a single</p>
{% elseif entry.section.type == "structure" %}
<p>This is a structure</p>
{% endif %}