Giter Site home page Giter Site logo

victoriadrake / hugo-theme-introduction Goto Github PK

View Code? Open in Web Editor NEW
664.0 8.0 272.0 11.45 MB

Minimal, single page, smooth-scrolling theme for Hugo static site generator.

Home Page: https://hugo-introduction.netlify.com/

License: Apache License 2.0

HTML 97.65% JavaScript 0.30% Shell 0.03% Sass 2.02%
hugo theme light personal-website blog-theme hugo-theme hugo-blog-theme smooth-scrolling language-translation postcss

hugo-theme-introduction's Introduction

Introduction theme for Hugo

Netlify Status Test Hugo versions Latest Release

Introduction is a minimalist, highly-versatile theme for Hugo. It can be configured as a single page, or as a full-featured site with multiple sections. It is multilingual, responsive, and includes a light and dark theme.

New to the Hugo static site generator? Learn the fundamentals here.

Device mockups

Features:

  • Multilingual - supports side-by-side content in different language versions
  • Custom index page sections from Markdown files
  • Projects and Blog sections
  • Page load fade-in CSS effect and smooth scrolling to anchor links
  • Straightforward customization via config.toml
  • Styled Markdown throughout, including post titles
  • Syntax highlighting

Developer-friendly:

  • Sass files included with instant compiling to CSS thanks to Hugo Pipes and PostCSS
  • Thoughtful use of Sass variables makes creating new colour schemes easy

Getting started

Requires the extended version of Hugo. You can find installation instructions here (latest version recommended). Here's a handy Bash function for downloading a specific Hugo version.

To make changes to the theme CSS, extended Hugo's PostCSS requires JavaScript packages to compile the styles. You'll need postcss, postcss-cli, and autoprefixer. Install these globally with npm.

npm i -g postcss postcss-cli autoprefixer

Learn how to install and use npm here.

Note: If you are using Hugo as a snap app, the above Node.js packages have to be installed locally inside exampleSite.

cd exampleSite/
npm i postcss postcss-cli autoprefixer

If you see an error message like:

Error: Error building site: POSTCSS: failed to transform "css/main.css" (text/css): resource "sass/sass/style..." not found in file cache

See issue #210 for more information.

Get the theme

Run from the root of your Hugo site:

git clone https://github.com/victoriadrake/hugo-theme-introduction.git themes/introduction

Alternatively, you can include this repository as a git submodule. This makes it easier to update this theme if you have your Hugo site in git as well:

git submodule add https://github.com/victoriadrake/hugo-theme-introduction.git themes/introduction

Preview the theme

Introduction ships with an fully configured example site. For a quick preview:

cd themes/introduction/exampleSite/
hugo serve  --themesDir ../..

Then visit http://localhost:1313/ in your browser to view the example site.

Add content

The following explains how to add content to your Hugo site. You can find sample content in the exampleSite/ folder.

Introduction section

Create index.md:

hugo new home/index.md

The title frontmatter will be the first large heading.

The content of index.md will be shown as a subtitle line.

You might want to set headless to true in the frontmatter. See headless bundles for more information.

Home page

Content for the home page lives under content/home/. You may add as many files as you want to in markdown format.

Each markdown file will show as a section on the home page and can be ordered by the weight value in the file's frontmatter. You can set image to show an image on the left side of the section. The image file must be in the content/home/ folder.

You may add a contact section by creating contact.md:

hugo new home/contact.md

This will always be shown as the last section on the home page.

Projects section

Introduction provides an easy way to showcase your projects. Each project can even have its own gallery, shown as an image carousel.

Start by creating an index file for the projects section:

hugo new projects/_index.md

Add a title and some optional content to the file. Add an optional weight for ordering projects section.

To create a project, run:

hugo new projects/YourProjectName/index.md

The frontmatter of your new file contains some comments to help your configure your project.

You can set external_link to make the project link to another website.

Add images to your project by placing image files in the YourProjectName/ folder. If you add more then one photo, they will display as a carousel gallery. Images will be ordered by filename. The first image will be shown as the project preview image. You can change the order of your images by adding a weight to that resource's parameters:

resources:
    - src: NameOfYourImage.jpg
      params:
          weight: -100
project_timeframe: "June-December"

You can add a project_timeframe parameter to the frontmatter of your project to optionally display an arbitrary string on the homepage and modal.

Blog section

Create an index file for the blog:

hugo new blog/_index.md

Add an optional weight for ordering blog section on your homepage

Create a new blog post with:

hugo new blog/YourEntryTitle.md

Posts will also display in the Blog section of the home page.

Configure your site

From exampleSite/, copy config.toml to the root folder of your Hugo site and change the fields as you like. Helpful comments are provided.

Multilingual

Introduction currently ships with support for many languages. Contributions for other language translations are welcome.

To create a new language translation, add the .toml file to the i18n/ folder. See the existing files for the necessary fields.

See the hugo documentation for more details.

Menu

Introduction contains a default menu. If you want to override this, you can do so by defining a menu.main in config.toml.

Optionally, you can disable this menu by setting showMenu to false in your config.toml.

Contact section clock

Introduction can optionally show your current local time in your contact section. This uses vanilla JS and variables you provide. You can set this up by copying the settings in the exampleSite config.toml for localTime, timeZone, and timeFormat.

Plausible

You can easily use Plausible.io for analytics by setting plausible = true in your config.toml. Plausible offers a privacy-friendly alternative to Google Analytics. You'll need your own Plausible account - see plausible.io for more.

Google Analytics

Set googleAnalytics in config.toml to activate Hugo's internal Google Analytics template. This supports both Google Analytics 3 (Universal Analytics) and Google Analytics 4. Google Analytics 3 tracking id is of the form 'UA-PROPERTY_ID', and Google Analytics 4 tracking is of the form 'G-MEASUREMENT_ID'.

Disqus

Set disqusshortname in config.toml to activate Hugo's internal Disqus template.

Custom CSS

You can add custom CSS files by placing them under assets/ and adding the paths to the files to the customCSS list in config.toml.

Custom JavaScript

You can add custom JavaScript files by placing them under assets/ and adding the paths to the files to the customJS list in config.toml.

Issues

If you have a question or get stuck, please open an issue for help and to help those who come after you. The more information you can provide, the better!

Contributing

Contributions for new translations, fixes, and features are welcome.

This theme would not be nearly as awesome without its amazing community of open source contributors. Thank you so much! ❤

License

Copyright (C) 2017-2023 Victoria Drake

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

hugo-theme-introduction's People

Contributors

alanfran avatar arturjzapater avatar chew-z avatar chrisv78 avatar darkk avatar emembrives avatar er-vin avatar hanzei avatar ixpict avatar letme avatar linhtto avatar lucab85 avatar martinhoefling avatar massimogirondi avatar merinhunter avatar mhutchinson avatar mijorus avatar mikedecr avatar moskomule avatar mygihu avatar nguyentritai2906 avatar paragraut avatar phyxius avatar pmviva avatar saschamann avatar snow2k9 avatar tanohzana avatar thegreatluke avatar victoriadrake avatar vincenttam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hugo-theme-introduction's Issues

error calling Concat: slice []interface {} not supported in concat

I'm using Hugo 0.49 and cannot use this theme. When trying to compile, e.g., following the instructions in https://github.com/vickylai/hugo-theme-introduction#preview-the-theme, I get the error

Building sites … ERROR 2018/10/03 17:29:01 Error while rendering "page" in "projects/design/": template: projects/single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "page" in "blog/": template: blog/single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "page" in "projects/photography/": template: projects/single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "page" in "projects/writing/": template: projects/single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "taxonomy" in "": template: _default/taxonomy.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "section" in "blog/": template: blog/list.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "taxonomyTerm" in "": template: _default/terms.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "home" in "": template: index.html:108:11: executing "index.html" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "section" in "projects/": template: projects/list.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/03 17:29:01 Error while rendering "404" in "": template: 404.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
Total in 563 ms
Error: Error building site: logged 10 error(s)

I also tried the hugo_49 branch, but the errors are the same.

Am I missing something?

Update Bulma

We currently use a quite old version of bulma (<0.4). This should be upgraded to make use of some HTML5 elements.

Theme CSS appears non-functional

So, per brief discussion in #19, CSS refuses to load for whatever reason and i'm posting here for troubleshooting per request.

I'll post the entire process from start to finish and see if we can't figure out what on Earth is happening.

Step 1: Verify Hugo version.

~$ hugo version
Hugo Static Site Generator v0.31.1 linux/amd64 BuildDate: 2017-11-27T06:01:58-06:00

Step 2: Create new site.

~$ hugo new site test-site
Congratulations! Your new Hugo site is created in /home/xnaas/test-site.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/, or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.

Step 3: cd and git theme.

~$ cd test-site/
~/test-site$ git clone https://github.com/hivickylai/hugo-theme-introduction.git themes/intro
Cloning into 'themes/intro'...
remote: Counting objects: 399, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 399 (delta 0), reused 1 (delta 0), pack-reused 394
Receiving objects: 100% (399/399), 709.46 KiB | 653.00 KiB/s, done.
Resolving deltas: 100% (171/171), done.
Checking connectivity... done.

Step 4: Copy example config.toml from exampleSite to main directory.

~/test-site$ cp themes/intro/exampleSite/config.toml config.toml

Step 5: Edit the config.toml to have the proper theme name and set the base URL to /. I'm leaving everything else alone just to show what happens. The default theme is dark and I'm leaving it that way. Here's my config.toml after those two basic changes:

baseurl             = "/"   # Your domain name. Must end with "/"
languageCode        = "en-us"
title               = "Introduction"
theme               = "intro"
enforce_ssl         = false
builddrafts         = false                         # Include pages with draft status of true
canonifyurls        = true                          # Turns relative urls into absolute urls
# disqusshortname   = "xxx"                         # Enable Disqus for comments
# googleAnalytics   = "xxx"

[params]
    bloghead        = "Blog"                        # Full name shows on blog post pages
    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'
    avatar          = "img/profile.jpg"             # Path to image in static folder eg. img/avatar.png, or comment out to remove
    email           = "[email protected]"         # Shows in contact section, or leave blank to omit
    localtime       = true                          # Show your current local time in contact section
    timezone        = "America/Los_Angeles"         # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
    dateform        = "Jan 2, 2006"
    dateformfull    = "Mon Jan 2 2006 15:04:05 EST"
    cachebuster     = false                         # Add the current unix timestamp in query string for cache busting css assets (relevant in development mode)
    description     = "Website Description"         # Max 160 characters show in search results
    faviconfile     = "img/fav.ico"
    highlightjs     = true                          # Syntax highlighting
    footertext      = ""                            # Text to show in footer (overrides default text)
    fadein          = true                          # Turn on/off the fade-in effect

    showblog            = true                      # Show Blog section on home page
    showprojects        = true                      # Show Projects section on home page
    projectcolumns      = "3"                       # Choose "2" or "3" columns for projects section
    placeholderimg      = "/img/workday.jpg"        # For Projects without image
    showallposts        = false                     # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page
    showlatest          = true                      # Show latest blog post summary
    sharebuttons        = true                      # On post pages, show share this social buttons

    # Share buttons
    sharetwitter        = true
    sharefacebook       = true
    sharepinterest      = false
    sharegoogleplus     = true

# Social icons appear in introduction and contact section. Add as many more as you like.
# Find icon names here: http://fontawesome.io/cheatsheet/

[[params.social]]
    url = "https://twitter.com/"
    icon = "twitter"

[[params.social]]
    url = "https://facebook.com/"
    icon = "facebook"

[[params.social]]
    url = "https://linkedin.com/"
    icon = "linkedin"

I can change additional stuff if needed/wanted, but I figured leaving it as little changed as possible should be the easiest to test/troubleshoot.

Anyway, after starting the server up with hugo server --baseURL http://servernamehere:1313 --bind 0.0.0.0, this is what I get...well, I went to go take a screenshot and it's magically working now! 😅 🔫

Configure about and contacts text without creating a new page

Currently to configure the about and contacts text, the user has to create a seperate page for both of them. But this also means that this pages are render with there own URL.

I propose to move content/contact.md text to a param and content/about.md to content/index.md. This would of course break backwards compatibility, but we could do this in a major release. I think, there will be no features lost.

DRY up navigation

Right now the code isnt very DRY.

You have nav-list.html and nav-single.html that only differs on a link back to section.

Also you have a hardcoded navigatoon in index.html that can be replaced with a nav partial you already have.
If you need different behavior in the navbar for the home page, you can use {{ .IsHome }} to chech whether you are in thehomepage.

Toc anchor link cannot be linked to the current page

Hi Vicky,I wanna the theme support toc,so I add Table of Contents by myself.Toc can display normally,but
toc anchor link cannot be linked to the current page.

Step:

1.Open an article on my blog,ie https://anna3.pub/blog/python3-with_python2/
2.Click on any section in toc,such as
default

Result:

Page jumps to https://anna3.pub/#python-launcher-for-windows

Expect:

Page jumps to https://anna3.pub/python3-with_python2/#python-launcher-for-windows

I found this is because TableOfContents call
<base href="{{ .Site.BaseURL }}"> which in /partials/header.html
So I comment out this line of code.Page junps to the correct page,but Css loading exception.
Like this

tim 20180314175251

Chrome reported the following error

Refused to apply style from 'http://localhost:1313/blog/python3-with_python2/css/dark-style.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Looking forward to your reply!Thank you!

exampleSite builds in Hugo v.0.31 but not in v.0.32.2

I tried your lovely theme today with Hugo 0.32.2 and the exampleSite builds with some warnings but nothing is displayed when I look at it at localhost:1313. I found this thread on discourse.gohugo.io, which might be related to what's going on:

V.0.32.2 fails to generate content where v.0.31.1 works

bep wrote that he "will release a new version of Hugo tomorrow with, among some others, the relevant fix for this. Your site will, however, not work as expected. This is the index vs _index thing, noted in the release notes."

I'm hoping that your introduction-theme exampleSite will just work with the next release, but want to let you know there might be problems or things you might want to change in this theme so it's more compatible with bundles, etc.

Thanks!

Cleanup config.toml

I my opinion exampleSite/config.tomlis quite overloaded. I propose to remove or relocate some params:

Code

  • pygmentsStyle: Is set to monokai by default. No need to specify this. See https://gohugo.io/getting-started/configuration/
  • pygmentsCodefences: if a user really wants this, he/she can enable it my her/his self
  • cacheBuster: I don`t see the need for this, but I might be wrong.

Home page configuration

There are a couple of parameters to configure the home page, like firstName. tagLine and introHeight. We could move this to font matter in content/index.md.

Time

I really don`t see the point in showing users the current time. We are not living in a world where response times for e-mails matter so much, that we need to show when to expect an answer. I propose to remove localTime, timeZone, dateForm and dateFormFull.

Just like #63 this breaks backwards compatibility.

How to enable Projects section in Hugo Introduction theme?

Thanks for sharing this beautiful minimal hugo theme with the community.
I have a question about showing my projects inside my homepage.
I know that I should config showProjects variable in config.toml but how I should customize and show content for Homepage Projects section?
I need to show more than 3 projects in my homepage, And I need description below the photo's of projects.

Thank you for your help

Nav component deprecated

The nav component has been deprecated and the latest versions of bulma have moved to navbar. As a result, nav-center doesn't work anymore.
Look here and here

Wrong latest post in blog section

I found an issue in the blog section regarding latest post. Apparently it shows the first post written as the latest post.

I guess the problem is in layouts/blog/list.html layout:

{{ range first 1 (where .Data.Pages.ByPublishDate .Reverse "Section" "blog") }}

should be instead of

{{ range first 1 (where .Data.Pages.ByPublishDate "Section" "blog") }}

screenshot_2017-12-03_20-54-17

Pages without section displays incorrect navigation link

Hi, I found that when you are in a page that doesn't belong to any section (about page, 404 page for example) the navigation links are displayed incorrectly.

The template: nav-single.html has the following code:

<span class="nav-item">
<a href="/{{ .Section }}">Back to {{ .Section }}</a>
</span>

When .Section is empty this generates the following link <a href="/">Back to </a>

The fix I think is obvious... If you don't have a section, then don't display a link since you have no section to go back to.

Background scrolling on mobile phone

After opening a modal window e. g. after clicking on "Design", and scrolling the page up or down, the (nearly invisible) main page in the background is scrolling. After closing the modal by clicking the X in the upper right, the main page may be on a totally different position than before opening the modal.

Add CI

A travis CI script could be used to make sure no wrong template could be added.

@vickylai If you enable travis, I would create a PR for this.

Images on single project pages

Hi, love the theme so far.

In my first attempt to use this theme, images included in project pages (stored in the static directory) render on the main site page and on the /projects page, but not on the single pages for individual projects.

I noticed in layout partials for the main page and project page that these images are referenced using relURL, but in the single.html file the relURL bit is not included. When I add it to my own version of single.html, the images load on the single page as they're supposed to.

I can suggest the edit but (seeing as I'm not skilled with Hugo) I'm wondering if this isn't an ideal approach of if I'm overlooking something.

Thanks.

Rendering error

Hello, I have tried running this theme on Hugo v0.46. However, I am facing this error when I try to run the hugo server:

Building sites … ERROR 2018/08/13 18:38:32 Error while rendering "home" in "": template: index.html:77:11: executing "index.html" at <partial "projects.ht...>: error calling partial: template: partials/projects.html:7:63: executing "partials/projects.html" at <"projects">: can't evaluate field Pages in type *hugolib.Page
Total in 11 ms
Error: Error building site: logged 1 error(s)

Here is what hugo version returns:
Hugo Static Site Generator v0.46 linux/amd64 BuildDate: 2018-08-01T09:00:55Z

Adding a background image

Hi there and thanks for the theme, really enjoyed it so far!

I have custimized it a bit for a conference page we are building (https://stevenputtemans.github.io/AMV2018/). So far so good, but now I would love to have the first block, where the text spawns in, to contain a 50% opague background image.

I tried adding style="background-image: url(../img/background.jpg) to the <div class="hero-body"> container, but that does not seem to do the trick. Any ideas on what I can try next?

navbar in introHeight=fullheight is half-visible

Navbar in fullheight is half-visible without scrolling because of padding-top: 48px applied to div#top because of class="section". I'm not sure what's the right way to fix it in terms of layout, I've just applied ugly hack locally and I don't submit it as a PR :-)

Project title with other languages does not work

Hi Vicky,I really like the theme you made. I really want to use this theme for a long time, but I do not have a foundation for front-end development
There is a problems that bothers me,it is about the support of the language.
When I create a new project title in my own language(Traditional Chinese or Simplified Chinese), the project fails to go to the details page.
Can you fix this?

The Theme's Demo on the Hugo Website is missing its Hugo Pipes Assets

Hi @vickylai

On the Hugo Themes website the demo of the Hugo Theme Introduction has its Hugo Pipes Assets missing.

To fix this issue please see the Common Permalink Issues in the updated README of the Hugo Themes repository.

If you are using Hugo Pipes to publish your theme's resources you need to use .RelPermalink in the templates, so that these assets are served correctly on the website.

For example change line 11 of /layouts/partials/base/imports.html/ to:
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" media="screen">

and line 17 to:
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">

You need to do this change for every Hugo Pipes Asset that is used in your theme's templates.

Please do this change and let me know.

Thanks!

CC / @digitalcraftsman

failed to transform "css/main.tmp.css" (text/x-sass) with hugo_0.50

This is what the console gives me if I try to serve the example files.
Hugo Version:hugo_0.50_Windows-64bit

Building sites … ERROR 2018/11/02 10:50:00 error: failed to transform resource: TOCSS: failed to transform "css/main.tmp.css" (text/x-sass): this feature is not available in your current Hugo version
Total in 409 ms
Error: Error building site: logged 1 error(s)

Image styling is off when using dark theme

When using the dark theme, there is a white (#fff) background surrounding images.
screenshot_2017-12-28_16-23-33

The relevant css is:
dark-style.css

.card {
    ...
    background-color: #fff; */
    ...
}

If someone could tell me how to PR the css, I'd be glad to handle it. It's also worth noting there are many instances of background-color: #111 in dark-style.css, which seem out of place but AFAIK produce no adverse effects.

Projects Partial causes site build to fail

I'm unable to get hugo to build my site with the hugo server -D or hugo serve -t introduction command as hugo has an error while attempting to call the partial located in partials/project.html. Here is the output from hugo:

Building sites … ERROR 2018/08/14 18:05:14 Error while rendering "home" in "": template: index.html:77:11: executing "index.html" at <partial "projects.ht...>: error calling partial: tem
plate: partials/projects.html:7:63: executing "partials/projects.html" at <"projects">: can't evaluate field Pages in type *hugolib.Page
Total in 25 ms
Error: Error building site: logged 1 error(s)

The code for my site can be found in this github repo.
My hugo version is v0.46, the latest available from Homebrew.

Does anyone know if this is a problem with this theme or with hugo itself? I'm fairly new to hugo so not able to troubleshoot this myself. Would appreciate any suggestions regarding this issue. Thanks!

Webpage is cutting off horizontally when inline code is too long

I'm having an error viewing my blog post on the Android Chrome Browser:
If my syntax highlighting is too long then at a certain point the rest of the web page does not render. Please refer to below images.

I've confirmed that it is definitely the syntax highlighting that is causing this with trial and error for every formatting that is present in the document. The only thing that triggers this rendering issue is when my inline code is too long.

For the sake of clarity here is the original blog:
https://ericksnetwork.github.io/blog/twitter/

Here is a copy of the same blog with each code entry being truncated at the end.
https://ericksnetwork.github.io/blog/twitter---copy/

As you can see, truncating the code allows the web page to render completely.

Here is a screenshot using my Android chrome browser. As you can see the text is there but it is not rendered. It can be highlighted but it cannot be seen.
https://i.imgur.com/USaztsx.jpg

Here is another screenshot from my while viewing the page in "desktop mode". As you can see the text is there, and in this case, the text is being cut in half.
https://i.imgur.com/uqNN7TX.jpg

Does anyone have any suggestions?

Thanks!

Number of Projects showing variable?

Is there a way to create a new variable for the projects display called "numberToShow" or something similar to control the number of projects to show on the main page?

It would be amazingly convenient if there was a way to feature a few projects then show the rest on the /projects page.

I personally would love to use this feature. 😄

Image previews from blog post

Hello,

I came across your theme and am taking a quick pass through it - how hard would it be to have each post define a 'preview' image to show in the "latest blog" post section? I am really new to hugo so I have nothing to base this on, but it didn't sound like this should be too hard... but I did fail in actually doing this myself hah.

I know I would need to modify the blogsection.html but I haven't figured out how to define/use an image in each blog.md file

Thanks !
-Aaron

about.md shows up as a blog post when following intro instructions

Walking through your startup instructions (thank you for providing them!) a friend and I both come across the same issue:

hugo new contact.md does the right thing in the footer - the contact info is shown:

image

However, it also creates something that looks like a blog post on the front page:

image

Interestingly, it doesn't actually show up as a blog post when you go the blog section at /blog/.

We use hugo v 0.21 on windows and osx with the same effect.

Any thoughts on why this happens or how to fix?

cc @kristenpdx (who is the friend I'm working through this with :))

Multilingual site support

Hi Vicky, i really like your theme, nice work! I was wondering if you were planning on adding support for multilingual sites.

As far as I can see, hugo supports translation of strings so it should be easy enough to move all untranslated text in templates to a data file, make sure the templates are using relLangURL, absLangURL and displaying some sort of link to translated content (posts, etc).

If you want I can give you a hand implementing the missing functionality in the theme and submit a pull request.

modify css

Hello ! could you suggest some friendly way to modify the css in documentation?

I'm not css expert and I try to do it but it's very difficult because it not has a "friendly" format.

Thanks in advance !

.Now will be deprecated with Hugo v0.20

.Now will be deprecated replaced with the now template function in Hugo v0.20 which eventually will be released on Monday. It's likely that the deprecation will cause builds to fail.

License problem

The theme is currently licensed under AGPL-3. This license contains a copyleft clause. This means that everyone how modifies the code has to publish the new code under the same license. The problem when using this license for a hugo theme is that user can replace parts of a theme by overwritting them. But this forces every user who modified the theme to make the code of there website open source. This is a huge drawback.

I propose to move to a more liberal license like appache or MIT.

Nav bar is not centered

The navigation bar seems to be left aligned. It would be nice to have it centerd or to have a switch to do this in config.toml (especially when you have few nav bar entries). I already tried to fix this with custom.css but without success.
A hint which elements and properties are needed here in custom.css would be also helpful for me.
Thanks!

Emojis In the Titles and config file.

Hello! I am trying to use some emojis in the tagLine of this theme. Is there something I am missing? How would we go about using real emojis 😄 with this theme. Any help is much appreciated!

It would be amazing if this

[params]
    tagLine = "Code Wizard :computer: - Student :pencil2: - Friend :laughing:"

Would render into something like this

Computer Lover 💻 - Student ✏️ - Friend 😆

Can't render the site with latest Hugo for Windows

This is what the console gives me if I try to serve the example files.

Something to do with minification I guess.

Also, the theme Demo doesn't load a bunch of resources including the css files.

Building sites … ERROR 2018/10/02 13:14:37 Error while rendering "page" in "projects\\design\\": template: projects\single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "page" in "blog\\": template: blog\single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "page" in "projects\\writing\\": template: projects\single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "page" in "projects\\photography\\": template: projects\single.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "taxonomy" in "": template: _default\taxonomy.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "section" in "blog\\": template: blog\list.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "taxonomyTerm" in "": template: _default\terms.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "section" in "projects\\": template: projects\list.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "home" in "": template: index.html:108:11: executing "index.html" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
ERROR 2018/10/02 13:14:37 Error while rendering "404" in "": template: 404.html:36:11: executing "js-include" at <partial "footer/scri...>: error calling partial: template: partials/footer/scripts.html:3:47: executing "partials/footer/scripts.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
Total in 382 ms
Error: Error building site: logged 10 error(s)

Change Font Color

Hi,

I'm creating a blog with your Hugo Theme and I love it.
I'm trying to change the icon colors in the sass file but setting the $primary color to a new one, but I can't do it.

I'm a R/Python programmer and I don't know how to program in .css.
How can I accomplish it?

Thank you.

Remove enforce_ssl setting

Enforcing ssl/tls is nothing what should be done via js. A webserver should take care of this, not hugo. I propose to remove this option.

@vickylai Thoughts?

Help maintaining this theme

Hey @vickylai,

I would like to help you maintaining this theme. It looks like you don't have so much time at the moment and could have some assistance.

Let me know what you think.

about section text renders outside the browser

I love this theme, but am having an issue with the text from my about.md not wrapping properly when the browser size is above a certain size (about tablet size is when it starts behaving strangely).

image

wraps just fine when smaller
image

and from ipad it looks rather strange:
image

Partial header now function is not defined error

I am trying to use this theme and getting 3 error as below:-

  1. ERROR: 2017/08/31 13:13:27 template.go:350: template: theme/partials/header.html:52: function "now" not defined
  2. ERROR: 2017/08/31 13:13:27 template.go:119: html/template: "theme/partials/header.html" is an incomplete template in theme/partials/header.html
  3. ERROR: 2017/08/31 13:13:27 template.go:119: html/template: "theme/partials/header.html" is an incomplete template in theme/partials/header.html
    Also no css is getting applied and loaded so can you please me resolve this as i liked this theme alot a d want to use for my personal blog.

Fade effect sometimes doesn't work.

In a couple situations the request for '/css/_fades.css' may return 404 error. If you're experiencing this please let me know so I can take a look.

One solution is to bake the _fades.css into the main css files, especially now that the fade effect can be turned on and off via the config file.

Rework theme css to be more organized/not include Bulma

I'll admit that since creating this theme, I've learned more about how to better organize CSS (Sass files specifically) and also learned a few lessons about dependencies.

I'd like to rewrite the theme's CSS (classes in the HTML files, and the Sass/CSS files themselves) to be more DRY, and independent of another framework (no Bulma). My preference would be to use Flexbox.

I don't currently have the time to do this so I'm opening it up as an invitation to contribute. This is an issue best suited to someone with good working knowledge of CSS, Sass, and Flexbox.

The idea is to replicate the current design and two accompanying color versions (light and dark) with DRY code, using Flexbox. The CSS for each of the two color versions could easily be created using variables that can be changed in one Sass file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.