GithubHelp home page GithubHelp logo

boratanrikulu / eternity Goto Github PK

View Code? Open in Web Editor NEW
229.0 229.0 74.0 134.32 MB

A minimalist Hugo theme designed for portfolio sites.

Home Page: https://eternity.bora.sh

License: MIT License

Shell 1.56% HTML 58.96% CSS 29.03% JavaScript 10.46%
hugo hugo-theme portfolio theme

eternity's Introduction

Jupiter

Hey there,

I am a software engineer living in Izmir, a beautiful city in Turkiye.
I have a passion for creating simple and effective solutions and enjoy working on open-source projects.
Currently, I am developing an observability and monitoring agent at Sematext.

Feel free to take a look around my site bora.sh to learn more about me.
If you have any questions or want to connect, don't hesitate to send me an email at [email protected].

eternity's People

Contributors

aflynn50 avatar avijeetsm avatar boratanrikulu avatar brianwarner avatar fabienli avatar guax avatar jordan-warne avatar mblitherland avatar mycroftsnm avatar nikthedusky avatar olwenya avatar pokemaster974 avatar sullivant avatar tanuva avatar ttcremers 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

eternity's Issues

Invalid sorting of posts/images

Documentation claims the images will be sorted by Exif date in the absence of weight. This does not seem to be true and I cannot make this work. I cannot find any sorting code that would suggest that is being done either but I am not familiar with the code enough.

Is there is something I am missing? Order seems to be arbitrary. I can see

{{ $posts = sort $posts "Page" "desc" }}

But thats the only sorting I can find in the template code.

how to set root url

I use homepage in config.yml and would like to remove the /tags/archive and use it as my main "root" page.

  homepage: "/tags/archive/"

homepage url is: http://localhost:1313/tags/archive/

goal is to have the same page but with the url http://localhost:1313/

I'm new to hugo but it should be an easy config to implement.

Thanks for any help

Local static images causing error?

Hello! Everything builds just fine when using online images, but when I want to use an image from within the site directory I get this error:

ERROR render of "term" failed: "/home/admin/errorexample/themes/eternity/layouts/_default/list.html:18:3": execute of template failed: template: _default/list.html:18:3: executing "_default/list.html" at <partial "slides/slides" $portfolioScratch>: error calling partial: "/home/admin/errorexample/themes/eternity/layouts/partials/slides/slides.html:3:8": execute of template failed: template: partials/slides/slides.html:3:8: executing "partials/slides/slides.html" at <partial "slides/slide.html" (dict "disableFullheight" false "ctx" $post)>: error calling partial: "/home/admin/errorexample/themes/eternity/layouts/partials/slides/slide.html:28:19": execute of template failed: template: partials/slides/slide.html:28:19: executing "partials/slides/slide.html" at <$img.Exif>: nil pointer evaluating interface {}.Exif
Built in 25 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/home/admin/errorexample/themes/eternity/layouts/_default/single.html:6:4": execute of template failed: template: _default/single.html:6:4: executing "_default/single.html" at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: error calling partial: "/home/admin/errorexample/themes/eternity/layouts/partials/slides/slide.html:28:19": execute of template failed: template: partials/slides/slide.html:28:19: executing "partials/slides/slide.html" at <$img.Exif>: nil pointer evaluating interface {}.Exif

No error with the default config:
image

Error with local image config:
image

Thanks for any assistance!

Can't redefine colors from colors.css

I wanted to switch --main and --main-light from pinks to olives, so I created static/css/custom.css and added the following but it has no effect. I cleaned out my resources directory and re-built it to be sure. (git clean -f -X -d;hugo server --port 1313)

:root {
    --main: #A0A03E;
    --main-light: #DDDD5A;
    --dark: #000;
    --dark-light: #101010;
    --white: #eee;
    --grey: rgb(169, 169, 169);
}

How can I redefine those colors? My CSS knowledge is very small, so I'm sorry if this is obvious.

Few questions/suggestions about meta tags

Hi!

Thanks for sharing this beautiful theme!

I am not proficient in HTML and SEO, but it seems there are a few possible issues with og: meta tags:

  1. Setting the XMLNS prefix is required, see https://stackoverflow.com/a/50888773/929437. Should be as easy as adding prefix="og: http://ogp.me/ns#" to either <html> or <head> tag in partials/header.html.

  2. The image used for og:image is minified/resized to a rather small 800x418 size. It is not specified by the standard, but Facebook recommends at least 1200x630: https://developers.facebook.com/docs/sharing/webmasters/images/. And always converting it to a PNG might not be the best idea for photos. As far as I can tell, .Site.Params.Image is only used for the OG / social preview. I think, if image is explicitly specified in the config, it is better kept as-is, without cropping/optimization. And if it is chosen automatically from images on the page, perhaps it is better to use (a) larger size, (b) keep the original file format instead of forcing PNG.

  3. Facebook validator complains about missing og:type property. Per spec, it is optional for plain websites, but perhaps there is little harm in explicitly adding <meta property="og:type" content="website" /> tag?

Want to add images in about.md with markdown

Hi, first of all great theme!

I want to add images to a post (in this case the about.md file) other than using the images array provided in the header.
My goal is to integrate images in the text.

I used the following without success:

![Alt text](../assets/images/banner.png)
{{< figure src="../assets/images/banner.png" title="banner" >}}
<img src="../assets/images/banner.png">

I tried using absolute path, relative path.
When I am using an image from arandom source from the internet the image is rendered. However, if I try using an image like the already existing banner.png rendering fails?

What am I doing wrong? ;)

BR and Thx
Phil

Getting started instructions fail: error calling len: reflect: call of reflect.Value.Type on zero Value

Following the getting started instructions to the letter, with latest release as of today (hugo_extended_0.104.2), the serve command appears to crash with:

~/src/portfolio master* 2m 3s
❯ hugo serve -D
Start building sites … 
hugo v0.93.3+extended linux/amd64 BuildDate=unknown
ERROR 2022/10/02 16:08:52 render of "home" failed: execute of template failed: template: index.html:1:3: executing "index.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/dev/src/portfolio/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value
ERROR 2022/10/02 16:08:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/dev/src/portfolio/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value
ERROR 2022/10/02 16:08:52 render of "term" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/dev/src/portfolio/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value
ERROR 2022/10/02 16:08:52 render of "section" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/dev/src/portfolio/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: nil/single.html:1:3: executing "nil/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/dev/src/portfolio/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value
Built in 56 ms

Problem appears to be this line: https://github.com/boratanrikulu/eternity/blob/main/layouts/partials/meta.html#L22

If I've done something silly please feel free to let me know. :) Otherwise I am only semi-familiar with hugo theming and internals, but I'm going to try to fix.

Side note, what a beautiful new theme, I've been trying to present my photography with hugo off and on for some time, this looks immensely beautiful and promising for my site, so thank you for publishing it!

How to create new tags ?

Hi, I'm trying to create a personal website with the help of your template.

I've done a little workaround to customize the site, but I got errors when I try to add new tags.
This is my procedure :

  • Creating a new folder into content/work/, let's say a folder called "aerien"
  • Creating a new post ciel-1.md into this new folder

Here is the file ciel-1.md :

---
weight: 2
images:
- /images/aerien/ciel-1.jpg
multipleColumn: false
title: Ciel vu depuis un avien (1)
date: 2020-03-15
tags:
- bienvenue # homepage
- archive # all posts
- aerien
---

# Markdown

You can use **Markdown** format to write **your story**.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni dolorem, laborum impedit doloremque ducimus repellat sapiente aut qui quae provident, cum vitae atque eius earum labore. Quae quod rem aliquid!

This is the error I got :

Change detected, rebuilding site.
2022-10-12 13:40:41.589 +0200
Source changed "C:\\Hugo\\Sites\\cys.photographie\\content\\bienvenue\\aerien\\ciel-1.md": CREATE
ERROR 2022/10/12 13:40:41 Rebuild failed: failed to render pages: render of "page" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\_default\single.html:6:4": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: error calling partial: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23": execute of template failed at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink
Total in 5 ms

And into the website it's written :

render of "term" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\list.html:18:3": execute of template failed at <partial "slides/slides" $portfolioScratch>: error calling partial: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slides.html:3:8": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" false "ctx" $post)>: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23": execute of template failed at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink render of "section" failed: nil pointer evaluating interface {}.RelPermalink failed to render pages: render of "page" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\single.html:6:4": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: nil pointer evaluating interface {}.RelPermalink

C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\single.html:6:4:

<section class="section">
	{{ partial "slides/slide.html" (dict "disableFullheight" true "ctx" .) }}
</section>

C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23:

	{{ range $i, $img := $imgs }}
	<div {{ if $.ctx.Params.multipleColumn }} class="column" {{ end }}>
		<img src="{{ $img.RelPermalink }}" loading="lazy" width="{{ $img.Width }}" height="{{ $img.Height }}" />
	</div>
	{{ end }}

It seems about the file slide.html and a conflict with this new folder but I don't find the origin of my issue.

As soon I will delete the folder "arien" all will be good as before.

Thanks for your help.

Customizable resize values

Suggestion:

Could we make the image sizes a parameter in the config file? The default size of 1000/3000 pixels is a bit large for me and can consumes quite some bandwidth on hosting servers.

organisation of content

hi
it is normaly content are in first themes folder and theme eternity in second folder themes ?
image

Question: subtitle per image

Hello.

I cant' see a way to add a title per image, below them. I think this is very useful in order to show paintings or photography titles. How can I achieve it?

Thank you. Excellent work, by the way!

Back button intent

Top right close button versus actual back button press ?

at the moment it’s the uncanny valley where I can click the close button .
but if I click the browser back button I am going back twice ( not really but it feels that way )

I don’t have a solution but wanted to point out the usability issue

Template Example not able to compile due to error in partial views?

This is the output of the example website when compiled:

hugo serve --port 1313 Start building sites … hugo v0.92.2+extended linux/amd64 BuildDate=2022-02-23T16:47:50Z VendorInfo=ubuntu:0.92.2-1 ERROR 2022/09/06 23:51:27 render of "home" failed: execute of template failed: template: index.html:1:3: executing "index.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/najm/Documents/Web_Projects/kaynat.art/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2022/09/06 23:51:27 render of "taxonomy" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/najm/Documents/Web_Projects/kaynat.art/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2022/09/06 23:51:27 render of "section" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/najm/Documents/Web_Projects/kaynat.art/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value ERROR 2022/09/06 23:51:27 render of "term" failed: execute of template failed: template: _default/list.html:5:3: executing "_default/list.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/najm/Documents/Web_Projects/kaynat.art/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: nil/single.html:1:3: executing "nil/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: "/home/najm/Documents/Web_Projects/kaynat.art/themes/eternity/layouts/partials/meta.html:22:30": execute of template failed: template: partials/meta.html:22:30: executing "partials/meta.html" at <len .Params.images>: error calling len: reflect: call of reflect.Value.Type on zero Value Built in 2014 ms

CSS for social icons might be off in mobile

I've tried this in Firefox and in Safari on my iPhone and on my partner's Android, and the problem occurred everywhere. The upper-right-hand corner social icons seems to get crowded and are on top of either the images or the links/text.

Screenshot attached so that you can see what I'm talking about:

Screenshot 2022-12-05 at 9 00 47 PM

Probably a CSS fix will do the trick.

On phone, slide navigation arrows are on top of image, and inconsistant

On iPhone, at least, using Safari, when browsing slides, navigation arrows appear on top of the image. Maybe place them on top? (My images are 512 x 512).

Also, sometimes an arrow will jump to the left top.
And sometimes the X to close appears on the right.

I have about 500 images in my list for a tag.

Content ?

First of all. thank you for this beautiful theme.

As a beginner in Hugo I was wondering if you could explain to me how does the content management work in this theme? I can not figure out how to create a post with an image that actually gets picked up by the theme. When ever I change anything I get errors. I can only change the config file. Thank you

Minify css/js files and implement cache busting

Feature request

  • minify all js and css files
  • implement cache busting

why?

  • browsers will typically cache static files. Changes to a deployed site will not update immediately.

Potential solution

  • move files from static folder to assets folder, and the use hugo pipes to minify and fingerprint functions. see this discussion

New Feature: Exit project view by clicking on margins of page

From a user experience standpoint, it feels natural that if you clicked on the translucent background while viewing a project, it would take you back to the gallery page you were on before. On my site (rebeccacomas.com) it feels especially like this because I added an opaque background behind the project text. I'd like to make it so if a user clicks on the translucent edges of a project page it takes them back to the /work page, so they don't have to search for the X. Is there a way to implement this?

Hugo server errors

I followed the steps to install the theme.
When I ran the "Hugo server," it errored.
Screenshot 2023-03-16 at 19 14 27
Screenshot 2023-03-16 at 19 14 42

Setting subtitle and image in config.yaml does nothing

Hi! i'm trying to understand what setting 'image' and ''subtitle' on config.yaml are supposed to do

I though that subtitle referred to the text under the Enter button on the welcome screen, but it seems like is not the case, that text is setted by _index.md in /content/, which is fine

i also changed the image setting to a random image and it looks like nothing changed

This is not really an issue but a question, which would be the correct way to change the Title in the navbar from text to an image? i mean without editing the theme folder itself

Thanks :)

mdshortcode not found

I was trying this example from the Hugo docs but mdshortcode isn't found.

{{% mdshortcode %}}Stuff to `process` in the *center*.{{% /mdshortcode %}}

d:24:1": failed to extract shortcode: template for shortcode "mdshortcode" not found

Use online image to my page

image

I uploaded all my photos to a media files server. And use the link to my pages.
But when I create the public pages. It downloaded all the photos to my root folder locally.

Can I directly use online photos instead of downloading them locally. Because the hugo file size can be reduced and the update speed can be accelerated.

search using page find works well.

am using this to do indexing and search.

code: https://github.com/CloudCannon/pagefind

the indexing runs on the server.

The search is 100% client side and supports facet based search. It’s actually wasm running in the browser that calls out to the server for the index.

For the image meta data is uses the html produced from Hugo , so there is nothing for us to change.

Dame for tags I think , but have not got to that yet.

I got it working with eternity, but need to do a little more integration before making a PR.

demo from dev:
https://www.youtube.com/watch?v=74lsEXqRQys

To index just this on public:

npx pagefind --source $(EX_FSPATH)/public

Site not showing using css and wrong link on Github page.

When we use an URL like "username.github.io/mypage" the website doesn't load the CSS, the link handling is broken as well as the image loading.

I tried putting <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css"> in header.html and it fixed some parts of it. But I am not too sure about the other part and where else it is relevant.

Thanks in advance

netlify and vercel building error

i tried to deploy the hugo website with eternity theme.
used this commands to install theme:
$ hugo new site hearty
$ cd hearty
$ rm config.toml
$ git init
$ git submodule add --depth=1 https://github.com/boratanrikulu/eternity.git themes/eternity
$ cp -r ./themes/eternity/example/eternity.bora.sh/* .

it is working when i starting local server with the command $ hugo serve --port 1313. but when i'm trying to host it( i tried netlify and vercel ) it shows me the same error. check log with the error a little bit down

6:57:58 PM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
6:57:58 PM: build-image tag: v4.16.3
6:57:58 PM: buildbot version: e2f63efe7f752311197ae3394a83cb4531d1cbd2
6:57:58 PM: Fetching cached dependencies
6:57:58 PM: Failed to fetch cache, continuing with build
6:57:58 PM: Starting to prepare the repo for build
6:57:59 PM: No cached dependencies found. Cloning fresh repo
6:57:59 PM: git clone --filter=blob:none --no-checkout https://github.com/Hearty0/hearty
6:57:59 PM: Preparing Git Reference refs/heads/main
6:58:00 PM: Parsing package.json dependencies
6:58:01 PM: Starting build script
6:58:01 PM: Installing dependencies
6:58:01 PM: Python version set to 2.7
6:58:01 PM: v16.19.0 is already installed.
6:58:02 PM: Now using node v16.19.0 (npm v8.19.3)
6:58:02 PM: Enabling Node.js Corepack
6:58:02 PM: Started restoring cached build plugins
6:58:02 PM: Finished restoring cached build plugins
6:58:02 PM: Attempting Ruby version 2.7.2, read from environment
6:58:03 PM: Using Ruby version 2.7.2
6:58:03 PM: Using PHP version 8.0
6:58:03 PM: Started restoring cached go cache
6:58:03 PM: Finished restoring cached go cache
6:58:04 PM: Installing Go version 1.19.5 (requested 1.19.x)
6:58:09 PM: unset GOOS;
6:58:09 PM: unset GOARCH;
6:58:09 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64';
6:58:09 PM: export PATH="/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:${PATH}";
6:58:09 PM: go version >&2;
6:58:09 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.19.5.linux.amd64.env"
6:58:09 PM: go version go1.19.5 linux/amd64
6:58:09 PM: Detected 1 framework(s)
6:58:09 PM: "hugo" at version "unknown"
6:58:09 PM: Installing missing commands
6:58:09 PM: Verify run directory
6:58:09 PM: Section completed: initializing
6:58:11 PM: ​
6:58:11 PM:   Netlify Build                                                 
6:58:11 PM: ────────────────────────────────────────────────────────────────
6:58:11 PM: ​
6:58:11 PM: ❯ Version
6:58:11 PM:   @netlify/build 29.5.1
6:58:11 PM: ​
6:58:11 PM: ❯ Flags
6:58:11 PM:   baseRelDir: true
6:58:11 PM:   buildId: 63c984a396402a6bed195824
6:58:11 PM:   deployId: 63c984a396402a6bed195826
6:58:11 PM: ​
6:58:11 PM: ❯ Current directory
6:58:11 PM:   /opt/build/repo
6:58:11 PM: ​
6:58:11 PM: ❯ Config file
6:58:11 PM:   No config file was defined: using default values.
6:58:11 PM: ​
6:58:11 PM: ❯ Context
6:58:11 PM:   production
6:58:11 PM: ​
6:58:11 PM:   1. Build command from Netlify app                             
6:58:11 PM: ────────────────────────────────────────────────────────────────
6:58:11 PM: ​
6:58:11 PM: $ hugo
6:58:11 PM: Start building sites …
6:58:11 PM: hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
6:58:11 PM: ERROR 2023/01/19 17:58:11 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/opt/build/repo/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}ERROR 2023/01/19 17:58:11 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/opt/build/repo/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}ERROR 2023/01/19 17:58:11 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/opt/build/repo/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}ERROR 2023/01/19 17:58:11 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/opt/build/repo/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/opt/build/repo/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}Total in 573 ms
6:58:11 PM: ​
6:58:11 PM:   "build.command" failed                                        
6:58:11 PM: ────────────────────────────────────────────────────────────────
6:58:11 PM: ​
6:58:11 PM:   Error message
6:58:11 PM:   Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
6:58:11 PM: ​
6:58:11 PM:   Error location
6:58:11 PM:   In Build command from Netlify app:
6:58:11 PM:   hugo
6:58:11 PM: ​
6:58:11 PM:   Resolved config
6:58:11 PM:   build:
6:58:11 PM:     command: hugo
6:58:11 PM:     commandOrigin: ui
6:58:11 PM:     publish: /opt/build/repo/public
6:58:12 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
6:58:11 PM:     publishOrigin: ui
6:58:12 PM: Caching artifacts
6:58:12 PM: Started saving build plugins
6:58:12 PM: Finished saving build plugins
6:58:12 PM: Started saving pip cache
6:58:12 PM: Finished saving pip cache
6:58:12 PM: Started saving emacs cask dependencies
6:58:12 PM: Finished saving emacs cask dependencies
6:58:12 PM: Started saving maven dependencies
6:58:12 PM: Finished saving maven dependencies
6:58:12 PM: Started saving boot dependencies
6:58:12 PM: Finished saving boot dependencies
6:58:12 PM: Started saving rust rustup cache
6:58:12 PM: Finished saving rust rustup cache
6:58:12 PM: Started saving go dependencies
6:58:12 PM: Finished saving go dependencies
6:58:12 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:58:12 PM: Failing build: Failed to build site
6:58:13 PM: Finished processing build request in 14.350431905s

P.S. your site is awesome. good luck!

Failed to load resource: net::ERR_CONNECTION_REFUSED on clean site

Hi! I'm trying to use this theme, the site runs but shows an almost blank html page with some text, it seems like it failed to load some assets.

browser developer console shows :

      Failed to load resource: net::ERR_CONNECTION_REFUSED
main.js:1 
     
       Failed to load resource: net::ERR_CONNECTION_REFUSED
logo.png:1 
        
       Failed to load resource: net::ERR_CONNECTION_REFUSED
background.jpeg:1 

        
       Failed to load resource: net::ERR_CONNECTION_REFUSED
OpenSans-Regular.ttf:1 

        
       Failed to load resource: net::ERR_CONNECTION_REFUSED
localhost:1313/favicon.ico:1 

I followed the instructions step by step, im running this on a raspi400 with debian 11 , hugo v0.100.0

Howard and back buttons

Much better to support swipes too .

It’s almost programmed into user brains to swipe these days .

keep the buttons for the non swipes too though too .

Create a post with local images

HI,
When i try to create a first post after setup example site i came across a problem. where is it supposed to put the images locally?

i try some different ways for example

---
weight: 3
images:
- /images/1.jpeg
title: bolo aniversário
date: 2022-10-28
tags:
- tudo # all posts
- doces
---

and others locations...

but i don't found correct location and have this error

image

Thanks!!!

specialPages and Hugo Modules

Hello,
I was wondering if you would provide some more context on what specialPages does in the config. It doesn't seem to be changing anything when I mess around with it.

Also I was wondering if this package could support the Hugo modules for themes.

Thanks

Tables are not dark themed

Given the theme is mostly dark, I would like it if the tables were dark as well, because they are currently very white.

Source code for example:

---
title: Example
url: example
hideExif: true
hideDate: true
---

# Markdown

| Syntax      | Description | Test Text     |
| :---        |    :----:   |          ---: |
| Header      | Title       | Here's this   |
| Paragraph   | Text        | And more      |

image

Questions about your theme

Hi @boratanrikulu sorry if it's not the good place (it's not really an issue) but I thought that other people could have the same questions.

I've developped a personnal website with Hugo and your theme. This is the first "initial" deploy of it : https://cys-photographie.netlify.app/

Modifications

First of all, I will tell you the modifications I've made from your theme. Maybe it could give you ideas for improvements :

  • style.css :
.menu {
    max-width: 1200px;
}
/* I've grown the max-width to prevent navbar to take 2 lines when we add tags in menu */

img.logo {
    border-radius: 0%;
    height: 100%;
}

/* I've removed the border-radius because with 50% (default) it will "cut" the border of non-circle logo */
  • adding a 404.html file into layout folder to localize the error page (and copying this content into nil/single.html because on rare occasions it loads the default 404 page instead my custom 404 page, I don't know why exactly).
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}
<body>
    <section class="hero is-fullheight">
        <div class="hero-body">
            <div class="">
                <div class="header-404">
                    <img src="/idontknow.png" alt="" width="25%" height="25%">
                </div>
                <div class="body-404">
                    <p class="subtitle-404">Page non trouvée</p>
                    <p class="title-404">404</p>
                    <a href="/">Retour à la case départ</a>
                </div>
            </div>
        </div>
    </section>
{{ partial "footer.html" . }}
  • modifying partials/slides/meta.html to have a better "localization" of the format date :
                  <p>{{ .ctx.Page.Date.Format "2 January 2006" }}</p>
              </div>
          {{ else }}
              <div class="center column slide-meta-el grey">
                  <p>{{ with (index $.imgs 0).Exif }}</p>{{ .Date.Format "2 January 2006" }}</p>{{ end }}</p>

I've tried to localize perfectly to french "conventions" with this template code but never success.
If I just change 2 January 2006 with :date_full it will literally write ":date_full" on the page.
If I try to use the complete template {{ .Date | time.Format ":date_full" }} or {{ .ctx.Page..Date | time.Format ":date_full" }} it will break all the website.

  • I've added a html code into partials/slides/slider.html to inform visitors that they can click on the pictures to open the viewer :
<div class="center">
    <div class="slide-info">
        <div class="content">
            {{ . }}
        </div>
    </div>
</div>
{{ end }}
<center>N'hésitez pas à cliquer sur les images pour ouvrir la visionneuse</center>

Questions

Now my questions :

  • does the website loads indefinitively the pictures, for example into the /work page or can we add a maximum pictures loaded ?

  • how are displayed the pictures ? I've loaded several times and I've done a full reload, but it seems to have always the same order, and the posts with the smallest weight (1 in my case) are not even loaded into the first place on my /work page.
    I was hoping the smalles weight will be displayed first, and randomly.

  • where do you think it's the best place to store the pictures ?
    In my case, I've added folders into the "asset" folder and call them from the page with something like this :

images:
  /images/aerien/_CYS0486_.jpg

I've tried to add them into static or ressources but without success or not also easy than this "asset" method.

  • at the beginning of my coding, I was planned to made one post with several pictures (like an album) but if we add multipleColumn: true all pictures wil be aligned only on one line even if they are 6 or more pictures into the post. I could add multipleColumn: true but I don't find very attractive.
    I don't know if we can add a viewer which let use configure the number of max columns et let us navigate to the "album" post with left and right arrows.

Sorry for this long post, but hoping we can discuss about it.
Regards.

Deployment failed on Cloudflare Pages

Hi, I've tried to deploy the repo to a Cloudlfare Pages but I get errors.
It's exactly the same commit (the lastest) of the repo that I use for Netlify or Vercel or GH Pages deployments with success.

Here's the log of the failed build/deployment :

2022-10-18T08:30:25.14444Z	Cloning repository...
2022-10-18T08:30:27.718403Z	From https://github.com/pokemaster974/cys-photographie.github.io
2022-10-18T08:30:27.719073Z	 * branch            0a85f0a46ee10ff7f952ab35e546ebd1c9d11940 -> FETCH_HEAD
2022-10-18T08:30:27.719287Z	
2022-10-18T08:30:27.979758Z	HEAD is now at 0a85f0a Update gh-pages.yml
2022-10-18T08:30:27.98035Z	
2022-10-18T08:30:31.637822Z	Submodule 'themes/eternity' (https://github.com/boratanrikulu/eternity.git) registered for path 'themes/eternity'
2022-10-18T08:30:31.638378Z	Cloning into '/opt/buildhome/clone/themes/eternity'...
2022-10-18T08:30:31.638635Z	Submodule path 'themes/eternity': checked out '066fee0f7d51c14e48cb98558f820732f1bb18f8'
2022-10-18T08:30:31.638788Z	
2022-10-18T08:30:31.665656Z	Success: Finished cloning repository files
2022-10-18T08:30:32.54957Z	Installing dependencies
2022-10-18T08:30:32.560954Z	Python version set to 2.7
2022-10-18T08:30:35.761979Z	v12.18.0 is already installed.
2022-10-18T08:30:36.931074Z	Now using node v12.18.0 (npm v6.14.4)
2022-10-18T08:30:37.152798Z	Started restoring cached build plugins
2022-10-18T08:30:37.16799Z	Finished restoring cached build plugins
2022-10-18T08:30:37.638058Z	Attempting ruby version 2.7.1, read from environment
2022-10-18T08:30:40.995897Z	Using ruby version 2.7.1
2022-10-18T08:30:41.349573Z	Using PHP version 5.6
2022-10-18T08:30:41.503467Z	5.2 is already installed.
2022-10-18T08:30:41.528682Z	Using Swift version 5.2
2022-10-18T08:30:41.529Z	Installing Hugo 0.54.0
2022-10-18T08:30:42.211551Z	Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
2022-10-18T08:30:42.216017Z	Started restoring cached go cache
2022-10-18T08:30:42.23294Z	Finished restoring cached go cache
2022-10-18T08:30:42.37004Z	go version go1.14.4 linux/amd64
2022-10-18T08:30:42.384531Z	go version go1.14.4 linux/amd64
2022-10-18T08:30:42.387549Z	Installing missing commands
2022-10-18T08:30:42.387814Z	Verify run directory
2022-10-18T08:30:42.387952Z	Executing user command: hugo -b $CF_PAGES_URL
2022-10-18T08:30:52.629382Z	Building sites … ERROR 2022/10/18 08:30:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/colu...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/columns.html:23:20": execute of template failed: template: partials/slides/columns.html:23:20: executing "partials/slides/columns.html" at <index .ctx.Site.Para...>: error calling index: value is nil; should be of type string
2022-10-18T08:30:52.62972Z	ERROR 2022/10/18 08:30:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/colu...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/columns.html:23:20": execute of template failed: template: partials/slides/columns.html:23:20: executing "partials/slides/columns.html" at <index .ctx.Site.Para...>: error calling index: value is nil; should be of type string
2022-10-18T08:30:52.629889Z	ERROR 2022/10/18 08:30:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/colu...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/columns.html:23:20": execute of template failed: template: partials/slides/columns.html:23:20: executing "partials/slides/columns.html" at <index .ctx.Site.Para...>: error calling index: value is nil; should be of type string
2022-10-18T08:30:52.630061Z	ERROR 2022/10/18 08:30:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/colu...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/columns.html:23:20": execute of template failed: template: partials/slides/columns.html:23:20: executing "partials/slides/columns.html" at <index .ctx.Site.Para...>: error calling index: value is nil; should be of type string
2022-10-18T08:30:52.630218Z	ERROR 2022/10/18 08:30:52 render of "taxonomy" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/colu...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/columns.html:23:20": execute of template failed: template: partials/slides/columns.html:23:20: executing "partials/slides/columns.html" at <index .ctx.Site.Para...>: error calling index: value is nil; should be of type string
2022-10-18T08:30:52.630338Z	Total in 10177 ms
2022-10-18T08:30:52.630499Z	Error: Error building site: failed to render pages: render of "section" failed: "/opt/buildhome/repo/layouts/nouveautes/nouveautes.html:13:74": execute of template failed: template: nouveautes/nouveautes.html:18:11: executing "nouveautes/nouveautes.html" at <partial "slides/slid...>: error calling partial: "/opt/buildhome/repo/layouts/partials/slides/slide_new.html:13:74": execute of template failed: template: partials/slides/slide_new.html:13:74: executing "partials/slides/slide_new.html" at <$.ctx.Page.RelPermal...>: can't evaluate field Page in type interface {}
2022-10-18T08:30:52.639863Z	Failed: build command exited with code: 255
2022-10-18T08:30:53.734852Z	Failed: an internal error occurred

Regards.

All static contents were rebuilt again.

In my other Hugo blog, I command "Hugo." It just updates the new data to the public folder. So I can easily use commands to update the new files.

In this theme, every time I command "Hugo" to publish the static pages, all pages are rebuilt again.
So whenever I update the blog, it will update all the files to my service.

How can I remove the welcome page?

Hi there,

This theme is very beautiful, I'm trying it out now and wondering if it's possible to remove the welcome page and directly go to the work page. Also, is it possible to include some text/images in work/people/etc pages between the title and the photos? I don't mind forking the repo and editing the theme files myself.

Very much appreciated, thanks!

CSS Color Settings discarded after deployment

Hi,

was creating a portfolio over the last days and changed the background colours and font colours in style.css and base.css to convert it to a white theme.

For instance - to change the NavBar background and font i did the following in style.css

nav.navbar { background-color: white; color: black; ... }

When previewing the page locally on the huge server with hugo server --buildDrafts , everything looks like expected.

However - when deploying the page (deployed it both to with Cloudflare Pages as well as Kinsta) - the entire website is kept in original dark mode. Building the page locally and only deploying the public folder doesn't make any difference.

What could be the issue ?

Thanks, Max

Adding gif instead of an image

Hi I wonder if it's possible to add gifs(to the gallery), I have tried

---
weight: 3
images:
- /images/animation.gif
title: bunny 1
date: 2022-07-23
tags:
- archive # all posts
- bunny
- nature
---

But it seems to fail

Note : it is possible to add gifs to the markdown content but in the galley it's not.

Image rotated when viewing feed

First, wanted to thank you for making this great theme!

For 2 of the posts in my feed, the thumbnail image is rotated in the feed (but not when I actually click the post). Visible at https://www.lucywingard.com/portfolio/ . I'm using the same code for these rotated posts as I am for the rest of my posts, and the images are the same size as images in my other posts (just standard phone camera images).

Any idea why they might be showing up rotated in the feed? Here's my code https://github.com/wingardl/wingardl.github.io/tree/main/content/portfolio/flower_vase
(fyi saw this both when I had multipleColumn: true and multipleColumn: false for the same 2 posts)

Error building site: render: failed to render pages: render of "page" failed

After finishing cp -r ./themes/eternity/example/eternity.bora.sh/* ., I runed command hugo serve, then I met the following errors:

Start building sites …
hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d windows/amd64 BuildDate=2023-08-31T11:23:51Z VendorInfo=gohugoio

ERROR render of "page" failed: "D:\github\xxx\yoursite\themes\eternity\layouts\_default\single.html:1:3": execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: partial "header.html" timed out after 30s. This is most likely due to infinite recursion. If this is just a slow template, you can try to increase the 'timeout' config setting.
Built in 120038 ms
Error: error building site: render: failed to render pages: render of "page" failed: "D:\github\xxx\yoursite\themes\eternity\layouts\_default\single.html:1:3": execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: partial "header.html" timed out after 30s. This is most likely due to infinite recursion. If this is just a slow template, you can try to increase the 'timeout' config setting.

I tried few version of hugo, but none of them works:

  • When using hugo v0.117.0, the problem exists;
  • neither can the latest hugo v0.118.2 ;
  • neither can hugo v0.104.0;
  • neither can hugo v0.102.2;
  • neither can hugo v0.96.0;
  • neither can hugo v0.88.1

I am using an environment of amd64 windows11

I am not a go learner but only learned some basic knowledge on how to write a theme, I can't fix it right now : (

Thanks for giving a help : )

Error rendering template partials/slides/columns with Taxonomies

I have for the most part copied the example in this repo. Whenever I add any tags to my post I get the following error:

Error: error building site: render: failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/columns" (dict "portfolioScratch" $portfolioScratch "portfolioMobileScratch" $portfolioMobileScratch "ctx" .)>: error calling partial: "blog/themes/eternity/layouts/partials/slides/columns.html:37:13": execute of template failed: template: partials/slides/columns.html:37:13: executing "partials/slides/columns.html" at <index .ctx.Site.Taxonomies.tags .ctx.Params.Title>: error calling index: index of type page.Taxonomy with args [<nil>] failed: value is nil; should be of type string

Here is the post:

---
weight: 1
images:
- /images/nebula_warrior.jpg
title: Nebula
date: 2023-10-11
tags:
- archive
---

Here is the tree for my content directory:

content
├── 404.md
├── about.md
├── tags
│  └── _index.md
└── work
   ├── _index.md
   └── scifi
      ├── _index.md
      └── scifi-1.md

If I remove the tag section the site correctly builds, but no posts show up.

Installation failed, hugo serve compilation error (render of "term" failed)

Hi!

First of all, thank you for this theme! :)
I would like to use in my hobby project, but I have a little problem with installation. I would show my steps so as to you can reproduce this:

  • create new hugo site

$ hugo new site jamieszerintavilag.hu
Congratulations! Your new Hugo site is created in /Users/asrob/Projects/github/jamieszerintavilag.hu.
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 " command.
  2. Perhaps you want to add some content. You can add single files
    with "hugo new /.".
  3. Start the built-in live server via "hugo server".
    Visit https://gohugo.io/ for quickstart guide and full documentation.
  • git init

$ git init
Initialized empty Git repository in /Users/asrob/Projects/github/jamieszerintavilag.hu/.git/

  • remove config.toml

$ rm config.toml

  • add theme as git submodule

$ git submodule add --depth=1 https://github.com/boratanrikulu/eternity.git themes/eternity
Cloning into '/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity'...
remote: Enumerating objects: 129, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 129 (delta 40), reused 53 (delta 0), pack-reused 0
Receiving objects: 100% (129/129), 2.68 MiB | 9.45 MiB/s, done.
Resolving deltas: 100% (40/40), done.

  • copy example files

$ cp -r ./themes/eternity/example/eternity.bora.sh/* .

  • run hugo serve

$ hugo serve
Start building sites …
hugo v0.105.0+extended darwin/arm64 BuildDate=unknown
ERROR 2022/11/11 18:08:55 render of "term" failed: "/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity/layouts/_default/list.html:18:3": execute of template failed: template: _default/list.html:18:3: executing "_default/list.html" at <partial "slides/slides" $portfolioScratch>: error calling partial: "/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity/layouts/partials/slides/slides.html:3:8": execute of template failed: template: partials/slides/slides.html:3:8: executing "partials/slides/slides.html" at <partial "slides/slide.html" (dict "disableFullheight" false "ctx" $post)>: error calling partial: "/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity/layouts/partials/slides/slide.html:27:24": execute of template failed: template: partials/slides/slide.html:27:24: executing "partials/slides/slide.html" at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink
Error: Error building site: failed to render pages: render of "page" failed: "/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity/layouts/_default/single.html:6:4": execute of template failed: template: _default/single.html:6:4: executing "_default/single.html" at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: error calling partial: "/Users/asrob/Projects/github/jamieszerintavilag.hu/themes/eternity/layouts/partials/slides/slide.html:27:24": execute of template failed: template: partials/slides/slide.html:27:24: executing "partials/slides/slide.html" at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink
Built in 3875 ms

What am I missing?

Error with hugo serve

I followed the readme to setup the example project, but everytime I run hugo serve I get this (or similar) error

Building sites … ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} ERROR 2023/03/26 18:22:00 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {} Built in 26 ms Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "header.html" .>: error calling partial: execute of template failed: template: partials/header.html:14:4: executing "partials/header.html" at <partial "meta" .>: error calling partial: execute of template failed: template: partials/meta.html:24:7: executing "partials/meta.html" at <partial "helpers/get" (dict "scratch" $scratch "row" .Params)>: error calling partial: "/home/v/nikweb/themes/eternity/layouts/partials/helpers/get.html:19:28": execute of template failed: template: partials/helpers/get.html:19:28: executing "partials/helpers/get.html" at <resources>: can't evaluate field GetRemote in type interface {}

But the config.example.yaml seems to work.
[ Context:

Use empty content.
Copy example config.

cp ./themes/eternity/config.example.yaml ./config.yaml

]

I tried to copy the stuff inside themes/eternity/example/eternity.bora.sh/contents to the root of my hugo site folder, and make the required changes in the config.yaml (copy the menu array from project's config), it fails to build again.

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.