ricerca con tipue search

This commit is contained in:
boyska 2018-04-12 21:06:27 +02:00
parent 02c0f07f87
commit 9bc4f0f1f8
6 changed files with 35 additions and 49 deletions

View file

@ -11,6 +11,7 @@ PATH = 'content'
PAGE_PATHS = ['pages'] PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['news'] ARTICLE_PATHS = ['news']
STATIC_PATHS = ['images', 'talks', 'extra'] STATIC_PATHS = ['images', 'talks', 'extra']
DIRECT_TEMPLATES = ('search',) # tipue search
TIMEZONE = 'Europe/Paris' TIMEZONE = 'Europe/Paris'
@ -60,7 +61,7 @@ BOOTSTRAP_THEME = 'darkly'
HIDE_SIDEBAR = True HIDE_SIDEBAR = True
PLUGIN_PATHS = ['plugins'] PLUGIN_PATHS = ['plugins']
PLUGINS = ['langmenu', 'talks'] PLUGINS = ['langmenu', 'talks', 'tipue_search']
MD_EXTENSIONS = ['toc'] MD_EXTENSIONS = ['toc']

View file

@ -1,4 +1,5 @@
Babel==2.4.0 Babel==2.4.0
beautifulsoup4==4.6.0
blinker==1.3 blinker==1.3
docutils==0.12 docutils==0.12
feedgenerator==1.7 feedgenerator==1.7

View file

@ -71,6 +71,19 @@ h1, h2, h3, h4, strong, tt {
font-size: 21px; font-size: 21px;
} }
.navbar-right li form {
line-height: 21px;
padding-top: 10px;
padding-bottom: 10px;
}
#tipue_search_input {
width: 2em !important;
transition: all 0.5s;
}
#tipue_search_input:focus {
width: 10em !important;
}
/* HOME {{{ */ /* HOME {{{ */
.body-index blockquote { .body-index blockquote {

View file

@ -38,28 +38,23 @@ http://www.tipue.com/search
#tipue_search_warning_head #tipue_search_warning_head
{ {
font: 300 15px/1.6 'Open Sans', sans-serif; font: 300 15px/1.6 'Open Sans', sans-serif;
color: #555;
} }
#tipue_search_warning #tipue_search_warning
{ {
font: 300 13px/1.6 'Open Sans', sans-serif; font: 300 13px/1.6 'Open Sans', sans-serif;
color: #333;
margin: 7px 0; margin: 7px 0;
} }
#tipue_search_warning a #tipue_search_warning a
{ {
color: #36c;
font-weight: 300; font-weight: 300;
text-decoration: none; text-decoration: none;
} }
#tipue_search_warning a:hover #tipue_search_warning a:hover
{ {
color: #333;
} }
#tipue_search_results_count #tipue_search_results_count
{ {
font: 300 13px/1.6 'Open Sans', sans-serif; font: 300 13px/1.6 'Open Sans', sans-serif;
color: #333;
} }
.tipue_search_content_title .tipue_search_content_title
{ {
@ -69,13 +64,8 @@ http://www.tipue.com/search
} }
.tipue_search_content_title a .tipue_search_content_title a
{ {
color: #333;
text-decoration: none; text-decoration: none;
} }
.tipue_search_content_title a:hover
{
color: #555;
}
.tipue_search_content_url .tipue_search_content_url
{ {
font: 300 13px/1.7 'Open Sans', sans-serif; font: 300 13px/1.7 'Open Sans', sans-serif;
@ -87,17 +77,14 @@ http://www.tipue.com/search
} }
.tipue_search_content_url a .tipue_search_content_url a
{ {
color: #06c;
text-decoration: none; text-decoration: none;
} }
.tipue_search_content_url a:hover .tipue_search_content_url a:hover
{ {
color: #333;
} }
.tipue_search_content_text .tipue_search_content_text
{ {
font: 300 15px/1.6 'Open Sans', sans-serif; font: 300 15px/1.6 'Open Sans', sans-serif;
color: #555;
word-break: break-all; word-break: break-all;
word-break: break-word; word-break: break-word;
-webkit-hyphens: auto; -webkit-hyphens: auto;
@ -107,7 +94,6 @@ http://www.tipue.com/search
} }
.h01 .h01
{ {
color: #333;
font-weight: 400; font-weight: 400;
} }
@ -130,27 +116,25 @@ http://www.tipue.com/search
} }
#tipue_search_foot_boxes li a #tipue_search_foot_boxes li a
{ {
padding: 9px 15px 10px 15px; padding: 9px 15px 10px 15px;
background-color: #f1f1f1; background-color: #f1f1f1;
border: 1px solid #dcdcdc; border: 1px solid #dcdcdc;
border-radius: 1px; border-radius: 1px;
color: #333; margin-right: 7px;
margin-right: 7px; text-decoration: none;
text-decoration: none; text-align: center;
text-align: center;
} }
#tipue_search_foot_boxes li.current #tipue_search_foot_boxes li.current
{ {
padding: 9px 15px 10px 15px; padding: 9px 15px 10px 15px;
background: #fff; background: #fff;
border: 1px solid #dcdcdc; border: 1px solid #dcdcdc;
border-radius: 1px; border-radius: 1px;
color: #333; margin-right: 7px;
margin-right: 7px; text-align: center;
text-align: center;
} }
#tipue_search_foot_boxes li a:hover #tipue_search_foot_boxes li a:hover
{ {
border: 1px solid #ccc; border: 1px solid #ccc;
background-color: #f3f3f3; background-color: #f3f3f3;
} }

View file

@ -98,15 +98,3 @@
{% endblock %} {% endblock %}
{% block scripts %}
{% if ADDTHIS_PROFILE %}
{% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %}
<script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
{% endif %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script>
{% endif %}
{% if SHARIFF|default(false) %}
<!-- add shariff support -->
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/shariff.min.js"></script>
{% endif %}
{% endblock %}

View file

@ -192,11 +192,10 @@
{% if BANNER %} {% if BANNER %}
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/bodypadding.js"></script> <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/bodypadding.js"></script>
{% endif %} {% endif %}
{% include 'includes/github-js.html' %}
{% include 'includes/disqus_script.html' %}
{% include 'includes/ga.html' %}
{% include 'includes/piwik.html' %}
{% block scripts %}{% endblock %} {% block scripts %}
<!-- base scripts -->
{% endblock %}
</body> </body>
</html> </html>