~stormdragon2976/bashtml

0d960bf562fb244ff2c15b75d40ac27d45243236 — Storm Dragon 3 years ago 64cce1b
Removed feedburner code because it hasn't been updated since 2007 apparently, and will likely go the way of hangouts, reader, circles, etc, etc.
1 files changed, 1 insertions(+), 10 deletions(-)

M bashtml.sh
M bashtml.sh => bashtml.sh +1 -10
@@ 51,10 51,6 @@ global_license="CC by-nc-nd"
global_analytics=""
global_analytics_file=""

# Leave this empty (i.e. "") if you don't want to use feedburner, 
# or change it to your own URL
global_feedburner=""

# Blog generated files
# index page of blog (it is usually good to use "index.html" here)
index_file="index.html"


@@ 658,7 654,6 @@ rebuild_index() {
        done < <(ls -t ./*.html) # sort by date, newest first

        feed=$blog_feed
        if [[ -n $global_feedburner ]]; then feed=$global_feedburner; fi
        echo "<div id=\"all_posts\"><a href=\"$archive_index\">$template_archive</a> &mdash; <a href=\"$tags_index\">$template_tags_title</a> &mdash; <a href=\"$feed\">$template_subscribe</a></div>"
    } 3>&1 >"$contentfile"



@@ 859,11 854,7 @@ create_includes() {
        echo '<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />'
        echo '<meta name="viewport" content="width=device-width, initial-scale=1.0" />'
        printf '<link rel="stylesheet" href="%s" type="text/css" />\n' "${css_include[@]}"
        if [[ -z $global_feedburner ]]; then
            echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$template_subscribe_browser_button\" href=\"$blog_feed\" />"
        else 
            echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$template_subscribe_browser_button\" href=\"$global_feedburner\" />"
        fi
        echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$template_subscribe_browser_button\" href=\"$blog_feed\" />"
        } > ".header.html"
    fi