Skip to content

Instantly share code, notes, and snippets.

View gegeriyadi's full-sized avatar
🏠
Working from home

Teguh Riyadi gegeriyadi

🏠
Working from home
View GitHub Profile
@gegeriyadi
gegeriyadi / AND_OR_NOT
Created September 26, 2018 09:20 — forked from oliverdoetsch/AND_OR_NOT
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR
server {
listen 80;
listen [::]:80;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;