Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ reCaptcha:
atom_feed:
path : # blank (default) uses feed.xml
hide : # true, false (default)
search : # true, false (default)
search_full_content : # true, false (default)
search : true # true, false (default)
search_full_content : true # true, false (default)
search_provider : # lunr (default), algolia, google
lunr:
search_within_pages : # true, false (default)
Expand Down
13 changes: 13 additions & 0 deletions _includes/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
-->

<div>
{% if page.copyright != false %}
<div style="margin-top:2em;padding:0 1.5em;border:1px solid #d3d3d3;background-color:#deebf7">
<h3>Document Information</h3>
<ul>
<li>Author: <a href="{{ site.url }}" target="_blank">{{ site.author.name }}</a></li>
<li>Link: <a href="{{ site.url }}{{ page.url }}" target="_blank">{{ site.url }}{{ page.url }}</a></li>
<li>Copyright: Free to share - Non-commercial - No derivatives - Attribution required (<a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.en" target="_blank">Creative Commons 3.0 License</a>)</li>
</ul>
</div>
{% endif %}
</div>
21 changes: 21 additions & 0 deletions _includes/sidebar_search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<aside class="sidebar__right.sticky">
<h3>Site-Wide Search</h3>
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
<input type="text" id="search" class="search-input"
placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
<div id="results" class="results"></div>
{%- when "google" -%}
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
<input type="text" id="cse-search-input-box-id" class="search-input"
placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
</form>
<div id="results" class="results">
<gcse:searchresults-only></gcse:searchresults-only>
</div>
{%- when "algolia" -%}
<div class="search-searchbar"></div>
<div class="search-hits"></div>
{%- endcase -%}
</aside>
3 changes: 3 additions & 0 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
<h1 id="page-title" class="page__title"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>{{ page.title }}</h1>
{% endunless %}
{{ content }}

{% include copyright.html %}
{% include sidebar_search.html %}
</div>
</div>
1 change: 0 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
---

<!doctype html>
{% include copyright.html %}
<html lang="{{ site.locale | replace: "_", "-" | default: "en" }}" class="no-js">
<head>
{% include head.html %}
Expand Down
1 change: 1 addition & 0 deletions _layouts/posts.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: archive
copyright: false
---

{{ content }}
Expand Down
2 changes: 2 additions & 0 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ <h1 id="page-title" class="page__title" itemprop="headline">
{% endif %}
{{ content }}
{% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
<hr class="divider">
{% include copyright.html %}
</section>

<footer class="page__meta">
Expand Down
3 changes: 2 additions & 1 deletion _pages/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
permalink: /
layout: archive
layout: single
title: "About Me"
author_profile: true
redirect_from:
- /home/
- /home.html
copyright: false
---

> Hi, I'm Hsuan Han Lai, a Product Engineer Lead.
Expand Down
1 change: 1 addition & 0 deletions _pages/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
title: "Weekend Projects"
permalink: /projects/
author_profile: true
copyright: false
---

<section>
Expand Down