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-01-26 21:37:19 +0300
committerVicky <vicky@vickylai.io>2018-01-26 21:37:19 +0300
commit3a1fbfb306b3d799326d62e939c39004d64ea1cf (patch)
treed501ec9515c5de64559b23f07246ffdf46055d86
parent6cf35c2a3119f5de3ae2b1e2872fe60cc0a82eb7 (diff)
Fixed #22. Moved opening body tags into template files instead of header.
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/404.html1
-rw-r--r--layouts/_default/list.html1
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/blog/list.html1
-rw-r--r--layouts/blog/single.html1
-rw-r--r--layouts/index.html9
-rw-r--r--layouts/partials/header.html9
8 files changed, 11 insertions, 16 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a7762dc..91c6960 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,4 +1,4 @@
-baseurl = "https://introduction.com/" # Your domain name. Must end with "/"
+baseurl = "/" # Your domain name. Must end with "/"
languageCode = "en-us"
title = "Introduction"
theme = "introduction"
@@ -13,7 +13,7 @@ canonifyurls = true # Turns relative urls into a
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'
- theme = "dark" # Choose 'light' or 'dark'
+ 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
diff --git a/layouts/404.html b/layouts/404.html
index cf5e557..ef9e6a3 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,4 +1,5 @@
{{ partial "header.html" . }}
+<body>
<div class="section" id="top"><!-- Parent section -->
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 791e8b6..b6a6573 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,4 +1,5 @@
{{ partial "header.html" . }}
+<body>
<div class="section" id="top">
<!-- Parent section -->
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 11480c0..3195814 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,6 @@
{{ partial "header.html" . }}
+<body>
<div class="section" id="top">
<!-- Parent section -->
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index cf32272..10bcc94 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -1,4 +1,5 @@
{{ partial "header.html" . }}
+<body>
<div class="section" id="top"><!-- Parent section -->
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 24110cb..2d40c67 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,4 +1,5 @@
{{ partial "header.html" . }}
+<body>
<div class="section" id="top"><!-- Parent section -->
diff --git a/layouts/index.html b/layouts/index.html
index 7e69b37..073477e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,12 +1,5 @@
-<!--
- Hey! Thanks for looking at my code! You win a cookie. :) The nice kind with chocolate chips, not the sneaky spying kind.
-
- This page was originally created for the Personal Portfolio Webpage challenge on FreeCodeCamp's Front End Development Certification course. It's totally responsive, and the first web page I ever coded from scratch.
-
- Enjoy, and I hope you find what you're looking for! If you have questions or want to get in touch, please do: hello@vickylai.io.
--->
-
{{ partial "header.html" . }}
+<body>
<div class="section" id="top"> <!-- Where all the awesome begins -->
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 20a40c1..ef00aa4 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -53,14 +53,14 @@ crossorigin="anonymous"></script>
{{ if .Site.Params.cachebuster }}
{{ $t := now.Unix }}
- <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.theme }}-style.css?t={{$t}}">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.themestyle }}-style.css?t={{$t}}">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }}
{{ else }}
- <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.theme }}-style.css">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.themestyle }}-style.css">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}
@@ -84,7 +84,4 @@ crossorigin="anonymous"></script>
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
-</head>
-
-<body>
-
+</head> \ No newline at end of file