mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
Use baseof temple to dry code
This commit is contained in:
parent
11587f7efe
commit
daca1fe109
24 changed files with 399 additions and 513 deletions
|
@ -1,26 +1,13 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "title" }}
|
||||||
<body>
|
<h1 class="bold-title is-1">{{ i18n "404_title" . }}</h1>
|
||||||
<!-- Parent section -->
|
{{ end }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
{{ define "main" }}
|
||||||
<div class="container hero is-medium has-text-centered {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
<div class="container markdown top-pad">
|
||||||
<h1 class="bold-title is-1">
|
{{ i18n "404_description" . | markdownify }}
|
||||||
{{ i18n "404_title" . }}
|
|
||||||
</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
{{ end }}
|
||||||
<!-- Everything below fades in two! -->
|
|
||||||
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
{{ define "footer" }}
|
||||||
{{ partial "nav.html" . }}
|
{{ partial "footer/text.html" . }}
|
||||||
<!-- Begin blurb -->
|
{{ end }}
|
||||||
<div class="container {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
|
|
||||||
{{ i18n "404_description" . | markdownify }}
|
|
||||||
</div>
|
|
||||||
<!-- End blurb -->
|
|
||||||
<div class="container top-pad">
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
|
|
35
layouts/_default/baseof.html
Normal file
35
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.LanguageCode }}">
|
||||||
|
<head>
|
||||||
|
{{ block "head" . }}
|
||||||
|
{{ partial "head/metadata.html" . }}
|
||||||
|
{{ partial "head/favicons.html" . }}
|
||||||
|
{{ partial "head/css.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="section" id="top">
|
||||||
|
<!-- Begin Title -->
|
||||||
|
<div class="container hero {{ if .Site.Params.fadeIn | default true }} fade-in one {{ end }}">
|
||||||
|
{{ block "title" . }}
|
||||||
|
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<!-- End Title -->
|
||||||
|
<div class="section {{ if .Site.Params.fadeIn | default true }} fade-in two {{ end }}">
|
||||||
|
{{ partial "nav.html" . }}
|
||||||
|
|
||||||
|
{{ block "main" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ block "footer" . }}
|
||||||
|
{{ partial "top-icon-with-hr.html" . }}
|
||||||
|
{{ partial "footer/text.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ block "js-include" . }}
|
||||||
|
{{ partial "footer/scripts.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,33 +1,16 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}
|
||||||
<body>
|
<div class="container markdown top-pad">
|
||||||
<!-- Parent section -->
|
{{ .Content }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
<!-- Begin container -->
|
||||||
<!-- Everything below fades in two! -->
|
<div class="container">
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
<ul>
|
||||||
{{ partial "nav.html" . }}
|
{{ range .Pages.ByPublishDate }}
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }} top-pad">
|
<li>
|
||||||
{{ .Content }}
|
<a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
|
||||||
</div>
|
</li>
|
||||||
<!-- Begin container -->
|
{{ end }}
|
||||||
<div class="container">
|
</ul>
|
||||||
<ul>
|
|
||||||
{{ range .Pages.ByPublishDate }}
|
|
||||||
<li>
|
|
||||||
<a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- End container -->
|
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
</body>
|
||||||
|
{{ end }}
|
||||||
|
|
|
@ -1,32 +1,9 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}
|
||||||
<body>
|
<div class="container markdown top-pad">
|
||||||
<!-- Parent section -->
|
{{ .Content }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
<!-- End post content -->
|
||||||
<!-- Everything below fades in two! -->
|
<div class="disqus">
|
||||||
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
{{ template "_internal/disqus.html" . }}
|
||||||
{{ partial "nav.html" . }}
|
|
||||||
<!-- Begin post content -->
|
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
|
|
||||||
{{ if .Params.image }}
|
|
||||||
<div class="has-text-centered">
|
|
||||||
<img src="{{ .Params.image | relURL }}" class="img-responsive" alt="{{ .Title }}">
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<!-- End post content -->
|
|
||||||
<div class="disqus">
|
|
||||||
{{ template "_internal/disqus.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
{{ end }}
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
|
||||||
|
|
|
@ -1,33 +1,18 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "title" }}
|
||||||
<body>
|
<h1 class="bold-title is-1">Tagged "{{ lower .Title }}"</h1>
|
||||||
<!-- Parent section -->
|
{{ end }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
{{ define "main" }}
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
<div class="container">
|
||||||
<h1 class="bold-title is-1">Tagged "{{ lower .Title }}"</h1>
|
|
||||||
</div>
|
|
||||||
<!-- End Title -->
|
|
||||||
<!-- Everything below fades in two! -->
|
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
|
||||||
{{ partial "nav.html" . }}
|
|
||||||
<article>
|
<article>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
<!-- Begin Blog container -->
|
<ul>
|
||||||
<div class="container">
|
{{ range .Pages.ByPublishDate }}
|
||||||
<ul>
|
<li>
|
||||||
{{ range .Pages.ByPublishDate }}
|
<a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
|
||||||
<li>
|
</li>
|
||||||
<a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
|
{{ end }}
|
||||||
</li>
|
</ul>
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- End Blog container -->
|
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
{{ end }}
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
|
||||||
|
|
|
@ -1,30 +1,12 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}
|
||||||
<body>
|
<div class="container">
|
||||||
<!-- Parent section -->
|
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
|
||||||
</div>
|
|
||||||
<!-- End Title -->
|
|
||||||
|
|
||||||
<!-- Everything below fades in two! -->
|
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
|
||||||
{{ partial "nav.html" . }}
|
|
||||||
<article>
|
<article>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
<div class="container">
|
<div class="section tags-list">
|
||||||
<div class="section tags-list">
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
<a class="tag-cloud" href="{{"tags/" | relLangURL }}{{ $name | urlize }}">{{ lower $name }} ({{ len $taxonomy }})</a>
|
||||||
<a class="tag-cloud" href="{{"tags/" | relLangURL }}{{ $name | urlize }}">{{ lower $name }} ({{ len $taxonomy }})</a>
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
{{ end }}
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
|
||||||
|
|
|
@ -1,50 +1,34 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}
|
||||||
<body>
|
<div class="container markdown top-pad">
|
||||||
<!-- Parent section -->
|
{{ .Content }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
|
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
<div class="container">
|
||||||
<!-- Everything below fades in two! -->
|
{{ if .Site.Params.showLatest }}
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2>
|
||||||
{{ partial "nav.html" . }}
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }} top-pad">
|
<div class="summary">{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
|
||||||
{{ .Content }}
|
<h3 class="title is-3 strong-post-title">
|
||||||
</div>
|
<a href="{{ .RelPermalink }}">
|
||||||
<!-- Begin Blog container -->
|
{{ .Title }}
|
||||||
<div class="container">
|
</a>
|
||||||
{{ if .Site.Params.showLatest }}
|
</h3>
|
||||||
<h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2>
|
<div class="markdown">
|
||||||
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
{{ .Summary }}
|
||||||
<div class="summary">{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
|
{{ if .Truncated }}
|
||||||
<h3 class="title is-3 strong-post-title">
|
<a href="{{ .RelPermalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
||||||
<a href="{{ .RelPermalink }}">
|
{{ end }}
|
||||||
{{ .Title }}
|
|
||||||
</a>
|
|
||||||
</h3>
|
|
||||||
<div class="markdown">
|
|
||||||
{{ .Summary }}
|
|
||||||
{{ if .Truncated }}
|
|
||||||
<a href="{{ .RelPermalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
|
||||||
<ul>
|
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
|
||||||
{{ partial "li.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Blog container -->
|
{{ end }}
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
{{ end }}
|
||||||
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
||||||
|
<ul>
|
||||||
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
|
<li class="post-item">
|
||||||
|
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }}</span>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
{{ end }}
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
|
||||||
|
|
|
@ -1,67 +1,52 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "title" }}
|
||||||
<body>
|
<h1 class="bold-title is-1">{{ (.Site.GetPage "section" "blog").Title }}</h1>
|
||||||
<!-- Parent section -->
|
{{ end }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
{{ define "main" }}
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
|
<div class="container">
|
||||||
<h1 class="bold-title is-1">{{ (.Site.GetPage "section" "blog").Title }}</h1>
|
<h2 class="title is-1 top-pad strong-post-title">
|
||||||
</div>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
<!-- End Title -->
|
</h2>
|
||||||
<!-- Everything below fades in two! -->
|
<div class="post-data">
|
||||||
<div class="section {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
|
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} |
|
||||||
{{ partial "nav.html" . }}
|
{{ i18n "blog_readingTime" .ReadingTime }}
|
||||||
<!-- Begin blog title container -->
|
</div>
|
||||||
<div class="container {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
|
{{ if .Site.Params.shareButtons }}
|
||||||
<h2 class="title is-1 top-pad strong-post-title">
|
<div class="blog-share">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
{{ i18n "blog_shareThis" . }}:
|
||||||
</h2>
|
{{ if .Site.Params.shareTwitter }}
|
||||||
<div class="post-data">
|
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Read%20{{ .Title }}%20{{ .Permalink }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||||
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} |
|
<i class="fa fa-twitter"></i>
|
||||||
{{ i18n "blog_readingTime" .ReadingTime }}
|
<span class="hidden">Twitter</span>
|
||||||
</div>
|
</a>
|
||||||
{{ if .Site.Params.shareButtons }}
|
{{ end }}
|
||||||
<div class="blog-share">
|
{{ if .Site.Params.shareFacebook }}
|
||||||
{{ i18n "blog_shareThis" . }}:
|
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||||
{{ if .Site.Params.shareTwitter }}
|
<i class="fa fa-facebook"></i>
|
||||||
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Read%20{{ .Title }}%20{{ .Permalink }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
<span class="hidden">Facebook</span>
|
||||||
<i class="fa fa-twitter"></i>
|
</a>
|
||||||
<span class="hidden">Twitter</span>
|
{{ end }}
|
||||||
</a>
|
{{ if .Site.Params.sharePinterest }}
|
||||||
{{ end }}
|
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&description={{ .Title | safeHTML}}" onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
|
||||||
{{ if .Site.Params.shareFacebook }}
|
<i class="fa fa-pinterest"></i>
|
||||||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
<span class="hidden">Pinterest</span>
|
||||||
<i class="fa fa-facebook"></i>
|
</a>
|
||||||
<span class="hidden">Facebook</span>
|
{{ end }}
|
||||||
</a>
|
{{ if .Site.Params.shareGooglePlus }}
|
||||||
{{ end }}
|
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||||
{{ if .Site.Params.sharePinterest }}
|
<i class="fa fa-google-plus"></i>
|
||||||
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&description={{ .Title | safeHTML}}" onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
|
<span class="hidden">Google+</span>
|
||||||
<i class="fa fa-pinterest"></i>
|
</a>
|
||||||
<span class="hidden">Pinterest</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.shareGooglePlus }}
|
|
||||||
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
|
||||||
<i class="fa fa-google-plus"></i>
|
|
||||||
<span class="hidden">Google+</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<!-- End blog title container -->
|
{{ end }}
|
||||||
<!-- Begin blog post content -->
|
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }} top-pad">
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<!-- End blog post content -->
|
|
||||||
<div class="disqus">
|
|
||||||
{{ template "_internal/disqus.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
<!-- Begin blog post content -->
|
||||||
</div>
|
<div class="container markdown top-pad">
|
||||||
<!-- End parent section -->
|
{{ .Content }}
|
||||||
</body>
|
</div>
|
||||||
|
<!-- End blog post content -->
|
||||||
|
<div class="disqus">
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
|
@ -1,110 +1,91 @@
|
||||||
{{ partial "header.html" . }}
|
<!DOCTYPE html>
|
||||||
<body>
|
<html lang="{{ .Site.LanguageCode }}">
|
||||||
|
<head>
|
||||||
<div id="top"> <!-- Where all the awesome begins -->
|
{{ partial "head/metadata.html" . }}
|
||||||
|
{{ partial "head/favicons.html" . }}
|
||||||
<div class="hero is-{{ .Site.Params.introHeight | default "fullheight" }}">
|
{{ partial "head/css.html" . }}
|
||||||
<!-- Possible hero-head not used -->
|
</head>
|
||||||
<!-- Super sweet Hero body title -->
|
<body>
|
||||||
<div class="hero-body">
|
<div id="top">
|
||||||
<div class="container has-text-centered">
|
<div class="hero is-{{ .Site.Params.introHeight | default "fullheight" }}">
|
||||||
<!-- Title and tagline -->
|
<!-- Super sweet Hero body title -->
|
||||||
<h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
|
<div class="hero-body">
|
||||||
{{ .Site.Params.firstName | default "Introduction" }}.
|
<div class="container has-text-centered">
|
||||||
</h1>
|
<!-- Title and tagline -->
|
||||||
<h3 class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
|
<h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
|
||||||
{{ .Site.Params.tagLine }}
|
{{ .Site.Params.firstName | default "Introduction" }}.
|
||||||
</h3>
|
</h1>
|
||||||
<!-- End title and tagline -->
|
<h3 class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
|
||||||
<!-- Some social icons -->
|
{{ .Site.Params.tagLine }}
|
||||||
<div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
|
</h3>
|
||||||
{{ partial "social.html" . }}
|
<!-- End title and tagline -->
|
||||||
|
<!-- Some social icons -->
|
||||||
|
<div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
|
||||||
|
{{ partial "home/social.html" . }}
|
||||||
|
</div>
|
||||||
|
<!-- End top social icons -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Hero body title end -->
|
||||||
</div>
|
</div>
|
||||||
<!-- End top social icons -->
|
<!-- Done with Hero -->
|
||||||
</div>
|
<!-- Everything below fades in three! -->
|
||||||
</div>
|
<div class="section no-padding {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
|
||||||
<!-- Hero body title end -->
|
<!-- Tell them all about it! -->
|
||||||
|
{{ partial "nav.html" . }}
|
||||||
<div class="hero-foot {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
|
{{ with .Site.GetPage "page" "about" }}
|
||||||
{{ partial "nav.html" . }}
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
||||||
</div>
|
<div class="container">
|
||||||
</div>
|
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
|
||||||
<!-- Done with Hero -->
|
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
|
||||||
|
{{ if .Site.Params.avatar }}
|
||||||
<!-- Everything below fades in three! -->
|
<div class="column is-one-third has-text-centered">
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
|
<img class="img-responsive avatar" src="{{ .Site.Params.avatar | relURL }}" alt="{{ i18n "index_avatarAlt" . }}">
|
||||||
|
</div>
|
||||||
<!-- Tell them all about it! -->
|
{{ end }}
|
||||||
{{ with .Site.GetPage "page" "about" }}
|
<div class="column markdown">
|
||||||
<div class="section" id="{{ .Title | urlize }}">
|
{{.Content}}
|
||||||
<div class="container">
|
</div>
|
||||||
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
|
</div>
|
||||||
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
|
</div>
|
||||||
{{ if .Site.Params.avatar }}
|
<!-- End About container-->
|
||||||
<div class="column is-one-third has-text-centered">
|
{{ partial "top-icon.html" . }}
|
||||||
<img class="img-responsive avatar" src="{{ .Site.Params.avatar | relURL }}" alt="{{ i18n "index_avatarAlt" . }}">
|
</div>
|
||||||
</div>
|
<div class="container"><hr></div>
|
||||||
{{ end }}
|
<!-- End About section -->
|
||||||
<div class="column markdown">
|
{{ end }}
|
||||||
{{.Content}}
|
<!-- Now for some cool projects -->
|
||||||
|
{{ partial "home/projects.html" . }}
|
||||||
|
<!-- Let's show some blog posts -->
|
||||||
|
{{ partial "home/blog.html" . }}
|
||||||
|
<!-- Let's chat, shall we? -->
|
||||||
|
{{ with .Site.GetPage "page" "contact" }}
|
||||||
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
||||||
|
<div class="container has-text-centered">
|
||||||
|
<h2 class="title is-2">{{ .Title }}</h2>
|
||||||
|
<div class="markdown">
|
||||||
|
{{.Content}}
|
||||||
|
</div>
|
||||||
|
{{ if .Site.Params.localTime }}
|
||||||
|
<p>{{ i18n "index_currentTime" . }} <span id='time'></span>.</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.email }}
|
||||||
|
<h3 class="subtitle is-3 has-text-centered top-pad">
|
||||||
|
<a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a>
|
||||||
|
</h3>
|
||||||
|
{{ end }}
|
||||||
|
{{ partial "home/social.html" . }}
|
||||||
|
</div>
|
||||||
|
<!-- End Contact container -->
|
||||||
|
{{ partial "top-icon.html" . }}
|
||||||
|
</div>
|
||||||
|
<div class="container"><hr></div>
|
||||||
|
{{ end }}
|
||||||
|
<!-- End Contact section -->
|
||||||
|
{{ partial "footer/text.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- End of fade in three section -->
|
||||||
<!-- End About container-->
|
{{ partial "footer/scripts.html" . }}
|
||||||
{{ partial "top-icon.html" . }}
|
</body>
|
||||||
</div>
|
</html>
|
||||||
<!-- End About section -->
|
|
||||||
|
|
||||||
<div class="container"><hr></div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- Now for some cool projects -->
|
|
||||||
{{ partial "projects.html" . }}
|
|
||||||
|
|
||||||
<!-- Let's show some blog posts -->
|
|
||||||
{{ partial "blogsection.html" . }}
|
|
||||||
|
|
||||||
<!-- Let's chat, shall we? -->
|
|
||||||
{{ with .Site.GetPage "page" "contact" }}
|
|
||||||
<div class="section" id="{{ .Title | urlize }}">
|
|
||||||
<div class="container has-text-centered">
|
|
||||||
<h2 class="title is-2">{{ .Title }}</h2>
|
|
||||||
<div class="markdown">
|
|
||||||
{{.Content}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ if .Site.Params.localTime }}
|
|
||||||
<p>{{ i18n "index_currentTime" . }} <span id='time'></span>.</p>
|
|
||||||
<script type="text/javascript" src="{{ "/js/moment.js" | relURL }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ "/js/moment-timezone.js" | relURL }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(document).ready(function() {
|
|
||||||
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
|
||||||
$('#time').html(time);
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if .Site.Params.email }}
|
|
||||||
<h3 class="subtitle is-3 has-text-centered top-pad"><a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a></h3>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "social.html" . }}
|
|
||||||
</div>
|
|
||||||
<!-- End Contact container -->
|
|
||||||
{{ partial "top-icon.html" . }}
|
|
||||||
</div>
|
|
||||||
<!-- End Contact section -->
|
|
||||||
|
|
||||||
<div class="container"><hr></div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- Nice clean finish -->
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
<!-- Footer done! -->
|
|
||||||
</div>
|
|
||||||
<!-- End of fade in three section -->
|
|
||||||
<!-- Where all the awesome ends. Aww. -->
|
|
||||||
</body>
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
<!-- Begin Footer section -->
|
|
||||||
<div class="section" id="footer">
|
|
||||||
<!-- Begin Footer container -->
|
|
||||||
<div class="container has-text-centered">
|
|
||||||
{{ with .Site.Params.footerText }}
|
|
||||||
{{ . | markdownify }}
|
|
||||||
{{ else }}
|
|
||||||
<span class="footer-text">
|
|
||||||
{{ i18n "footer_text" . | markdownify }}
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
<!-- End Footer container -->
|
|
||||||
</div>
|
|
||||||
<!-- End Footer section -->
|
|
||||||
|
|
||||||
<!-- Bitty scrolling links script -->
|
|
||||||
<script>
|
|
||||||
$('a[href^="#"]').click(function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
var target = this.hash;
|
|
||||||
$('html, body').animate({
|
|
||||||
scrollTop: $(target).offset().top
|
|
||||||
}, 500);
|
|
||||||
return false;
|
|
||||||
})
|
|
||||||
</script>
|
|
21
layouts/partials/footer/scripts.html
Normal file
21
layouts/partials/footer/scripts.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<!-- jQuery -->
|
||||||
|
<script type="text/javascript" src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
|
||||||
|
|
||||||
|
<!-- index.js -->
|
||||||
|
<script type="text/javascript" src="{{ "/js/index.js" | relURL }}"></script>
|
||||||
|
|
||||||
|
<!-- local time -->
|
||||||
|
{{ if .Site.Params.localTime }}
|
||||||
|
<script type="text/javascript" src="{{ "/js/moment.js" | relURL }}"></script>
|
||||||
|
<script type="text/javascript" src="{{ "/js/moment-timezone.js" | relURL }}"></script>
|
||||||
|
<script type="text/javascript" src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
||||||
|
$('#time').html(time);
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Google Analytics -->
|
||||||
|
{{ template "_internal/google_analytics_async.html" . }}
|
11
layouts/partials/footer/text.html
Normal file
11
layouts/partials/footer/text.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div class="section" id="footer">
|
||||||
|
<div class="container has-text-centered">
|
||||||
|
{{ with .Site.Params.footerText }}
|
||||||
|
{{ . | markdownify }}
|
||||||
|
{{ else }}
|
||||||
|
<span class="footer-text">
|
||||||
|
{{ i18n "footer_text" . | markdownify }}
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
15
layouts/partials/head/css.html
Normal file
15
layouts/partials/head/css.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Fonts and icon CSS -->
|
||||||
|
<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relURL }}">
|
||||||
|
<link rel="stylesheet" href="{{ "/css/nunito_sans.css" | relURL }}">
|
||||||
|
|
||||||
|
<!-- Main css -->
|
||||||
|
{{ if .Site.Params.cacheBuster }}
|
||||||
|
<link rel="stylesheet" href="{{ (printf "css/%s-style.css?t=%d" (.Site.Params.themeStyle | default "dark") now.Unix) |relURL }}">
|
||||||
|
{{ else }}
|
||||||
|
<link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | relURL }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Custom css -->
|
||||||
|
{{ range .Site.Params.customCSS -}}
|
||||||
|
<link rel="stylesheet" href="{{ . | relURL }}">
|
||||||
|
{{- end }}
|
2
layouts/partials/head/favicons.html
Normal file
2
layouts/partials/head/favicons.html
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<!-- Icon -->
|
||||||
|
<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" | relURL }}">
|
24
layouts/partials/head/metadata.html
Normal file
24
layouts/partials/head/metadata.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="referrer" content="no-referrer">
|
||||||
|
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
||||||
|
<title>
|
||||||
|
{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}
|
||||||
|
</title>
|
||||||
|
<!-- RSS -->
|
||||||
|
{{ if .RSSLink }}
|
||||||
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
<!-- HTTPS -->
|
||||||
|
{{ if .Site.Params.enforce_ssl }}
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseURL = '{{ .Site.BaseURL }}';
|
||||||
|
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
|
@ -1,64 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="{{ .Site.LanguageCode }}">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
||||||
<meta name="HandheldFriendly" content="True">
|
|
||||||
<meta name="MobileOptimized" content="320">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="referrer" content="no-referrer">
|
|
||||||
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
|
||||||
|
|
||||||
<title>
|
|
||||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
|
||||||
{{ if eq $url "/" }}
|
|
||||||
{{ .Site.Title }}
|
|
||||||
{{ else }}
|
|
||||||
{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</title>
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
|
||||||
|
|
||||||
<!-- HTTPS -->
|
|
||||||
|
|
||||||
{{ if .Site.Params.enforce_ssl }}
|
|
||||||
<script type="text/javascript">
|
|
||||||
var baseURL = '{{ .Site.BaseURL }}';
|
|
||||||
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
|
|
||||||
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
|
||||||
window.location.protocol = 'https:';
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- jQuery -->
|
|
||||||
<script type="text/javascript" src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
|
|
||||||
|
|
||||||
<!-- Fonts and icon CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relURL }}">
|
|
||||||
<link rel="stylesheet" href="{{ "/css/nunito_sans.css" | relURL }}">
|
|
||||||
|
|
||||||
{{ if .Site.Params.cacheBuster }}
|
|
||||||
<link rel="stylesheet" href="{{ (printf "css/%s-style.css?t=%d" (.Site.Params.themeStyle | default "dark") now.Unix) |relURL }}">
|
|
||||||
{{ else }}
|
|
||||||
<link rel="stylesheet" href="{{ (printf "css/%s-style.css" .Site.Params.themeStyle | default "dark") | relURL }}">
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- Custom css -->
|
|
||||||
{{ range .Site.Params.customCSS -}}
|
|
||||||
<link rel="stylesheet" href="{{ . | relURL }}">
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
<!-- Icon -->
|
|
||||||
<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" | relURL }}">
|
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
|
||||||
{{ template "_internal/google_analytics_async.html" . }}
|
|
||||||
|
|
||||||
<!-- RSS -->
|
|
||||||
{{ if .RSSLink }}
|
|
||||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</head>
|
|
|
@ -41,8 +41,9 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- End Projects container -->
|
<!-- End Projects container -->
|
||||||
<!-- Projects modals -->
|
<!-- Projects modals -->
|
||||||
{{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if not .Params.external_link }}
|
{{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }}
|
||||||
<div class="modal" id="modal-{{ $index }}">
|
{{ if not .Params.external_link }}
|
||||||
|
<div class="modal" id="project-{{ $index }}">
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
{{ with .Title }}
|
{{ with .Title }}
|
||||||
|
@ -59,22 +60,10 @@
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<button class="modal-close is-large" aria-label="close" id="close-{{ $index }}"></button>
|
<button class="modal-close is-large" aria-label="close"></button>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
{{ end }}
|
||||||
$('#project-{{ $index }}').click(function () {
|
{{ end }}
|
||||||
$('#modal-{{ $index }}').addClass('is-active');
|
|
||||||
});
|
|
||||||
$('#close-{{ $index }}').click(function () {
|
|
||||||
$('#modal-{{ $index }}').removeClass('is-active');
|
|
||||||
});
|
|
||||||
$(document).keypress(function(e) {
|
|
||||||
if(e.which == 0) {
|
|
||||||
$('#modal-{{ $index }}').removeClass('is-active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{{ end }} {{ end }}
|
|
||||||
{{ partial "top-icon.html" . }}
|
{{ partial "top-icon.html" . }}
|
||||||
</div>
|
</div>
|
||||||
<!-- End Projects section -->
|
<!-- End Projects section -->
|
|
@ -1,3 +0,0 @@
|
||||||
<li class="post-item">
|
|
||||||
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }}</span>
|
|
||||||
</li>
|
|
|
@ -3,19 +3,19 @@
|
||||||
<hr>
|
<hr>
|
||||||
<nav class="nav nav-center">
|
<nav class="nav nav-center">
|
||||||
{{ $isHome := .Page.IsHome }}
|
{{ $isHome := .Page.IsHome }}
|
||||||
{{ if not $isHome }}
|
{{/* if not $isHome */}}
|
||||||
<span id="nav-toggle" class="nav-toggle" onclick="document.getElementById('nav-menu').classList.toggle('is-active');">
|
<span id="nav-toggle" class="nav-toggle" onclick="document.getElementById('nav-menu').classList.toggle('is-active');">
|
||||||
<span></span>
|
<span></span>
|
||||||
<span></span>
|
<span></span>
|
||||||
<span></span>
|
<span></span>
|
||||||
</span>
|
</span>
|
||||||
<div id="nav-menu" class="nav-left nav-menu">
|
<div id="nav-menu" class="nav-left nav-menu">
|
||||||
{{ end }}
|
{{/* end */}}
|
||||||
{{ if not $isHome }}
|
{{ if not $isHome }}
|
||||||
<a class="nav-item" href="{{ "/" | relLangURL }}">{{ i18n "nav_main" . }}</a>
|
<a class="nav-item" href="{{ "/" | relLangURL }}">{{ i18n "nav_main" . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.GetPage "page" "about" }}
|
{{ with .Site.GetPage "page" "about" }}
|
||||||
<a class="nav-item" href="{{ if $isHome }}#{{ .Title | urlize }}{{ else }}{{ printf "/#%s" (.Title | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
|
<a class="nav-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" .File.TranslationBaseName | relLangURL }}{{ end }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $pageIsInProjects := eq .Page.Section "projects"}}
|
{{ $pageIsInProjects := eq .Page.Section "projects"}}
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.GetPage "page" "contact" }}
|
{{ with .Site.GetPage "page" "contact" }}
|
||||||
<a class="nav-item" href="{{ if $isHome }}#{{ .Title | urlize }}{{ else }}{{ printf "/#%s" (.Title | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
|
<a class="nav-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" .File.TranslationBaseName | relLangURL }}{{ end }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $.Site.Home.AllTranslations.ByWeight }}
|
{{ range $.Site.Home.AllTranslations.ByWeight }}
|
||||||
|
|
|
@ -1,51 +1,34 @@
|
||||||
{{ partial "header.html" . }}
|
{{ define "main" }}
|
||||||
<body>
|
<div class="container markdown top-pad">
|
||||||
<!-- Parent section -->
|
{{ .Content }}
|
||||||
<div class="section" id="top">
|
|
||||||
<!-- Begin Title -->
|
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
|
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
<div class="container">
|
||||||
<!-- Everything below fades in two! -->
|
<div class="section is-small">
|
||||||
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
|
<div class="columns is-multiline">
|
||||||
{{ partial "nav.html" . }}
|
{{ $numberOfPages := len .Pages}}
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }} top-pad">
|
{{ range .Pages.ByWeight }}
|
||||||
{{ .Content }}
|
{{ if eq (mod $numberOfPages 2) 0 }}
|
||||||
</div>
|
<div class="column is-half">
|
||||||
<div class="container">
|
{{ else }}
|
||||||
<div class="section is-small">
|
<div class="column is-one-third">
|
||||||
<div class="columns is-multiline">
|
{{ end }}
|
||||||
{{ $numberOfPages := len .Pages}}
|
<div class="card">
|
||||||
{{ range .Pages.ByWeight }}
|
<div class="card-image">
|
||||||
{{ if eq (mod $numberOfPages 2) 0 }}
|
<figure class="image is-3by2">
|
||||||
<div class="column is-half">
|
|
||||||
{{ else }}
|
|
||||||
<div class="column is-one-third">
|
|
||||||
{{ end }}
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-image">
|
|
||||||
<figure class="image is-3by2">
|
|
||||||
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
|
|
||||||
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}" alt="{{ .Title }}">
|
|
||||||
</a>
|
|
||||||
</figure>
|
|
||||||
</div>
|
|
||||||
<div class="card-content has-text-centered top-pad">
|
|
||||||
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
|
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
|
||||||
{{ .Title }}
|
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}" alt="{{ .Title }}">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="card-content has-text-centered top-pad">
|
||||||
|
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ partial "top-icon-with-hr.html" . }}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End fade in two -->
|
{{ end }}
|
||||||
</div>
|
|
||||||
<!-- End parent section -->
|
|
||||||
</body>
|
|
||||||
|
|
14
layouts/projects/single.html
Normal file
14
layouts/projects/single.html
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="container markdown top-pad">
|
||||||
|
{{ if .Params.image }}
|
||||||
|
<div class="has-text-centered">
|
||||||
|
<img src="{{ .Params.image | relURL }}" class="img-responsive" alt="{{ .Title }}">
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<!-- End post content -->
|
||||||
|
<div class="disqus">
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
22
static/js/index.js
Normal file
22
static/js/index.js
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
// Bitty scrolling links script
|
||||||
|
$('a[href^="#"]').click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$('html, body').animate({
|
||||||
|
scrollTop: $(this.hash).offset().top
|
||||||
|
}, 500);
|
||||||
|
$("#nav-menu").removeClass("is-active");
|
||||||
|
return true;
|
||||||
|
})
|
||||||
|
|
||||||
|
// Modal closer
|
||||||
|
$('.card').click(function () {
|
||||||
|
$('#'+this.id+'.modal').addClass('is-active');
|
||||||
|
});
|
||||||
|
$('.modal-close').click(function () {
|
||||||
|
$('#'+$(this).parent('.modal').get(0).id+'.modal').removeClass('is-active');
|
||||||
|
});
|
||||||
|
$(document).keypress(function(e) {
|
||||||
|
if(e.which == 0) {
|
||||||
|
$('.modal.is-active').removeClass('is-active');
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in a new issue