Code Monkey home page Code Monkey logo

hugo-refresh's People

Contributors

andhet avatar mrucznik avatar pipporj avatar rzimin avatar ticofab avatar vburesh avatar wlun001 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

hugo-refresh's Issues

Advice on twoVideos

Hey @PippoRJ , I could use your advice: I am trying to write a twoVideos shortcode and would love it to behave like your twoFigures and eventually open a PR to see if you want to merge it.
However I'm getting stuck with something. The code of my twoVideos.html is:

<div class="columns is-centered container" style="height: 385px;">
    <div class="column is-half">
        <iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/{{ .Get 0 }}" allowfullscreen frameborder="0"></iframe>
    </div>
    <div class="column is-half">
        <iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/{{ .Get 1 }}" allowfullscreen frameborder="0"></iframe>
    </div>
</div>

But the iframes are displayed too short, their height is stuck at 150.
I tried everything and my best guess is that something in class="column is-half" is preventing the correct height.

Screenshot 2020-10-04 at 13 18 39

Would you have any quick advice on this? Thanks!

Google Analytics integration

Hi,

Thank you for this awesome theme. Much helpful.

Updated the googleAnalytics tag in the config.yaml file and also changed layout/partials/custom_head.html to include {{ template "_internal/google_analytics.html" . }}.

However the integration is not successful.

Could you please advice what I am missing?

Thanks!

sha256 mismatch error?

Hey, thanks for making a cool theme.

When I install and run hugo server -D, everything works.
But when I run hugo -D and move the public files to my server I get this error message in the console and the resources don't load:

  • None of the “sha256” hashes in the integrity attribute match the content of the subresource.

Also when building I get this message:
Building sites … WARNING: calling IsSet with unsupported type "invalid" () will always return false.

I wonder if there's something wrong with the files or it's my set up. I've set up a few other themes successfully and followed instructions carefully.

Thanks very much!
-Nima

What should I change to fix proportions of preview images?

My issue is that preview images are stretched to fill the preview area:

Screenshot 2019-12-29 at 10 15 09

I would like to have them centered and with their proportions unchanged, even if this results in empty space or portions of the image being cropped on one dimension. Where can I change this in the theme?

Thanks for your pointer. Ideally I would like to then open a PR and make this configurable.

showInMenu not working?

Hi @PippoRJ , I believe I have found an issue.
Within content, I have a folder called projects. I would like to hide that folder in the top-tight menu. So the folder contains an _index.md file (index.md without a preceding underscore won't work) which contains

---
title: "Projects"
showInMenu: false
---

Directory with file is here: https://github.com/ticofab/blog/tree/master/content/projects
The issue is that even with the showInMenu: false property, the website still shows the entry in the top-right menu, see here: https://ticofab.io/

I tried looking at the code, especially in navbar.html, but couldn't see anything wrong, hence I'm opening this issue. Would you have any tip on how to hide the menu entry?

Cheers and thanks for your work and help!

Specifying both Tags and a Summary Image in posts Cause Errors

I am trying to specify both of the options below in posts however both are causing errors such as the one below. The summary image error could because I am not specifying the image location correctly because I am not sure where the source dir is looking for the base dir when this option is specified.

My Options

tags: ["beard"]
summaryImage: "/images/fade3.jpg"

Error

hugo -d ../SeansDotDowns.github.io
Building sites … ERROR 2019/10/23 12:47:31 error: failed to transform resource: failed to parse Resource "images/refresh-square.svg" as Template:: template: images/refresh-square.svg:3: unexpected "{" in command
ERROR 2019/10/23 12:47:31 error: failed to transform resource: failed to parse Resource "images/refresh-square.svg" as Template:: template: images/refresh-square.svg:3: unexpected "{" in command
ERROR 2019/10/23 12:47:31 render of "taxonomy" failed: execute of template failed: template: _default/list.html:22:28: executing "main" at <partial "single/summ...>: error calling partial: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/partials/single/summary.html:7:28": execute of template failed: template: partials/single/summary.html:7:28: executing "partials/single/summary.html" at <.Page.Resources.GetM...>: can't evaluate field Page in type *hugolib.Page
ERROR 2019/10/23 12:47:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry
ERROR 2019/10/23 12:47:31 render of "home" failed: execute of template failed: template: index.html:47:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry
ERROR 2019/10/23 12:47:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry
ERROR 2019/10/23 12:47:31 render of "section" failed: execute of template failed: template: _default/list.html:22:28: executing "main" at <partial "single/summ...>: error calling partial: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/partials/single/summary.html:7:28": execute of template failed: template: partials/single/summary.html:7:28: executing "partials/single/summary.html" at <.Page.Resources.GetM...>: can't evaluate field Page in type *hugolib.Page
Total in 153 ms
Error: Error building site: failed to render pages: render of "taxonomyTerm" failed: "/etc/Hugo-Sites/SeansDotDowns/themes/hugo-refresh/layouts/_default/terms.html:14:68": execute of template failed: template: _default/terms.html:14:68: executing "main" at <.Page.Title>: can't evaluate field Page in type *hugolib.Page

Homepage Image From Config File (When Image Not located in theme)

I am not having luck specifying a new image to display on homepage from the config file that does not live in the scheme.

I can get the desired result but only when I save my image in the theme directory
for instance if myimage is saved here:

<site>/themes/hugo-refresh/assets/images/myimage.png

then the following config works:

  homepage:
    # option to specify the title in the homepage
    title: My Title
    # option to specify the subtitle in the homepage
    subtitle: My Subtitle
    # option to specify image in the homepage
    image: "/images/myimage.png"

But I tried to save my image outside of theme in static/images or static/assets/images and never could make image appear.

Should image be ok to live outside of theme?

Thanks again for theme and support.

Search Options

Hey @PippoRJ

Just wondering, is there an option to enable the search feature in the theme?

And do you have any plans to implement the search bar in the near future?

Thank you,
Kiran P.

Shortcode for figure not rendering image

My image is stored in the 'images' folder within the static directory, and I have also enabled the assetDir value in the config.yaml file. But using the shortcode for figure within the markdown does not render the image. The normal markdown syntax for the image works fine. Attaching screenshots.

Inspecting the page in Chrome does not show an HTML for the figure shortcode as wel

Screen Shot 2020-04-12 at 3 04 58 PM

Screen Shot 2020-04-12 at 3 12 58 PM

Screen Shot 2020-04-12 at 3 15 45 PM

Multilingual theme

Hi, thanks for the great theme and the ability to display the static pages in the menu.
Is it possible to allow translation of the generated menu items into another language?

Originally posted by @vBuresh in #3 (comment)

Images not working after latest Hugo upgrades - resource.Resource nil pointer

2019/10/22 16:48:06 Failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:22:28: executing "main" at <partial "single/summary.html" .>: error calling partial: "/Users/project/themes/hugo-refresh/layouts/partials/single/summary.html:8:42": execute of template failed: template: partials/single/summary.html:8:42: executing "partials/single/summary.html" at <$image.Resize>: nil pointer evaluating resource.Resource.Resize

The above error is one of several errors I am getting when I try to reference images in my /static/ or /public/images/ folders. All of them come down to a nil pointer on resource.Resource because apparently those images cannot be found.

The above example is caused by simply adding a post content, and overriding the summaryImage variable to summaryImage: images/file.png.

linter asks... (about style.sass)

Hi!

Thanks for the excellent theme! I like it and very glad to see how it progressing.

When viewing the source code of the file /themes/hugo-refreshing/assets/style.sass linter asks to check the correctness of the block starting from line 4 (Fatal)

! screenshot - 87,6 kb

It looks like the linter has noticed the missing quotes {{.Site.Params.mainColour}}. But you can't do that. New bugs appear.

All this does not cause damage during assembly or operation.

How to make it better? Just ignore? ))

not loading the full site in netlify

I like this theme and it works locally, but when i publish to netlify, it's not loading the center content completely. it keeps loading.
it show the menu correctly.

Theme demo broken on the Hugo Themes website

Hello @PippoRJ

The recent commits have broken the theme's demo on the Hugo Themes website.

You have configured the assetDir as the staticDir and that is not supported by the Hugo Themes architecture.

The breakage happened during the past 14 commits of your repo.

However it is impossible to pinpoint the exact commit since it seems that you are pushing commits in a non-linear order. For example commit 61bcf42 updated the theme's resources before they needed to be updated.

I suggest that in the future before you commit changes test them with the Hugo Themes Build Script. Detailed instructions can be found here

Also you need to fix the demo. As stated in the Hugo Themes README

If a theme demo breaks and remains so for more than 30 calendar days, we may remove it from this repository without further notification.

Use markdown code syntax highlighting with three backticks

Hi, Is it possible to use three backticks for code syntax highlighting with this themeas in below example. I need to use {{< codeWide language="go" >}} but wit this I loses highlighting in VS Code.
```go
package main

import (
"fmt"
"time"
)
func main() {
go hello()
time.Sleep(time.Second * 1)
}
func hello() {
fmt.Println("Hello World")
}
```

Netlify Build failing

I am deploying my site using Netlify and Hugo build is smooth on my windows10 system. However, build in Netlify fails with following stacktrace:

1:19:34 PM: Building sites … 1:19:34 PM: Total in 331 ms 1:19:34 PM: Error: failed to prune cache "assets": remove /opt/build/repo/resources/_gen/assets/css/css/mycss.css_d11fe7b62c27961c87ecd0f2490357b9.content: no such file or directory 1:19:34 PM: Skipping functions preparation step: no functions directory set 1:19:34 PM: Caching artifacts 1:19:34 PM: Started saving pip cache 1:19:34 PM: Finished saving pip cache 1:19:34 PM: Started saving emacs cask dependencies 1:19:34 PM: Finished saving emacs cask dependencies 1:19:34 PM: Started saving maven dependencies 1:19:34 PM: Finished saving maven dependencies 1:19:34 PM: Started saving boot dependencies 1:19:34 PM: Finished saving boot dependencies 1:19:34 PM: Started saving go dependencies 1:19:34 PM: Finished saving go dependencies 1:19:36 PM: Error running command: Build script returned non-zero exit code: 255 1:19:36 PM: Failing build: Failed to build site 1:19:36 PM: failed during stage 'building site': Build script returned non-zero exit code: 255 1:19:36 PM: Finished processing build request in 13.455972286s

404 / page not found for included links 'about' and 'credits' on demo site

I confess being a Hugo Noob. Your demo site had the best mix of features (reactive, left selection frame, top selection frame), looked very nice and your personal site built with Julia shows its power. That's why I chose it after looking at a few other options.

Those others used toml to control the site-structure. This one utilizes yaml. The toml file duplicates the structure nicely like for example:

publishDir = "../public"
themesDir = "themes"
staticDir = ["../static", "static2"]

[permalinks]
    post = "/:year/:month/:day/:slug/"

[[menu.main]]
    name = "Components"
    url = "/components/"
    pre = "<i class='now-ui-icons design_app'></i>"
    weight = 10
[[menu.main]]
    name = "Welcome & Start Here"
    url = "/tsr/"
    pre = "<i class='now-ui-icons design_app'></i>"
    weight = 13
[[menu.main]]
    name = "Terms of Usage"
    url = "/tou/"
    pre = "<i class='now-ui-icons design_app'></i>"
    weight = 15

etc.
I did not find where and how the left frame is defined and if there can be sub-categories like

- Programming languages
--- C++
--- Python
- Web Design
--- HTML 5
--- Node JS
--- CSS
- Getting rich while staying in bed
--- Winning the Lottery
--- etc.

It would help enormously if you would add at least two top categories like 'about Me' and 'Hot Topics' pointing to existing pages.
At least two left side categories and last but not least two items on the bottom like 'Credits' and 'contact'.

It is much easier to dig through the control file and rename/extend the items seeing ->working<- examples and deriving their location and the syntax in the control file within the file tree.

I know it is a lot I am asking for, but without this information, I cannot build my own site through your framework and that would be a shame since it is really nice and powerful as you demonstrated on your personal site.

Thank you in advance
g strubinsky

julia2

Issues getting the building to generate a good page

Hi!

Awesome project! thank you.

I have an issue getting the building of the page.

When I use hugo server, it looks good :)

But when using hugo I got unformatted pages, like the pic attached.

Screenshot 2020-07-09 02 03 09

Have you seen this before?
Thanks

Getting error while adding summaryImage.

While I am running command hugo server -D. It causing an error about resource.Resource.Width

Change detected, rebuilding site.
2020-04-10 02:03:06.136 +0530
Source changed "E:\\Personal projects\\quickstart\\content\\text\\t1.md": WRITE
WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.

Total in 83 ms
ERROR 2020/04/10 02:03:06 Rebuild failed:

ERROR 2020/04/10 02:03:06 Failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:25:28: executing "main" at <partial "single/summary.html" .>: error calling partial: "E:\Personal projects\quickstart\themes\hugo-refresh\layouts\partials\single\summary.html:22:32": execute of template failed: template: partials/single/summary.html:22:32: executing "partials/single/summary.html" at <$image.Width>: nil pointer evaluating resource.Resource.Width
---
title: "T1"
date: 2020-04-10T01:58:36+05:30
draft: true
summaryImage: "summary.jpg"
---

How to set create static pages in the top-right menu.

I saw from issue #1 that the top-right menu is created programmatically based on the contents of "/content/". I'm trying to create a page that appears in that list but is just a static .md file.

If I leave a "_index.md" file in the directory I get the name of the directory in the menu but no content. If I change the "_index.md" to just "index.md" I can show content but the link disappears from the menu. If I have both, the "index.md" appears as a box but the link just reloads the page.

Caption in figures short code?

This is a feature request.
Is it possible to add an attribute for caption in the figure shortcode?

something like

<figure>
    <img class="" src="" width="" height="">
    <figcaption>{{- $image.Caption -}}</figcaption>
</figure>

should work.

But with my very poor knowledge of Golang I'm really not able to import the "caption" from the "image". The Hugo shortcode for figure also has this feature.

Menu Clarification

Hello,

First I want to say that I really like the look of this theme. Great job!

I am working on testing it and cannot grasp how the menu is created in the top right of the screen. I did see this line in the documentation:

The menu is built following the structure of the content folder. Two levels are allowed at the moment.

Would you be able to provide a little more information to get me going the right direction? I am used to driving the menu items form the config.yaml file, but cannot seem to get that work. Just wanted to see if I am missing something.

Thanks for the help!

Feature Request: Github link in Contacts

It would be nice to be able to Github link in footer in Contacts, similar to Facebook and Instagram via the config file.

I am still learning Hugo so I hard coded it.

Thanks for theme!

the server is stuck sometimes

Thank you @PippoRJ! Thanks for the info! Appreciate it.

And sometimes it sticks at the below point and will not up the server, do you have any idea on this?

PS P:\blog> hugo server -D
Building sites … WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.


                   | EN | RU  
-------------------+----+-----
  Pages            | 21 |  5
  Paginator pages  |  0 |  0
  Non-page files   |  2 |  0
  Static files     | 28 | 28
  Processed images |  5 |  0
  Aliases          |  1 |  0
  Sitemaps         |  2 |  1
  Cleaned          |  0 |  0

Built in 1052 ms
Watching for changes in P:\blog\{archetypes,content,data,layouts,static,themes}

Originally posted by @kpatnayakuni in #31 (comment)

Firefox and Safari cutting off letters from refresh-summary-title elements

When using the post format with an index page that has all of your posts listed with a tile image, a title, and a summary, it seems major browsers are chopping off lowercase letters like "g" and "y" which drop down below the title line.

The element that the issue arises is:

<h3 class="title is-5 refresh-summary-title">
        Title
</h3>

You can look at the refresh demo website to see an example of this on the "Post" page. Most of the titles have a letter or two that look strange.

{.Content} not rendering Headings in List With Rest Of Theme

This is related to a slight theme modification so apologies if not related/supported.

Functionally, I am trying to include content/description of related topics or tags. That is, for instance if I want to introduce the "code" tags with a general description it would show up when someone clicked the "code" tag.

Content is displaying but not rendering as expected based on the markdown content.

Technical Steps:

I am using the following steps to create an reproducible example using 'my-site' based on this repos README.

I then updated the _index.md file at:

/content/topic_1/ :

image

I then added {.Content} in the list.html

/my-site/themes/hugo-refresh/layouts/_default/list.html::

here (in list):

<h5 class="subtitle is-5 is-muted">{{- .Params.Subtitle -}}</h5> <div class="divider"></div> {{.Content}}

The issue I am trying to solve is that the content gets rendered but outside of the theme. For example, the heading H1 get rendered to plain <h1> which does not format to a heading in the theme. It does not render to
<h1 class="title section-title">Heading 1</h1> which is desired.

This picture shows that the Content is rendered but the headings are not showing as I was expecting (the headings are not formatted):

image

I am investigating on how this gets rendered in Theme but I am stuck. Any thoughts or help is greatly appreciated.

Netlify Failing On Demo Site When "buildDrafts: true" or any page "draft: false"

I read #11 , so this issue is just for awareness. Ok to close if it is rooted in Netlify pipeline.

Here were my finding specific to Netify

The (basic demo site) site servers and builds fine locally.

The same site builds and deploys on Netlify with no errors. But there are no pages that are displayed due to draft status.

As soon as one page is saved as "draft:false" or config file includes "buildDrafts: true" the build and deployment break with the following errors:

7:32:31 PM: ERROR 2019/11/09 00:32:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/opt/build/repo/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry

7:32:31 PM: ERROR 2019/11/09 00:32:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/opt/build/repo/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry

7:32:31 PM: ERROR 2019/11/09 00:32:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/opt/build/repo/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry

7:32:31 PM: ERROR 2019/11/09 00:32:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/opt/build/repo/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry

7:32:31 PM: ERROR 2019/11/09 00:32:31 render of "page" failed: execute of template failed: template: _default/single.html:12:8: executing "main" at <partial "sidebar.htm...>: error calling partial: "/opt/build/repo/themes/hugo-refresh/layouts/partials/sidebar.html:50:31": execute of template failed: template: partials/sidebar.html:50:31: executing "partials/sidebar.html" at <.Page.Title>: can't evaluate field Page in type hugolib.OrderedTaxonomyEntry

7:32:31 PM: Total in 302 ms

7:32:31 PM: Error: Error building site: failed to render pages: render of "taxonomyTerm" failed: "/opt/build/repo/themes/hugo-refresh/layouts/_default/terms.html:14:68": execute of template failed: template: _default/terms.html:14:68: executing "main" at <.Page.Title>: can't evaluate field Page in type *hugolib.Page

Preview in shares?

Hi @PippoRJ and Happy Easter!
This is a feasibility / feature request. What would it take to show the post preview image when sharing a blog post? This is an example of what happens now on Twitter:

image

It would be great if we could show the preview image of the blog. Happy to try and help too.

How to use summaryImage? And what is the default images location?

Hello,

Greetings!

This is in continuation to the existing Issue # 23, even I am also in the same scenario, and still didn't understand the working concept of summaryImage; so if we want to use summaryImage do we have to create a separate leaf bundle for each post and place the images over there?

Do we have an option to refer to a common location for the summaryImages?

And I have another doubt, what is the images folder where we can keep our images and use them inside the posts?

Thank you and appreciate your help.

Shortcode for link is broken

Hello @PippoRJ,

Looks like the shortcode for link is broken, it is not opening the hyperlinked page/site, it opens itself in the new tab.

I am using the shortcode syntax as below...

{{< link href="https://gohugo.io/getting-started/installing" >}}Hugo Installation{{< /link >}}

Looks like there is an issue in rendering the page with this shortcode.

Thank you.

How to add tracking code

How to add tracking code like Google Analytics ?

layouts/partials/counter.html

Is it paste the entire script there?

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'ID');
</script>

Post preview on Linkedin (feature request or guidance request)

Hey @PippoRJ , a while ago you made some changes that let the post preview show up on twitter and that was awesome.
Now I have tried to share something on LinkedIn but it didn't have the same card preview effect.

Would it be a lot of work to make it Linkedin-compatible too? I would like to help, with some guidance from your side.

enable dark mode

Thanks for the awesome theme, I am having a blast using and customizing it.
My only issue is there is no way to configure dark mode for my website, as a new user to both Bulma css and Hugo itself I am trying to customize the theme to use have dark mode enabled but to no avail.
Any help or directions would be highly appreciated and thanks again for taking your time to provide this great theme for free.

Image Size Not Respected In Shortcode For Books

I am reproducing by building the example site.

Going to:

<site>/content/topic_1/example_3_topic_1/
creating an images directory so that

<site>/content/topic_1/example_3_topic_1/images/

exists.

I am copy the summary.jpg in the images just for testing.

Then I update:

<site>/content/topic_1/example_3_topic_1/index.md

and so that the entire file contains:

---
title: "Topic 1 is very cool!"
date: 2019-06-17T23:53:00+01:00
draft: true
hideLastModified: true
summary: "The summary image should be a custom one"
summaryImage: "summary.jpg"
tags: ["custom_image", "custom_summary"]
---

This is the real text of the article. 

{{< book title="Title Awesome" authors="Awesome author" image="images/summary.jpg" size="700x">}}

No matter what I change the size to the image on served site is very small.

image

Error when trying to build a site using this theme.

Please forgive what is probably a very newbie type question.

I'm following the steps at https://gohugo.io/getting-started/quick-start/ to get accustomed on how Hugo works, and I really like this theme.

When I try to run either hugo server -D, or hugo -D I receive the following error output. I'm running this on Windows 10.

I have confirmed that it does work using the ananke theme that the quick start guide uses.

Start building sites … ERROR 2020/10/14 17:06:12 render of "home" failed: "themes\refresh\layouts\_default\baseof.html:6:46": execute of template failed: template: index.html:6:46: executing "index.html" at <len $icon>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2020/10/14 17:06:12 render of "section" failed: "themes\refresh\layouts\_default\baseof.html:6:46": execute of template failed: template: _default/list.html:6:46: executing "_default/list.html" at <len $icon>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2020/10/14 17:06:12 render of "taxonomy" failed: "themes\refresh\layouts\_default\baseof.html:6:46": execute of template failed: template: _default/terms.html:6:46: executing "_default/terms.html" at <len $icon>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2020/10/14 17:06:12 render of "taxonomy" failed: "themes\refresh\layouts\_default\baseof.html:6:46": execute of template failed: template: _default/terms.html:6:46: executing "_default/terms.html" at <len $icon>: error calling len: reflect: call of reflect.Value.Type on zero Value Built in 32 ms Error: Error building site: failed to render pages: render of "page" failed: "themes\refresh\layouts\_default\baseof.html:6:46": execute of template failed: template: _default/single.html:6:46: executing "_default/single.html" at <len $icon>: error calling len: reflect: call of reflect.Value.Type on zero Value

hugo --minify failed with TOCSS error

Hi, I am not sure what causes this error. I am using Hugo Static Site Generator v0.79.1/extended windows/amd64, hugo server command is running successfully and I am able to access the site on localhost. When I run hugo --gc --minify, I am getting below error.

Error: Error building site: TOCSS: failed to transform "style.scss" (text/x-sass): resource "sass/style.sass_7429a748998a2893dc23ed75bb2ff2ac" not found in file cache

Has someone faced the same error. Thanks in advance.

Article title

Hi,
I'm using your them and thanks, I really like it.
I don't know if it's somethings that I missed or is an issue.
Title in html article page represent always the main website title. I think it could change with main article title.
Thanks
Andrea

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.