に Jekyll ブログがあり、静的ファイル (特に pdf) を指すexample.com
パスが必要です。example.com/doc
Jekyll エイリアス ジェネレーターは、静的ファイルではなく、個々の投稿に対してのみ機能するようです。
トリックは何ですか?
に Jekyll ブログがあり、静的ファイル (特に pdf) を指すexample.com
パスが必要です。example.com/doc
Jekyll エイリアス ジェネレーターは、静的ファイルではなく、個々の投稿に対してのみ機能するようです。
トリックは何ですか?
ステップ 1. ルートに「doc」ディレクトリを作成します。
ステップ 2. このディレクトリに index.html を作成し、次のようにヘッダーにメタ リダイレクトを追加します。
<!DOCTYPE html>
<html>
<head>
<title>You are being redirected</title>
<meta http-equiv="refresh" content="0; url=filename.pdf">
</head>
<body>You are being redirected... if not, <a href="filename.pdf">click here</a>.</body>
</html>
ステップ 3. filename.pdf ファイルを index.html の隣に置きます。