';
process_notes();
// process_logs();
process_tag_names();
if ($argv[1] == 'list') {
$tags = array_keys($GLOBALS['tag_to_essays']);
foreach ($tags as $tag)
if (!special_tag($tag))
print "$tag\n";
exit;
}
function print_nav_tags($tags,$hide_total = false) {
foreach ($tags as $tag) {
$count = count($GLOBALS['tag_to_essays'][$tag]);
$should_bold = $GLOBALS['tag_to_new'][$tag] && $tag != "_new";
$bold_start = $should_bold ? "" : "";
$bold_end = $should_bold ? "" : "";
echo "$bold_start" . strtolower(tag_name_sub($tag)) . "$bold_end";
if (!$hide_total)
echo " $count";
echo "
\n";
}
}
function print_nav() {
echo "
" . $subtitle . "
"; if ($description = $idea_data->description) { echo MyMarkdown($description); } echo "You can read full posts on Medium, or you can browse the scratchpad:
" . titleify($title) . "";
if ($body = $GLOBALS['essays'][$title]) {
echo " — ";
echo substr($body,0,144);
}
echo "
";
$tags = $GLOBALS['essay_to_tags'][$title];
foreach ($tags as $tag) {
if (special_tag($tag) && $GLOBALS['local_access'] || !special_tag($tag) || $tag == "_new")
echo " " . $tag . "\n";
}
echo "
\s*?/','
',$text); // $text = preg_replace('/<\/p>\s*?<\/blockquote>/','',$text); return $text; } ?> if ($tag = $GLOBALS['tag_route']) { $tag_name = $tag; if($GLOBALS['tag_to_name'][$tag]) $tag_name = $GLOBALS['tag_to_name'][$tag]; $title = ucwords(tag_name_sub($tag)); $home = false; } else { $home = true; $title = "Philosophistry"; } ?>= $title ?> $home ? " (Philosophistry)" : "" ?>