Merge branch 'danieldiaz14-ChangeparameternamestocamelCase'

This commit is contained in:
Vicky 2018-01-26 22:56:48 -05:00
commit 8e74c66494
15 changed files with 87 additions and 87 deletions

View file

@ -9,37 +9,37 @@ canonifyurls = true # Turns relative urls into a
# googleAnalytics = "xxx"
[params]
bloghead = "Blog" # Full name shows on blog post pages
firstname = "Introduction" # First name shows in introduction on main page
tagline = "I'm a theme for Hugo." # Appears after the introduction
introheight = "large" # Input either 'medium' or 'large' or 'fullheight'
themestyle = "light" # Choose 'light' or 'dark'
blogHead = "Blog" # Full name shows on blog post pages
firstName = "Introduction" # First name shows in introduction on main page
tagLine = "I'm a theme for Hugo." # Appears after the introduction
introHeight = "large" # Input either 'medium' or 'large' or 'fullheight'
themeStyle = "light" # Choose 'light' or 'dark'
avatar = "img/profile.jpg" # Path to image in static folder eg. img/avatar.png, or comment out to remove
email = "youremail@email.com" # Shows in contact section, or leave blank to omit
localtime = true # Show your current local time in contact section
timezone = "America/Los_Angeles" # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
dateform = "Jan 2, 2006"
dateformfull = "Mon Jan 2 2006 15:04:05 EST"
cachebuster = false # Add the current unix timestamp in query string for cache busting css assets (relevant in development mode)
localTime = true # Show your current local time in contact section
timeZone = "America/Los_Angeles" # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
dateForm = "Jan 2, 2006"
dateFormFull = "Mon Jan 2 2006 15:04:05 EST"
cacheBuster = false # Add the current unix timestamp in query string for cache busting css assets (relevant in development mode)
description = "Website Description" # Max 160 characters show in search results
faviconfile = "img/fav.ico"
faviconFile = "img/fav.ico"
highlightjs = true # Syntax highlighting
footertext = "" # Text to show in footer (overrides default text)
fadein = true # Turn on/off the fade-in effect
footerText = "" # Text to show in footer (overrides default text)
fadeIn = true # Turn on/off the fade-in effect
showblog = true # Show Blog section on home page
showprojects = true # Show Projects section on home page
projectcolumns = "3" # Choose "2" or "3" columns for projects section
placeholderimg = "/img/workday.jpg" # For Projects without image
showallposts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page
showlatest = true # Show latest blog post summary
sharebuttons = true # On post pages, show share this social buttons
showBlog = true # Show Blog section on home page
showProjects = true # Show Projects section on home page
projectColumns = "3" # Choose "2" or "3" columns for projects section
placeHolderimg = "/img/workday.jpg" # For Projects without image
showAllPosts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page
showLatest = true # Show latest blog post summary
shareButtons = true # On post pages, show share this social buttons
# Share buttons
sharetwitter = true
sharefacebook = true
sharepinterest = false
sharegoogleplus = true
shareTwitter = true
shareFacebook = true
sharePinterest = false
shareGooglePlus = true
# Social icons appear in introduction and contact section. Add as many more as you like.
# Find icon names here: http://fontawesome.io/cheatsheet/

View file

@ -3,21 +3,21 @@
<div class="section" id="top"><!-- Parent section -->
<div class="container hero is-medium has-text-centered {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<div class="container hero is-medium has-text-centered {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">404</h1>
</div><!-- End Title -->
<!-- Everything below fades in two! -->
<div class="section {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }}
</div><!-- End Nav bar -->
<div class="container {{ if .Site.Params.fadein }} fade-in two {{ end }} top-pad"><!-- Begin blurb -->
<div class="container {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad"><!-- Begin blurb -->
Oops! Either you've found a bug (in which case, <a href="mailto:{{ .Site.Params.email }}">please tell me</a>) or you're just making things up. This page doesn't exist!
</div><!-- End blurb -->
<div class="top-pad"><hr></div>
<div class="container top-pad"><hr></div>
{{ partial "footer.html" . }}
</div><!-- End parent section -->

View file

@ -3,14 +3,14 @@
<div class="section" id="top">
<!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}">
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
<!-- Begin Title -->
<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 }}">
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container">
<!-- Begin Nav bar -->
@ -29,7 +29,7 @@
<!-- Ranges through content/post/*.md -->
{{ range .Data.Pages.ByPublishDate }} {{ if not (eq .Section "blog") }}
<li>
<a href="{{.Permalink}}">{{.Date.Format .Site.Params.dateform }} | {{.Title}}</a>
<a href="{{.Permalink}}">{{.Date.Format .Site.Params.dateForm }} | {{.Title}}</a>
</li>
{{ end }} {{ end }}
</ul>

View file

@ -4,14 +4,14 @@
<div class="section" id="top">
<!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}">
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
<!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Title }}</h1>
</div>
<!-- End Title -->
<!-- Everything below fades in two! -->
<div class="section {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container">
<!-- Begin Nav bar -->
@ -19,7 +19,7 @@
</div>
<!-- End Nav bar -->
<div class="container markdown {{ if .Site.Params.fadein }} fade-in two {{ end }} top-pad">
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
<!-- Begin blog post content -->
{{ if .Params.image }}
<div class="has-text-centered">

View file

@ -3,14 +3,14 @@
<div class="section" id="top">
<!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}">
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
<!-- Begin Title -->
<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 }}">
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container">
<!-- Begin Nav bar -->
@ -29,7 +29,7 @@
<!-- Ranges through content/post/*.md -->
{{ range .Data.Pages.ByPublishDate }}
<li>
<a href="{{.Permalink}}">{{.Date.Format .Site.Params.dateform }} | {{.Title}}</a>
<a href="{{.Permalink}}">{{.Date.Format .Site.Params.dateForm }} | {{.Title}}</a>
</li>
{{ end }}
</ul>

View file

@ -4,14 +4,14 @@
<div class="section" id="top">
<!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}">
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}">
<!-- Begin Title -->
<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 }}">
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container">
<!-- Begin Nav bar -->

View file

@ -3,12 +3,12 @@
<div class="section" id="top"><!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.bloghead }}</h1>
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.blogHead }}</h1>
</div><!-- End Title -->
<!-- Everything below fades in two! -->
<div class="section no-padding {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="section no-padding {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar -->
{{ partial "nav-list.html" . }}
@ -16,10 +16,10 @@
<div class="container"><!-- Begin Blog container -->
{{ if .Site.Params.showlatest }}
{{ if .Site.Params.showLatest }}
<h2 class="title is-2 top-pad">Latest Post</h2>
{{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }}
<div class="summary">{{ .Date.Format .Site.Params.dateform }}
<div class="summary">{{ .Date.Format .Site.Params.dateForm }}
<h3 class="title is-3 strong-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<div class="markdown">
{{ .Summary }}

View file

@ -3,49 +3,49 @@
<div class="section" id="top"><!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadein }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.bloghead }}</h1>
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.blogHead }}</h1>
</div><!-- End Title -->
<!-- Everything below fades in two! -->
<div class="section {{ if .Site.Params.fadein }} fade-in two {{ end }}">
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}">
<div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }}
</div><!-- End Nav bar -->
<div class="container {{ if .Site.Params.fadein }} fade-in two {{ end }}"><!-- Begin blog title container -->
<div class="container {{ if .Site.Params.fadeIn }} fade-in two {{ end }}"><!-- Begin blog title container -->
<h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="post-data">
{{ .Date.Format .Site.Params.dateform }} |
{{ .Date.Format .Site.Params.dateForm }} |
{{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
</div>
{{ if .Site.Params.sharebuttons }}
{{ if .Site.Params.shareButtons }}
<div class="blog-share">
Share this:
{{ if .Site.Params.sharetwitter }}
{{ if .Site.Params.shareTwitter }}
<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;">
<i class="fa fa-twitter"></i>
<span class="hidden">Twitter</span>
</a>
{{ end }}
{{ if .Site.Params.sharefacebook }}
{{ if .Site.Params.shareFacebook }}
<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;">
<i class="fa fa-facebook"></i>
<span class="hidden">Facebook</span>
</a>
{{ end }}
{{ if .Site.Params.sharepinterest }}
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestmedia }}&amp;media={{ .Site.BaseURL }}{{ .Params.pinterestmedia }}{{ end }}&amp;description={{ .Title | safeHTML}}"
{{ if .Site.Params.sharePinterest }}
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&amp;media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&amp;description={{ .Title | safeHTML}}"
onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
<i class="fa fa-pinterest"></i>
<span class="hidden">Pinterest</span>
</a>
{{ end }}
{{ if .Site.Params.sharegoogleplus }}
{{ 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>
@ -57,7 +57,7 @@
</div><!-- End blog title container -->
<div class="container markdown {{ if .Site.Params.fadein }} fade-in two {{ end }} top-pad"><!-- Begin blog post content -->
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad"><!-- Begin blog post content -->
{{ .Content }}
</div><!-- End blog post content -->

View file

@ -3,35 +3,35 @@
<div class="section" id="top"> <!-- Where all the awesome begins -->
<div class="hero is-{{ .Site.Params.introheight }}">
<div class="hero is-{{ .Site.Params.introHeight }}">
<!-- Possible hero-head not used -->
<!-- Super sweet Hero body title -->
<div class="hero-body">
<div class="container has-text-centered">
<!-- Title and tagline -->
<h1 class="bold-title {{ if .Site.Params.fadein }}fade-in one{{ end }}">
Hi, I'm {{ .Site.Params.firstname }}.
<h1 class="bold-title {{ if .Site.Params.fadeIn }}fade-in one{{ end }}">
Hi, I'm {{ .Site.Params.firstName }}.
</h1>
<h3 class="subtitle is-3 {{ if.Site.Params.fadein }} fade-in two{{ end }}">
{{ .Site.Params.tagline }}
<h3 class="subtitle is-3 {{ if.Site.Params.fadeIn }} fade-in two{{ end }}">
{{ .Site.Params.tagLine }}
</h3>
<!-- End title and tagline -->
<!-- Some social icons -->
<div class="{{ if .Site.Params.fadein }}fade-in three{{ end }}">
<div class="{{ if .Site.Params.fadeIn }}fade-in three{{ end }}">
{{ partial "social.html" . }}
</div>
<!-- End top social icons -->
</div>
</div> <!-- Hero body title end -->
<!-- Hero foot has nav bar -->
<div class="hero-foot {{ if .Site.Params.fadein }}fade-in three{{ end }}">
<div class="hero-foot {{ if .Site.Params.fadeIn }}fade-in three{{ end }}">
<hr>
<nav class="nav-center">
<a class="nav-item" href="#about">About</a>
{{ if .Site.Params.showprojects }}
{{ if .Site.Params.showProjects }}
<a class="nav-item" href="#projects">Projects</a>
{{ end }}
{{ if .Site.Params.showblog }}
{{ if .Site.Params.showBlog }}
<a class="nav-item" href="#blog">Blog</a>
{{ end }}
<a class="nav-item" href="#contact">Contact</a>
@ -42,7 +42,7 @@
</div><!-- End of top section -->
<!-- Everything below fades in three! -->
<div class="section no-padding {{ if .Site.Params.fadein }}fade-in three{{ end }}">
<div class="section no-padding {{ if .Site.Params.fadeIn }}fade-in three{{ end }}">
<!-- Tell them all about it! -->
<div class="section" id="about">
@ -72,7 +72,7 @@
<!-- Now for some cool projects -->
{{ if .Site.Params.showprojects }}
{{ if .Site.Params.showProjects }}
<div class="section" id="projects">
{{ partial "projects.html" . }}
</div><!-- End Projects section -->
@ -82,7 +82,7 @@
<!-- Let's show some blog posts -->
{{ if .Site.Params.showblog }}
{{ if .Site.Params.showBlog }}
<div class="section" id="blog">
{{ partial "blogsection.html" . }}
</div><!-- End Blog section -->
@ -102,7 +102,7 @@
{{ end }}
</div>
{{ if .Site.Params.localtime }}
{{ if .Site.Params.localTime }}
<p>My current local time is <span id="time"></span>.</p>
<script type="text/javascript" src="/js/moment.js"></script>
<script type="text/javascript" src="/js/moment-timezone.js"></script>
@ -110,7 +110,7 @@
<script>
$(document).ready(function() {
var time = moment().tz("{{ .Site.Params.timezone }}").format("h:mm A");
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
$('#time').html(time);
})
</script>

View file

@ -1,9 +1,9 @@
<div class="container"><!-- Begin Blog container -->
{{ if .Site.Params.showlatest }}
{{ if .Site.Params.showLatest }}
<h2 class="title is-2 has-text-centered">Latest Post</h2>
{{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }}
<div class="summary">{{ .Date.Format .Site.Params.dateform }}
<div class="summary">{{ .Date.Format .Site.Params.dateForm }}
<h3 class="title is-3 latest-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<div class="markdown">
{{ .Summary }}
@ -15,7 +15,7 @@
{{ end }}
{{ end }}
{{ if .Site.Params.showallposts }}
{{ if .Site.Params.showAllPosts }}
<h2 class="title is-2 has-text-centered top-pad">All Posts</h2>
<ul>
{{ range .Data.Pages.ByPublishDate }}

View file

@ -1,7 +1,7 @@
<div class="section" id="footer"><!-- Begin Footer section -->
<div class="container has-text-centered"><!-- Begin Footer container -->
{{ if .Site.Params.footertext }}
{{ .Site.Params.footertext }}
{{ if .Site.Params.footerText }}
{{ .Site.Params.footerText }}
{{ else }}
<span class="footer-text"><a href="https://github.com/hivickylai/hugo-theme-introduction" target="_blank" rel="noopener">Introduction</a> theme for <a href="http://gohugo.io/" target="_blank" rel="noopener">Hugo</a>. Made with <i class="fa fa-heart"></i> and <i class="fa fa-coffee"></i>. <a href="https://vickylai.io" target="_blank" rel="noopener">Vicky Lai</a> {{ now.Format "2006" }}</span>
{{ end }}

View file

@ -50,18 +50,18 @@ crossorigin="anonymous"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans">
{{ if .Site.Params.cachebuster }}
{{ if .Site.Params.cacheBuster }}
{{ $t := now.Unix }}
<link rel="stylesheet" href="css/{{ .Site.Params.themestyle }}-style.css?t={{$t}}">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css?t={{$t}}">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }}
{{ else }}
<link rel="stylesheet" href="css/{{ .Site.Params.themestyle }}-style.css">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}
@ -69,8 +69,8 @@ crossorigin="anonymous"></script>
<!-- Icon -->
<link rel="shortcut icon"
{{ if .Site.Params.faviconfile }}
href="{{ .Site.Params.faviconfile }}"
{{ if .Site.Params.faviconFile }}
href="{{ .Site.Params.faviconFile }}"
{{ else }}
href="img/favicon.ico"
{{ end }}

View file

@ -1,3 +1,3 @@
<li class="post-item">
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format .Site.Params.dateform }}</span>
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format .Site.Params.dateForm }}</span>
</li>

View file

@ -12,7 +12,7 @@
<span class="nav-item">
<a href="/#about">About</a>
</span>
{{ if .Site.Params.showprojects }}
{{ if .Site.Params.showProjects }}
<span class="nav-item">
<a href="/#projects">Projects</a>
</span>

View file

@ -5,8 +5,8 @@
<div class="section is-small">
<div class="columns is-multiline">
{{ range sort .Pages }} {{ if eq .Section "projects" }}
{{ if eq .Site.Params.projectcolumns "2" }}
<div class="column is-half"> {{ else if eq .Site.Params.projectcolumns "3" }}
{{ if eq .Site.Params.projectColumns "2" }}
<div class="column is-half"> {{ else if eq .Site.Params.projectColumns "3" }}
<div class="column is-one-third"> {{ end }}
<!-- Hey Vicky, show half column if number is even. -->
<div class="card">
@ -17,7 +17,7 @@
{{ else }}
id="project{{.Title | urlize}}"
{{ end }}>
<img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeholderimg }}{{ end }}">
<img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg }}{{ end }}">
</a>
</figure>
</div>