boratanrikulu / eternity

A minimalist Hugo theme designed for portfolio sites.
https://eternity.bora.sh
MIT License
237 stars 78 forks source link

How can I remove the welcome page? #2

Closed shusheaan closed 2 years ago

shusheaan commented 2 years ago

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!

boratanrikulu commented 2 years ago

Hi @shusheaan, It's good to see you like the theme!

wondering if it's possible to remove the welcome page and directly go to the work page

As I see, there's no simple way to apply it. Please consider to provide a PR about it. I'd like to support bypassing the welcome page when a config param is set.

Also, is it possible to include some text/images in work/people/etc pages between the title and the photos?

Make sense. I'll add that feature.

boratanrikulu commented 2 years ago

Also, is it possible to include some text/images in work/people/etc pages between the title and the photos?

Is something like below okay for your case? It's same component used in post pages.

Screen Shot 2022-09-18 at 16 38 41

shusheaan commented 2 years ago

Hi @boratanrikulu, thanks for your reply. Yes this markdown support between the title and the gallery looks perfect - I find it useful to have some text or cover to serve as an introduction to the page.

I will try to see if I can come up with a param to go around the welcome page

pokemaster974 commented 2 years ago

You can have your custom index.html into your layout directory with a code like this :

<head>
  <meta http-equiv="refresh" content="0; URL={{ relref . .Site.Params.Homepage }}" />
</head>

but obviously it will break all new changes into the original repo. I have not the skills to made better than this solution (ie : to let the user choose between if he wants the welcome page or not)

I'm interested also about text between the tags and the pictures.

boratanrikulu commented 2 years ago

@pokemaster974 Seems it's okay. I may add it to the theme.

boratanrikulu commented 2 years ago

I added it. Via 1.3.0 version, it's possible to bypass welcomepage with using bypassWelcomePage variable in config.yaml. Thanks @pokemaster974.

params:
  bypassWelcomePage: true
pokemaster974 commented 2 years ago

I can confirm it's working with bypassWelcomePage: true added into my config file, @shusheaan Thanks for the PR @boratanrikulu !