Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organizing content in subfolders breaks my custom theme #39

Open
ccamara opened this issue May 24, 2019 · 2 comments
Open

Organizing content in subfolders breaks my custom theme #39

ccamara opened this issue May 24, 2019 · 2 comments

Comments

@ccamara
Copy link
Contributor

ccamara commented May 24, 2019

I would like to use a single reveal-hugo instance to put all my slides. Therefore, I would like to group slides from my job1, job2, association and personal slides. I though of creating a structure like this:

content
├── job1
│   ├── presentation1
│   │    ├── page.md
│   │    └── _index.md
│   └── presentation2
│         └── _index.md
└── personal
    ├── presentation2
    │    └── _index.md
    └── presentation2
          └── _index.md

While IMHO this makes much sense because I can apply different partials per purpose, I noticed that my custom scss theme was not applying for content in content/job1/presentation1/page.md.

I am wondering if my approach makes sense and/or if there is a way to overcome the described problem.

@joshed-io
Copy link
Owner

The relative path to the custom theme may need to be different for presentations that are nested in sections.

Can you share the front matter where you're setting up the custom theme?

@ccamara
Copy link
Contributor Author

ccamara commented Jun 10, 2019

Sure! Here it is /content/folder/subfolder/_index.md:

+++
title = "My awesome title"
description = ""
outputs = ["Reveal"]


[reveal_hugo]
custom_theme = "my-custom-theme.scss"
custom_theme_compile = true
plugins = ["plugin/gallery/gallery.plugin.js"]

+++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants