digitalcraftsman / hugo-agency-theme

Port of Startbootstrap's Agency theme to Hugo
http://themes.gohugo.io/theme/agency/
Apache License 2.0
160 stars 137 forks source link

Best way to add disclaimer / impress #72

Closed anoehre closed 5 years ago

anoehre commented 7 years ago

What is the best way to add an extra page for additional content like a disclaimer or an impress?

stp-ip commented 7 years ago

Will be available within the dev branch. You then just use prost/prepend in the menu and add your content file. When I finish the dev changes and update some documentation, I'll update the issue here.

Might take a bit as I have a huge backlog from being on vacation.

anoehre commented 7 years ago

Yeah! Great to hear. Thanks for your support and the good work.

unclesamwk commented 7 years ago

Hello,

is this feature also live?

greetings sam

stp-ip commented 7 years ago

It's only available via the dev branch right now. Hope I can continue work on it with the latest features coming out of Hugo. It's just not that easy to have multiple files produce a single page website.

For more information see https://discuss.gohugo.io/t/single-page-with-nested-content/2645 and https://discuss.gohugo.io/t/homepage-content-from-content-home-md/54/21

unclesamwk commented 7 years ago

Where can i send paypal donation :-) ??? Please finish this work.

stp-ip commented 7 years ago

@unclesamwk Next time I have to work on it is mid June. That's when I want to push it into a production state. No clear completion ETA, but I haven't forgotten.

Thanks for proposing a donation, but let's first finish the work.

rwieruch commented 6 years ago

Hello there. Thank you for this awesome theme! Is there any update regarding the possibility to add another page? I want to use

[[params.footer.quicklinks]]
  text = "Impress"
  link = "/impress"

But when I add a impress.md in content/ it doesn't show up. Thanks for your help!

stp-ip commented 6 years ago

We decided to do the major rework changes within a new theme: github.com/okkur/syna, to reduce breaking changes within this theme. A few things might be backported, but no ETA for that.

Syna is currently going through a last big change from data files to page bundles, but after that it should be quite stable.

rwieruch commented 6 years ago

Ah okay. You are doing great work there! Any chance that you know how to get a separate page running with the agency theme? Unfortunately I thought creating a file such as content/impress.md should be sufficient, but it wasn't. Otherwise I could just link to an external Impress site.

stp-ip commented 6 years ago

You can manually patch the agency theme. Add the _default folder + contents from the dev branch to layouts within your site (that helps to overwrite the main theme): https://github.com/digitalcraftsman/hugo-agency-theme/tree/dev/layouts/_default. This should enable single pages as you did.

rwieruch commented 6 years ago

Thanks it worked! I had to copy the layouts/partials/single.html too.

stp-ip commented 6 years ago

Yeah forgot to mention that. We already split up the single page into a partial in our WIP dev branch. Will see what makes sense in terms of bringing back some solutions to agency from syna. Unfortunately time is always limited. Great that it worked.

stp-ip commented 5 years ago

As hugo-agency-theme is mostly in maintenance mode and no new features will be added. We created Syna as a more flexible iteration of this theme.

Syna does support adding a content fragment to implement this.