Fixed #22. Moved opening body tags into template files instead of header.

This commit is contained in:
Vicky 2018-01-26 13:37:19 -05:00
parent 6cf35c2a31
commit 3a1fbfb306
8 changed files with 11 additions and 16 deletions

View file

@ -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

View file

@ -1,4 +1,5 @@
{{ partial "header.html" . }}
<body>
<div class="section" id="top"><!-- Parent section -->

View file

@ -1,4 +1,5 @@
{{ partial "header.html" . }}
<body>
<div class="section" id="top">
<!-- Parent section -->

View file

@ -1,5 +1,6 @@
{{ partial "header.html" . }}
<body>
<div class="section" id="top">
<!-- Parent section -->

View file

@ -1,4 +1,5 @@
{{ partial "header.html" . }}
<body>
<div class="section" id="top"><!-- Parent section -->

View file

@ -1,4 +1,5 @@
{{ partial "header.html" . }}
<body>
<div class="section" id="top"><!-- Parent section -->

View file

@ -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 -->

View file

@ -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>