Drkcore

25 04 2005 Tweet

absoluteプラグイン

xhtmlのこととかbloglinesのこともあってイントラとグローバルでURLを変えられるようにabsoluteプラグインを導入

blosxom :: the zen of blogging :: plugins/link/absolute.htm

Replaces relative paths in image tags and hyperlinks with their fully-qualified counterparts

まぁ、こんな感じで条件分岐させておく

# --- Configurable variables ----- # e.g. http://www.example/images my $image_url = ""; # What's the URL of your images directory? if($ENV{'REMOTE_ADDR'} =~ /^192.168/){ $image_url = "http://localhost"; }else{ $image_url = ""; } # What's the URL of your $datadir, if publicly-accessible? my $datadir_url = ""; # e.g. http://www.example/blosxom if($ENV{'REMOTE_ADDR'} =~ /^192.168/){ $datadir_url = "http://localhost"; }else{ $datadir_url = ""; }

何で、空で初期化してんのかっていうと、オリジナルがそうだったからだヨ。別に意味はありませんヨ。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021