Browse Source

mobile style

master
lowrussia 5 years ago
parent
commit
20d1158e40
  1. 7
      themes/varia/templates/base.html
  2. 7
      themes/varia/templates/index.html

7
themes/varia/templates/base.html

@ -5,13 +5,14 @@
<title>{% block title %}{{ SITENAME }} {{SITESUBTITLE}}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }} {{SITESUBTITLE}}{% endblock title %}</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="{{ SITEURL}}/favicon.ico" type="image/x-icon"> <link rel="icon" href="{{ SITEURL}}/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{{ SITEURL }}/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="{{ SITEURL }}/favicon.ico" type="image/x-icon">
{% from 'syndication.html' import syndication with context %} {% from 'syndication.html' import syndication with context %}
{{ syndication(article) }} {{ syndication(article) }}
<link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/fork-awesome/css/fork-awesome.min.css" /> <link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/fork-awesome/css/fork-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/pygment.css" /> <link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/pygment.css" />
<link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/{{ CSS_FILE }}" /> <link rel="stylesheet" type="text/css" href="/{{ THEME_STATIC_DIR }}css/{{ CSS_FILE }}" />
{% endblock head %} {% endblock head %}
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
@ -52,7 +53,7 @@
<br> <br>
</div> </div>
<div class="buttons top"> <div class="buttons top">
</div> </div>
{% block banner %} {% block banner %}
<header id="banner"> <header id="banner">
@ -60,7 +61,7 @@
{% if p.title == 'header' %} {% if p.title == 'header' %}
<div id="title"> <div id="title">
{{ p.content }} {{ p.content }}
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</header> </header>

7
themes/varia/templates/index.html

@ -30,11 +30,10 @@
{% if article.event_start %} {% if article.event_start %}
{% set event_status = '' %} {% set event_status = '' %}
{% set now = article.date.now() | string %} {% if article.event_start < article.date.now() %}
{% if article.event_start < now %}
{% set event_status = ' past' %} {% set event_status = ' past' %}
{% endif %} {% endif %}
{% if article.event_start >= now %} {% if article.event_start >= article.date.now() %}
{% set event_status = ' current' %} {% set event_status = ' current' %}
{% set thumb_size = '/thumb2x' %} {% set thumb_size = '/thumb2x' %}
{% endif %} {% endif %}
@ -52,7 +51,7 @@
<span class="entry-title"><a href="/{% if article.lang == 'en' %}en/{% endif %}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span> <span class="entry-title"><a href="/{% if article.lang == 'en' %}en/{% endif %}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
{% if article.event_start %} {% if article.event_start %}
<div class="event-details"> <div class="event-details">
<!-- article.event_start | strftime('%d %B %Y') --> {{ article.event_start | strftime('%d %B %Y') }}
</div> </div>
{% else %} {% else %}
<div class="event-details"></div> <div class="event-details"></div>

Loading…
Cancel
Save