Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit /resources/ directory generated by hugo pipes, fix theme demo (#…
…88)
- Loading branch information
Showing
14 changed files
with
67 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ title: "Resume" | |
date: 2017-12-01 | ||
layout: "resume" | ||
--- | ||
|
||
This is my resume. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
{{ define "main" }} | ||
{{ partial "header.html" . }} | ||
<section class="main post-list"> | ||
<header class="list-header offscreen"> | ||
<h2 class="list-label">All Posts</h2> | ||
</header> | ||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") (index .Site.Params "paginate" | default 10) }} | ||
{{ if ne $paginator.TotalPages 0 }} | ||
{{ range $paginator.Pages.ByDate.Reverse }} | ||
{{ .Render "summary" }} | ||
{{ define "main" }} {{ partial "header.html" . }} | ||
<section class="main post-list"> | ||
<header class="list-header offscreen"> | ||
<h2 class="list-label">All Posts</h2> | ||
</header> | ||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") (index .Site.Params "paginate" | default 10) }} | ||
{{ if ne $paginator.TotalPages 0 }} | ||
{{ range $paginator.Pages.ByDate.Reverse }} {{ .Render "summary" }} {{ end }} | ||
{{ else }} | ||
<p>There's nothing here.<br />Create an interesting post with the command:</p> | ||
<p><code>$ hugo new post/hello-world.md</code></p> | ||
{{ end }} {{ if gt $paginator.TotalPages 1 }} | ||
<footer class="list-footer"> | ||
<nav class="pagination"> | ||
<h3 class="offscreen">Pagination</h3> | ||
{{ if $paginator.HasPrev }} | ||
<a class="pagination-previous" href="{{ $paginator.Prev.URL }}" | ||
>← Newer Posts</a | ||
> | ||
{{ end }} {{ if $paginator.HasNext }} | ||
<a class="pagination-next" href="{{ $paginator.Next.URL }}" | ||
>Older Posts →</a | ||
> | ||
{{ end }} | ||
{{ else }} | ||
<p>There's nothing here.<br>Create an interesting post with the command:</p> | ||
<p><code>$ hugo new post/hello-world.md</code></p> | ||
{{ end }} | ||
{{ if gt $paginator.TotalPages 1 }} | ||
<footer class="list-footer"> | ||
<nav class="pagination"> | ||
<h3 class="offscreen">Pagination</h3> | ||
{{ if $paginator.HasPrev }} | ||
<a class="pagination-previous" href="{{ $paginator.Prev.URL }}">← Newer Posts</a> | ||
{{ end }} | ||
{{ if $paginator.HasNext }} | ||
<a class="pagination-next" href="{{ $paginator.Next.URL }}">Older Posts →</a> | ||
{{ end }} | ||
</nav> | ||
</footer> | ||
{{ end }} | ||
</section> | ||
{{ partial "footer.html" . }} | ||
{{ end }} | ||
</nav> | ||
</footer> | ||
{{ end }} | ||
</section> | ||
{{ partial "footer.html" . }} {{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
{{ `<!--[if lt IE 9]> | ||
<script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> | ||
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> | ||
<script src="//cdn.bootcss.com/video.js/6.2.8/ie8/videojs-ie8.min.js"></script> | ||
<![endif]-->` | safeHTML }} | ||
<!-- Polyfill for old browsers --> | ||
{{ `<!--[if lte IE 8]> | ||
<script src="//cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/videojs-ie8@1.1.2/dist/videojs-ie8.min.js"></script> | ||
<![endif]-->` | safeHTML }} | ||
|
||
{{ `<!--[if lte IE 11]> | ||
<script src="//cdn.bootcss.com/classlist/1.1.20170427/classList.min.js"></script> | ||
<![endif]-->` | safeHTML }} | ||
|
||
<!-- IEdge 9-14, Android < 5, Safari < 10 --> | ||
<script src="//cdn.bootcss.com/object-fit-images/3.2.3/ofi.min.js"></script> | ||
{{ `<!--[if lte IE 9]> | ||
<script src="//cdn.jsdelivr.net/npm/eligrey-classlist-js-polyfill@1.2.20180112/classList.min.js"></script> | ||
<![endif]-->` | safeHTML }} | ||
|
||
<!-- Smooth Scroll with closest & requestAnimationFrame Polyfills --> | ||
<script src="//cdn.bootcss.com/smooth-scroll/12.1.4/js/smooth-scroll.polyfills.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/smooth-scroll@14.2.1/dist/smooth-scroll.polyfills.min.js"></script> |
4 changes: 4 additions & 0 deletions
4
resources/_gen/assets/js/scripts/index.js_d3f53f09220d597dac26fe7840c31fc9.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const html=document.querySelector('html');const body=document.querySelector('body');const menuToggle=document.querySelector('.menu-toggle');const menuIcon=document.querySelector('.icon-menu');const siteMenu=document.querySelector('.site-menu');const socialMenu=document.querySelector('.social-menu');const toTopBtn=document.querySelector('.to-top');if(menuToggle){menuToggle.addEventListener('click',()=>{siteMenu.classList.toggle('collapsed');socialMenu.classList.toggle('collapsed');menuIcon.classList.toggle('icon-menu');menuIcon.classList.toggle('icon-close');});} | ||
const randomErrorEmoji=()=>{const error=document.getElementsByClassName('error-emoji')[0];const emojiArray=['\\(o_o)/','(o^^)o','(˚Δ˚)b','(^-^*)','(≥o≤)','(^_^)b','(·_·)','(=\'X\'=)','(>_<)','(;-;)','\\(^Д^)/',];if(error){const errorEmoji=emojiArray[Math.floor(Math.random()*emojiArray.length)];error.appendChild(document.createTextNode(errorEmoji));}};randomErrorEmoji();let lastPosition=0;let ticking=false;window.addEventListener('scroll',()=>{lastPosition=body.scrollTop===0?html.scrollTop:body.scrollTop;if(!ticking){window.requestAnimationFrame(()=>{if(lastPosition>=600){toTopBtn.classList.remove('is-hide');}else{toTopBtn.classList.add('is-hide');} | ||
ticking=false;});} | ||
ticking=true;});const scroll=new SmoothScroll('a[href*="#"]');toTopBtn.addEventListener('click',()=>{scroll.animateScroll(0);}); |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/js/scripts/index.js_d3f53f09220d597dac26fe7840c31fc9.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"scripts/index.min.js","MediaType":"application/javascript","Data":{}} |
3 changes: 3 additions & 0 deletions
3
resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.content
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"styles/style.css","MediaType":"text/css","Data":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters