Browse Source

ricerca con tipue search

boyska 6 years ago
parent
commit
9bc4f0f1f8

+ 2 - 1
pelicanconf.py

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

+ 1 - 0
requirements.txt

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

+ 13 - 0
themes/hackit0x14/static/css/hackit.css

@@ -71,6 +71,19 @@ h1, h2, h3, h4, strong, tt {
 	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 {{{ */
 
 .body-index blockquote {

+ 15 - 31
themes/hackit0x14/static/tipuesearch/tipuesearch.css

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

+ 0 - 12
themes/hackit0x14/templates/article.html

@@ -98,15 +98,3 @@
 
 {% 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 %}

+ 4 - 5
themes/hackit0x14/templates/base.html

@@ -192,11 +192,10 @@
 {% if BANNER %}
     <script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/bodypadding.js"></script>
 {% 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>
 </html>