Comments (8)
I will change the post template to work for all single pages. That way, renaming content/license.md to content/license/index.md will solve the issue. Thank you for bringing this to my attention.
from aether.
Since aether uses the Hugo concept of Page Bundles, only articles named index.md in a leaf will include the featured image. Page Resources can only be accessed from within these Leaf Bundles so I cannot make any changes to support this content hierarchy. Let me know if you run into any trouble correcting this issue in your site or if you have any other questions.
from aether.
Hmm... Even though I submitted couple of PR's my knowledge of Hugo is only superficial, so I am not confident making design suggestions... The old way of using featuredImage worked. I am curious, is there a way to have separate layout/template for non-resource-bundle pages? Maybe continue using featuredImage there, or find some other way to add images to them.
The main reason I ask is that using the old way, I was able to control URL of some of the better known pages, like
www.xxx.com/license
www.xxx.com/download
and similar. Now they lose images. I tried renaming content/license.md to content/license/index.md, but that causes a warning in Hugo:
WARN 2019/08/09 05:24:44 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
and I get empty home page (no heading or anything).
The only way to make it work with images I found was to put the page into content/post/license/index.md
. But this changes the url to www.xxx.com/post/license
.
Can you make any recommendation how to get any posts specific url, like www.xxx.com/license? I do not mind digging some if you can point me in the right direction.
from aether.
Hi Joseph. No (big) rush on this, but I am curious if you could make a guess at when you might fix this? I am trying to decide if I should wait few days or if I should go to the older version of Aether. I cannot update my site with latest code without breaking something.
from aether.
Sorry for the delay @mikijov. I misunderstood your issue so the fix I had in mind would not work. I think the issue may be in your site layout. Do you have your site source somewhere I could take a look? Renaming 'content/license.md' to 'content/license/index.md' should solve your issue and you should not get that warning.
from aether.
It's a private repo at https://bitbucket.org/mikijov/haker-site. If you have an account there I can give you access.
from aether.
OK, I reproduced the problem on a new site. I simply created new Hugo site hugo new site aether-test
, added theme git clone https://github.com/josephhutch/aether.git themes/aether
and added single content page in content/intro/index.md
with an image content/intro/wopr.jpg
. The result site is attached.
aether-test.tar.gz
When launching with hugo server
, I get this:
Building sites … WARN 2019/08/14 03:46:18 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/08/14 03:46:18 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/08/14 03:46:18 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
| EN
+------------------+----+
Pages | 3
Paginator pages | 0
Non-page files | 0
Static files | 0
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 20 ms
Watching for config changes in
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
and the localhost:1313
is empty. This is the main problem now. However localhost:1313/intro
properly renders the content page.
from aether.
Thanks @josephhutch. Your latest commit fixes my problem, so top level content pages work /content/page-name/index.md
.
from aether.
Related Issues (20)
- cannot use static images for card image HOT 2
- Add support for self hosting external js libraries. HOT 1
- Workaround for rel="alternate" due to google podcasts rule HOT 9
- Category page not found HOT 4
- featured image for a post not working HOT 2
- How do ichange the color of certain text, html tags dont seem to work HOT 5
- I get this error whe i try to use short codes for images
- Add icon on title bar HOT 3
- Featured Image without Page Bundles HOT 3
- Add Dark Mode HOT 2
- bgimg not working HOT 2
- Render fails if no "bgimg" setting HOT 1
- Link in post summary breaks layout in list HOT 5
- Footer partial template not used anywhere HOT 1
- GitHub/Linkedin links should have alt text HOT 1
- add theme as submodule HOT 1
- Navigation menu broken when JavaScript is disabled HOT 1
- Faceshot not shown HOT 3
- How do you change the home-blob-text and home-blob-title parameters? Maybe add a way in the config.toml file? HOT 2
- Is it possible to change the blob colors? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aether.