This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === ENABLE mod_rewrite ========================================= | |
RewriteEngine on | |
# === SECURITY TWEAKS ============================================ | |
# --- Stop malicious visitors from viewing ------- | |
# --- your .htaccess rules in the browser. ------- | |
<Files .htaccess> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!-- Segment_2 isn't blank, so show a blog post's details --} | |
{if segment_2 != ""} | |
{exp:channel:entries channel="blog" url_title="{segment_2}"} | |
{!-- If no results, | |
then segment_2 isn't a URL title for any existing blog post (typo? broken link?), | |
so redirect to the landing page --} | |
{if no_results} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries channel="blog" limit="10"} | |
<div class="post"> | |
<h2 class="postTitle"><a href="{url_title_path='blog/detail'}">{title}</a></h2> | |
<p>Posted {entry_date format='%m/%d'} by {screen_name} </p> | |
{summary} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
{!-- Segment_2 isn't blank, so show a blog post's detail page --} | |
{if segment_2 != ""} | |
<h1>Single Post</h1> | |
{exp:channel:entries channel="blog" url_title="{segment_2}"} | |
{!-- If segment_2 isn't a URL title for any existing blog post, redirect to the landing page --} |
NewerOlder