GithuBlog

テーマの変え方

←戻る

/templates/以下にあるファイルのindex.htmlがホーム画面、post.htmlが投稿表示画面です。また、cssを別途作成しても変換しないので使えません。html内に含めてください。

各要素

{{ site_name }}: サイト名を取得します

{% for post in posts %}

  • {{ post.title }}
  • {% endfor %} : 投稿一覧を取得します

    {{ owner }}: 名前を取得します

    {{ bio }}: 自己紹介を取得します

    {% for name, url in sns.items() %}

  • {{ name|capitalize }}
  • {% endfor %} : 外部サイトのurl(config.yml内のsns)を取得します

    {{ content|safe }}: ブログコンテンツを取得します。page.html内でのみ使用可能。

    {{ title }}: ブログタイトルを取得します。page.html内でのみ使用可能。

    {{ background_color }}: 背景色を取得します

    {{ text_color }}: テキストカラーを取得します

    {{ link_color }}: リンクカラーを取得します