updated search highlight
This commit is contained in:
parent
e983dc0381
commit
0a749bb620
3 changed files with 33 additions and 14 deletions
|
@ -126,3 +126,6 @@ body {
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
input#search::placeholder{
|
||||
color: $grey-darker;
|
||||
}
|
|
@ -6,28 +6,38 @@
|
|||
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="content-type"
|
||||
content="text/html; charset=utf-8">
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
<title>
|
||||
{% block title %}{{ config.title }}{% endblock title %}
|
||||
</title>
|
||||
|
||||
{% if config.extra.zulma_theme %}
|
||||
<link rel="preload" as="style" href="{{ get_url(path=config.extra.zulma_theme ~ ".css", trailing_slash=false) }}" />
|
||||
<link rel="preload" as="style"
|
||||
href="{{ get_url(path=config.extra.zulma_theme ~ ".css", trailing_slash=false) }}" />
|
||||
{% else %}
|
||||
<link rel="preload" as="style" href="{{ get_url(path="default.css", trailing_slash=false) }}" />
|
||||
<link rel="preload" as="style"
|
||||
href="{{ get_url(path="default.css", trailing_slash=false) }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if config.generate_rss %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
|
||||
<link rel="alternate" type="application/rss+xml"
|
||||
title="RSS"
|
||||
href="{{ get_url(path="rss.xml") | safe }}">
|
||||
{% endif %}
|
||||
|
||||
{% block css %}
|
||||
{% if config.extra.zulma_theme %}
|
||||
<link rel="stylesheet" href="{{ get_url(path=config.extra.zulma_theme ~ ".css", trailing_slash=false) }}" />
|
||||
<link rel="stylesheet"
|
||||
href="{{ get_url(path=config.extra.zulma_theme ~ ".css", trailing_slash=false) }}" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="default.css", trailing_slash=false) }}" />
|
||||
<link rel="stylesheet"
|
||||
href="{{ get_url(path="default.css", trailing_slash=false) }}" />
|
||||
{% endif %}
|
||||
{% endblock css %}
|
||||
|
||||
|
@ -76,10 +86,14 @@
|
|||
</div>
|
||||
</main>
|
||||
{% endblock content %}
|
||||
<script async type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") }}"></script>
|
||||
<script async type="text/javascript" src="{{ get_url(path="search_index.en.js") }}"></script>
|
||||
<script async type="text/javascript" src="{{ get_url(path="js/bulma.js") }}"></script>
|
||||
<script async type="text/javascript" src="{{ get_url(path="js/search.js") }}"></script>
|
||||
<script async type="text/javascript"
|
||||
src="{{ get_url(path="elasticlunr.min.js") }}"></script>
|
||||
<script async type="text/javascript"
|
||||
src="{{ get_url(path="search_index.en.js") }}"></script>
|
||||
<script async type="text/javascript"
|
||||
src="{{ get_url(path="js/bulma.js") }}"></script>
|
||||
<script async type="text/javascript"
|
||||
src="{{ get_url(path="js/search.js") }}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -11,7 +11,8 @@
|
|||
<header>
|
||||
<div class="has-text-centered">
|
||||
<a href="{{ page.permalink | safe }}">
|
||||
<p class="title article-title">{{ page.title }}</p>
|
||||
<p class="title article-title">{{ page.title }}
|
||||
</p>
|
||||
</a>
|
||||
<div class="tags has-addons level-item">
|
||||
{% if page.extra.author %}
|
||||
|
@ -33,7 +34,8 @@
|
|||
<div itemprop="summary" class="content article-body">
|
||||
{{ page.summary | safe }}
|
||||
<nav class="readmore">
|
||||
<a itemprop="url" href="{{ page.permalink | safe }}">Read More »
|
||||
<a itemprop="url" href="{{ page.permalink | safe }}">Read
|
||||
More »
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue