diff options
Diffstat (limited to 'zurb-F5-basic')
-rw-r--r-- | zurb-F5-basic/templates/base.html | 20 | ||||
-rw-r--r-- | zurb-F5-basic/templates/index.html | 3 | ||||
-rw-r--r-- | zurb-F5-basic/templates/search.html | 46 |
3 files changed, 65 insertions, 4 deletions
diff --git a/zurb-F5-basic/templates/base.html b/zurb-F5-basic/templates/base.html index 944ccb5..29345ec 100644 --- a/zurb-F5-basic/templates/base.html +++ b/zurb-F5-basic/templates/base.html @@ -9,8 +9,15 @@ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/normalize.css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/foundation.css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" />
- <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" />
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" />
<script src="{{ SITEURL }}/theme/js/modernizr.js"></script>
+
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
+ <script src="{{ SITEURL }}tipuesearch_content.js"></script>
+ <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/Tipue-Search/5.0.0/tipuesearch.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/Tipue-Search/5.0.0/tipuesearch_set.js"></script>
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Tipue-Search/5.0.0/tipuesearch.css"/-->
+
</head>
<body>
@@ -68,12 +75,12 @@ {% endif %}
</ul>
- {% if categories %}
+ {% if categories %}
<h5 class="sidebar-title">Categories</h5>
<ul class="side-nav">
{% for cat, null in categories %}
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
- {% endfor %}
+ {% endfor %}
</ul>
{% endif %}
@@ -85,7 +92,11 @@ {% endfor %}
</ul>
{% endif %}
-
+
+ <form class="navbar-search" action="{{ SITEURL }}/{{ SEARCH_URL }}" onsubmit="return validateForm(this.elements['q'].value);">
+ <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input">
+ </form>
+
{% if SOCIAL %}
<h5 class="sidebar-title">Social</h5>
<ul class="side-nav">
@@ -107,6 +118,7 @@ <div class="row">
<div class="large-6 columns">
<!-- <p>{{ SITENAME }} by {{ AUTHOR }}</p> -->
+ {% block relme %}{% endblock %}
</div>
</div>
</div>
diff --git a/zurb-F5-basic/templates/index.html b/zurb-F5-basic/templates/index.html index f6c8e52..4e9658e 100644 --- a/zurb-F5-basic/templates/index.html +++ b/zurb-F5-basic/templates/index.html @@ -1,4 +1,7 @@ {% extends "base.html" %} +{% block relme %} +<a rel="me" href="https://floss.social/@mcepl">Proudly using Mastodon!</a> +{% endblock %} {% block content_title %}{% endblock %} {% block content %} {% if articles %} diff --git a/zurb-F5-basic/templates/search.html b/zurb-F5-basic/templates/search.html new file mode 100644 index 0000000..fabb7f4 --- /dev/null +++ b/zurb-F5-basic/templates/search.html @@ -0,0 +1,46 @@ +{% extends 'base.html' %} + +{% block title %} +Search · {{ super() }} +{% endblock title %} + +{% block head_description %} +Search results for {{ SITENAME|striptags|e }} blog. +{% endblock head_description %} + +{% block meta_tags_in_head %} +{{ super() }} +{% from '_includes/_defaults.html' import FEATURED_IMAGE, SEARCH_URL with context %} +<meta property="og:title" content="Search · {{ SITENAME|striptags|e }}"/> +<meta name="twitter:title" content="Search · {{ SITENAME|striptags|e }}"> +<meta property="og:url" content="{{ SITEURL }}/{{ SEARCH_URL }}" /> +<meta property="og:description" content="Search results for {{ SITENAME|striptags|e }} blog" /> +<meta name="twitter:description" content="Search results for {{ SITENAME|striptags|e }} blog"> +<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" /> +<meta property="og:article:author" content="{{ AUTHOR }}" /> +{% if FEATURED_IMAGE %} +<meta property="og:image" content="{{ FEATURED_IMAGE }}" /> +<meta name="twitter:image" content="{{ FEATURED_IMAGE }}" > +{% endif %} +{% endblock meta_tags_in_head %} + +{% block content %} +<div class="row-fluid"> + <header id="lunr-search-result-heading" class="page-header span10 offset2"> + </header> +</div> + +<div class="row-fluid"> + <div class="span8 offset2"> + <div id="lunr-search-result" > + </div> + </div> +</div> +{% endblock content %} + +{% block script %} + {% if 'tipue_search' in PLUGINS %} + <script src="{{ SITEURL }}/tipuesearch_content.js"></script> + {% endif %} +{{ super() }} +{% endblock script %} |