I added 2 new pages Services and About but for some reason, they will not show up. I have checked the config.toml and added pages but cannot find the issue.
When i run hugo server -w this is what I get:
Started building sites …
ERROR 2017/10/15 03:00:55 Error while rendering “page”: template: theme/page/single.html:21:17: executing “theme/page/single.html” at <partial .Params.id .>: error calling partial: Partial “about” not found
ERROR 2017/10/15 03:00:55 Error while rendering “page”: template: theme/page/single.html:21:17: executing “theme/page/single.html” at <partial .Params.id .>: error calling partial: Partial “services” not found
Built site for language en:
0 draft content
0 future content
0 expired content
9 regular pages created
28 other pages created
0 non-page files copied
12 paginator pages created
6 tags created
4 categories created
total in 80 ms
Watching for changes in /Users/quarmenna/spectre/{data,content,i18n,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Now my pages
About Page
+++
title = "About"
id = “about”
+++
Services Page
+++
title = "Services"
id = “services”
+++
Config.toml
baseurl = "https://example.org"
title = "Universal"
theme = "hugo-universal-theme"
languageCode = “en-us”
Site language. Available translations in the theme’s /i18n
directory.
defaultContentLanguage = “en”
Enable comments by entering your Disqus shortname
disqusShortname = “devcows”
Enable Google Analytics by entering your tracking code
googleAnalytics = “”
Define the number of posts per page
paginate = 10
[menu]
Main menu
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
** name = “About”** <— I created this
** url = “/about/”**
** weight = 2**
[[menu.main]]
name = "Blog"
url = "/blog/"
weight = 3
[[menu.main]]
name = "FAQ"
identifier = "faq"
url = "/faq/"
weight = 4
[[menu.main]]
** name = “Services”** <— and this as well
** url = “/services/”**
** weight = 5**
[[menu.main]]
name = "Contact"
url = "/contact/"
weight = 6
Top bar social links menu
[[menu.topbar]]
weight = 1
name = "GitHub"
url = "https://github.com/devcows/hugo-universal-theme"
pre = “”
[[menu.topbar]]
weight = 2
name = "Facebook"
url = "http://facebook.com"
pre = “”
[[menu.topbar]]
weight = 3
name = "Twitter"
url = "http://twitter.com"
pre = “”
[[menu.topbar]]
weight = 4
name = "Email"
url = "mailto:your@email.com"
pre = “”
[params]
viewMorePostLink = "/blog/"
author = "DevCows"
defaultKeywords = [“devows”, “hugo”, “go”]
defaultDescription = “Site template made by devcows using hugo”
# Google Maps API key (if not set will default to not passing a key.)
googleMapsApiKey = "AIzaSyCFhtWLJcE30xOAjcbSFi-0fnoVmQZPb1Y"
# Style options: default (light-blue), blue, green, marsala, pink, red, turquoise, violet
style = "default"
# Since this template is static, the contact form uses www.formspree.io as a
# proxy. The form makes a POST request to their servers to send the actual
# email. Visitors can send up to a 1000 emails each month for free.
#
# What you need to do for the setup?
#
# - set your email address under 'email' below
# - upload the generated site to your server
# - send a dummy email yourself to confirm your account
# - click the confirm link in the email from www.formspree.io
# - you're done. Happy mailing!
#
# Enable the contact form by entering your Formspree.io email
email = "your@email.com"
about_us = "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>"
copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved."
# Format dates with Go's time formatting
date_format = "January 2, 2006"
logo = "img/logo.png"
address = """<p><strong>Universal Ltd.</strong>
<br>13/25 New Avenue
<br>Newtown upon River
<br>45Y 73J
<br>England
<br>
<strong>Great Britain</strong>
</p>
"""
latitude = "-12.043333"
longitude = "-77.028333"
[Permalinks]
blog = “/blog/:year/:month/:day/:filename/”
Enable or disable top bar with social icons
[params.topbar]
enable = true
text = “”“
Contact us on +420 777 555 333 or hello@universal.com.
”""
Enable and disable widgets for the right sidebar
[params.widgets]
categories = true
tags = true
search = true
[params.carousel]
enable = true
# All carousel items are defined in their own files. You can find example items
# at ‘exampleSite/data/carousel’.
# For more informtion take a look at the README.
[params.features]
enable = true
# All features are defined in their own files. You can find example items
# at ‘exampleSite/data/features’.
# For more informtion take a look at the README.
[params.testimonials]
enable = true
# All testimonials are defined in their own files. You can find example items
# at ‘exampleSite/data/testimonials’.
# For more informtion take a look at the README.
title = "Testimonials"
subtitle = “We have worked with many clients and we always like to hear they come out from the cooperation happy and satisfied. Have a look what our clients said about us.”
[params.see_more]
enable = true
icon = "fa fa-file-code-o"
title = "Do you want to see more?"
subtitle = "We have prepared for you more than 40 different HTML pages, including 5 variations of homepage."
link_url = "#"
link_text = “Check other homepages”
[params.clients]
enable = true
# All clients are defined in their own files. You can find example items
# at ‘exampleSite/data/clients’.
# For more informtion take a look at the README.
title = "Our Clients"
subtitle = “”
[params.recent_posts]
enable = true
title = "From our blog"
subtitle = “Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.”
Single.html
{{ partial “head.html” . }}
<div id="all">
<header>
{{ partial "nav.html" . }}
</header>
{{ partial "breadcrumbs.html" . }}
<div id="content">
{{ if isset .Params "id" }}
**{{ partial .Params.id . }}** <-- this where the reference leads me to
{{ else }}
<div class="container">
<div class="row">
<div class="col-md-12">
<div>
{{ .Content }}
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
{{ end }}
</div>
<!-- /#content -->
{{ partial "footer.html" . }}
</div>
<!-- /#all -->
{{ partial "scripts.html" . }}
i know I am missing something but cannot figure this out. i did, however based on my last experience, check to make sure I copied all files from "exampleSite"
I have been at this for half the night. At this point I am not sure what I have not done to get these pages to show. When i click on the either of the pages (About or Services) on top menu, it takes me to a 404 page and this is localhost:1313.
I appreciate any help.