Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicky <vicky@vickylai.io>2018-03-25 18:55:27 +0300
committerVicky <vicky@vickylai.io>2018-03-25 18:55:27 +0300
commit8d23938eedebdc4a69dc773a19195ee5348099d9 (patch)
tree92db0344a9f4de43e94f452845469c540339cfd5
parent65b49aa8c810d5fbaf809e58fe3a5a55bb95ffba (diff)
Removed dead code, added default parameters, local assets.v3.3
-rw-r--r--CHANGELOG.md7
-rw-r--r--layouts/blog/list.html4
-rw-r--r--layouts/blog/single.html8
-rw-r--r--layouts/index.html12
-rw-r--r--layouts/partials/header.html16
-rw-r--r--static/img/favicon.icobin0 -> 27998 bytes
6 files changed, 20 insertions, 27 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 960dd32..4dbfa9d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
- Allow highlight theme choice using built-in Chroma and `pygmentsStyle` config
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 8da589e..e1a31fc 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -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 -->
+ <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>
</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 | default true }}fade-in two{{ end }}">
<div class="container"><!-- Begin Nav bar -->
{{ partial "nav-list.html" . }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index fe9565b..914af05 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -3,18 +3,18 @@
<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>
</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 | default true }}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 | 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>
<div class="post-data">
{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} |
@@ -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 | default true }}fade-in two{{ end }} top-pad"><!-- Begin blog post content -->
{{ .Content }}
</div><!-- End blog post content -->
diff --git a/layouts/index.html b/layouts/index.html
index 5d922c1..6aa797c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,29 +9,29 @@
<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 }}">
+ <h1 class="bold-title {{ if .Site.Params.fadeIn | default true }}fade-in one{{ end }}">
Hi, I'm {{ .Site.Params.firstName | default "Introduction" }}.
</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 }}
</h3>
<!-- End title and tagline -->
<!-- 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" . }}
</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 | default true }}fade-in three{{ end }}">
<hr>
<nav class="nav-center">
<a class="nav-item" href="#about">About</a>
{{ if .Site.Params.showProjects }}
<a class="nav-item" href="#projects">Projects</a>
{{ end }}
- {{ if .Site.Params.showBlog }}
+ {{ if .Site.Params.showBlog | default true }}
<a class="nav-item" href="#blog">Blog</a>
{{ end }}
<a class="nav-item" href="#contact">Contact</a>
@@ -41,7 +41,7 @@
</div><!-- Done with Hero -->
<!-- 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! -->
<div class="section" id="about">
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index acf060a..3645d46 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -43,16 +43,8 @@
{{ if .Site.Params.cacheBuster }}
{{ $t := now.Unix }}
<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 }}
-
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css">
- {{range .Site.Params.extraCSSFiles}}
- <link rel="stylesheet" href="{{.}}">
- {{end}}
-
{{ end }}
<!-- Custom css -->
@@ -61,13 +53,7 @@
{{- end }}
<!-- Icon -->
-<link rel="shortcut icon"
-{{ if .Site.Params.faviconFile }}
- href="{{ .Site.Params.faviconFile }}"
-{{ else }}
- href="img/favicon.ico"
-{{ end }}
->
+<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" }}">
<!-- Google Analytics -->
{{ template "_internal/google_analytics_async.html" . }}
diff --git a/static/img/favicon.ico b/static/img/favicon.ico
new file mode 100644
index 0000000..9924827
--- /dev/null
+++ b/static/img/favicon.ico
Binary files differ