LoginSignup
2
1

More than 5 years have passed since last update.

PelicanブログにTheme追加

Posted at

PelicanブログにThemeを追加します。

Pelican Themesに一覧があります。

テーマの導入として
https://github.com/duilio/pelican-octopress-theme/archive/master.zip
からすべてのテーマをダウンロードしpelicanconf.pyの

THEME = '使いたいテーマの場所

を編集すればいいのですが、

テーマを別に変えることもないし全部ダウンロードするのもめんどくさいので今回はデザインが個人的にすきなFlexを使います。

プロジェクトディレクトリ以下で

git clone https://github.com/alexandrevicenzi/Flex.git ~/themes/flex

そして、pelicanconf.py

THEME = './themes/flex'

にします。

あとはpelicanconf.pyをいろいろ編集すれば変えられます。

.
.
.
# Blogroll
LINKS = (('リンク', 'URL'),
        ('リンク', 'URL'),)

# Social widget
SOCIAL = (('github', 'GithuのURL'),
    ('linkedin', 'LinkedinのURL'),
    ('google', 'google+のURL'),
    ('instagram', 'instagramのURL'),
    )
.
.
.

使えるアイコンは

  • envelope-o (for email)
  • facebook
  • github
  • github-alt
  • google
  • linkedin
  • pinterest
  • rss
  • stack-overflow
  • twitter
  • youtube

この他にもFont AwesomeにあるものだったらOK

しかし、バックグラウンドをFlexのcssに追加しなければなりません。

私の場合、Instagramのアイコンがなかったので追加しました。

参考サイト
Flex

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1