Removed dead code, added default parameters, local assets.

This commit is contained in:
Vicky 2018-03-25 11:55:27 -04:00
parent 65b49aa8c8
commit 8d23938eed
6 changed files with 20 additions and 27 deletions

View file

@ -1,3 +1,10 @@
## Version 3.3.0 - Mar 25 2018
- Default parameters implemented so theme renders without custom config parameters
- Local assets placed
*Thank you very much to @paskal and @Hanzei for your important contributions!*
## Version 3.2.1 - Feb 3 2018 ## Version 3.2.1 - Feb 3 2018
- Allow highlight theme choice using built-in Chroma and `pygmentsStyle` config - Allow highlight theme choice using built-in Chroma and `pygmentsStyle` config

View file

@ -3,12 +3,12 @@
<div class="section" id="top"><!-- Parent section --> <div class="section" id="top"><!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title --> <div class="container hero {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.blogHead | default "Blog" }}</h1> <h1 class="bold-title is-1">{{ .Site.Params.blogHead | default "Blog" }}</h1>
</div><!-- End Title --> </div><!-- End Title -->
<!-- Everything below fades in two! --> <!-- 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 | default true }}fade-in two{{ end }}">
<div class="container"><!-- Begin Nav bar --> <div class="container"><!-- Begin Nav bar -->
{{ partial "nav-list.html" . }} {{ partial "nav-list.html" . }}

View file

@ -3,18 +3,18 @@
<div class="section" id="top"><!-- Parent section --> <div class="section" id="top"><!-- Parent section -->
<div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title --> <div class="container hero {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}"><!-- Begin Title -->
<h1 class="bold-title is-1">{{ .Site.Params.blogHead | default "Blog" }}</h1> <h1 class="bold-title is-1">{{ .Site.Params.blogHead | default "Blog" }}</h1>
</div><!-- End Title --> </div><!-- End Title -->
<!-- Everything below fades in two! --> <!-- Everything below fades in two! -->
<div class="section {{ if .Site.Params.fadeIn }} fade-in two {{ end }}"> <div class="section {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
<div class="container"><!-- Begin Nav bar --> <div class="container"><!-- Begin Nav bar -->
{{ partial "nav-single.html" . }} {{ partial "nav-single.html" . }}
</div><!-- End Nav bar --> </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 | default true }}fade-in two{{ end }}"><!-- Begin blog title container -->
<h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="post-data"> <div class="post-data">
{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} |
@ -57,7 +57,7 @@
</div><!-- End blog title container --> </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 | default true }}fade-in two{{ end }} top-pad"><!-- Begin blog post content -->
{{ .Content }} {{ .Content }}
</div><!-- End blog post content --> </div><!-- End blog post content -->

View file

@ -9,29 +9,29 @@
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container has-text-centered">
<!-- Title and tagline --> <!-- Title and tagline -->
<h1 class="bold-title {{ if .Site.Params.fadeIn }}fade-in one{{ end }}"> <h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
Hi, I'm {{ .Site.Params.firstName | default "Introduction" }}. Hi, I'm {{ .Site.Params.firstName | default "Introduction" }}.
</h1> </h1>
<h3 class="subtitle is-3 {{ if.Site.Params.fadeIn }} fade-in two{{ end }}"> <h3 class="subtitle is-3 {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}">
{{ .Site.Params.tagLine }} {{ .Site.Params.tagLine }}
</h3> </h3>
<!-- End title and tagline --> <!-- End title and tagline -->
<!-- Some social icons --> <!-- Some social icons -->
<div class="{{ if .Site.Params.fadeIn }}fade-in three{{ end }}"> <div class=" {{ if .Site.Params.fadeIn | default true }}fade-in three{{ end }}">
{{ partial "social.html" . }} {{ partial "social.html" . }}
</div> </div>
<!-- End top social icons --> <!-- End top social icons -->
</div> </div>
</div> <!-- Hero body title end --> </div> <!-- Hero body title end -->
<!-- Hero foot has nav bar --> <!-- 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 | default true }}fade-in three{{ end }}">
<hr> <hr>
<nav class="nav-center"> <nav class="nav-center">
<a class="nav-item" href="#about">About</a> <a class="nav-item" href="#about">About</a>
{{ if .Site.Params.showProjects }} {{ if .Site.Params.showProjects }}
<a class="nav-item" href="#projects">Projects</a> <a class="nav-item" href="#projects">Projects</a>
{{ end }} {{ end }}
{{ if .Site.Params.showBlog }} {{ if .Site.Params.showBlog | default true }}
<a class="nav-item" href="#blog">Blog</a> <a class="nav-item" href="#blog">Blog</a>
{{ end }} {{ end }}
<a class="nav-item" href="#contact">Contact</a> <a class="nav-item" href="#contact">Contact</a>
@ -41,7 +41,7 @@
</div><!-- Done with Hero --> </div><!-- Done with Hero -->
<!-- Everything below fades in three! --> <!-- 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 | default true }}fade-in three{{ end }}">
<!-- Tell them all about it! --> <!-- Tell them all about it! -->
<div class="section" id="about"> <div class="section" id="about">

View file

@ -43,16 +43,8 @@
{{ if .Site.Params.cacheBuster }} {{ if .Site.Params.cacheBuster }}
{{ $t := now.Unix }} {{ $t := now.Unix }}
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}"> <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }}
{{ else }} {{ else }}
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css"> <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}
{{ end }} {{ end }}
<!-- Custom css --> <!-- Custom css -->
@ -61,13 +53,7 @@
{{- end }} {{- end }}
<!-- Icon --> <!-- Icon -->
<link rel="shortcut icon" <link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" }}">
{{ if .Site.Params.faviconFile }}
href="{{ .Site.Params.faviconFile }}"
{{ else }}
href="img/favicon.ico"
{{ end }}
>
<!-- Google Analytics --> <!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}

BIN
static/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB