-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
1 lines (1 loc) · 3.74 KB
/
layout.html
1
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><title>{% block title %}{% endblock %}</title><link rel="icon" href="{{options.favicon_url |default('/static/img/firekylin.jpg')}}"> {% if options.favicon %}<link rel="shortcut icon" href="{{options.favicon}}" type="image/x-icon">{% endif %}<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss.html"><link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="{{ options.title }}"> {% if options.keywords %}<meta name="keywords" content="{{options.keywords}}">{% endif %} {% if options.description %}<meta name="description" content="{{options.description}}">{% endif %} {%- block headers %}{% endblock -%} {% set lscookie = 'lscookie'%}<style>{% include "./res/css/all.css" %}</style> {% if themeConfig.sidebarBackground or themeConfig.sidebarBackgroundColor or themeConfig.customCSS or themeConfig.sidebarColor %}<style>{ % if themeConfig.sidebarBackground or themeConfig.sidebarBackgroundColor % } #sidebar { { % if themeConfig.sidebarBackground % } background-image: url('{{themeConfig.sidebarBackground}}'); background-size:cover; { % endif % } { % if themeConfig.sidebarBackgroundColor % } background-color: { { themeConfig.sidebarBackgroundColor } } ; { % endif % } } { % endif % } { % if themeConfig.sidebarColor % } #sidebar .profile span, #sidebar .buttons li a, #sidebar .buttons li a:hover { color: { { themeConfig.sidebarColor } } ; } { % endif % } { % if themeConfig.customCSS % } { { themeConfig.customCSS | safe } } { % endif % }</style> {% endif %}</head><body><nav id="sidebar"><div class="profile"><a href="/"><img src="{{options.logo_url|default('/static/img/firekylin.jpg')}}" alt="{{options.title}}"></a><span>{{options.title}}</span></div><ul class="buttons"> {% for nav in navigation %}<li><a class="" href="{{nav.url}}" title="{{nav.label}}"> {{nav.label}}</a></li> {% endfor %}</ul><ul class="buttons social"> {% if options.github_url %}<li><a class="inline" rel="nofollow" target="_blank" href="{{options.github_url}}">GitHub</a></li> {% endif %} {% if options.twitter_url %} {% if options.twitter_url.indexOf('twitter.com') > -1 %}<li><a class="inline" rel="nofollow" target="_blank" href="{{options.twitter_url}}">Twitter</a></li> {% endif %} {% if options.twitter_url.indexOf('weibo.com') > -1 %}<li><a class="inline" rel="nofollow" target="_blank" href="{{options.twitter_url}}">Weibo</a></li> {% endif %} {% endif %}<li><a class="inline" href="/rss.html">RSS</a></li><li><a class="inline" href="/search.html">Search</a></li></ul></nav><div id="main">{% block content %}{% endblock %}<footer id="footer" class="inner">© {{ currentYear }} - {{options.title}} {% if options.miitbeian or options.mpsbeian %} {% if options.miitbeian %} - <a target="_blank" rel="nofollow" class="external beian" href="http://www.miitbeian.gov.cn/">{{options.miitbeian}}</a> {% endif %} {% if options.mpsbeian %} - <a target="_blank" rel="nofollow" class="external beian" href="http://www.beian.gov.cn/">{{options.mpsbeian}}</a> {% endif %} {%else%} - <a href="/">{{http.hostname}}</a> {% endif %} Powered by <a target="_blank" href="https://thinkjs.org">ThinkJS</a> & <a target="_blank" rel="nofollow" class="external" href="https://firekylin.org">FireKylin 改</a></footer></div>{% if options.analyze_code %} {{options.analyze_code | safe}}{% endif %}{% if themeConfig.customJS %}<script>{ { themeConfig.customJS | safe } }</script>{% endif %}</body></html>