jeblister / kube Goto Github PK
View Code? Open in Web Editor NEWKube is a professional and a responsive Hugo theme for developers and designers that offers a documentation section mixed with a landing page and a blog.
License: MIT License
Kube is a professional and a responsive Hugo theme for developers and designers that offers a documentation section mixed with a landing page and a blog.
License: MIT License
Hi,
The blog posts are blank, I can see the content in the .md files but they don't render, (not even on your demo site).
Please add the option to make the navbar sticky, or make it default.
Thanks!
$ cd exampleSite/
$ hugo --themesDir=../..
Start building sites …
hugo v0.96.0+extended linux/amd64 BuildDate=unknown VendorInfo=debian:0.96.0-1+b1
ERROR 2022/05/09 10:55:45 render of "page" failed: "<<PROJECT>>/themes/kube/layouts/_default/baseof.html:5:10": execute of template failed: template: _default/single.html:5:10: executing "_default/single.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
[...]
Total in 39 ms
$
Fixing the .Hugo.Generator
gives another error:
Start building sites …
hugo v0.96.0+extended linux/amd64 BuildDate=unknown VendorInfo=debian:0.96.0-1+b1
ERROR 2022/05/09 11:03:40 render of "page" failed: "<<PROJECT>>/themes/kube/layouts/_default/baseof.html:28:8": execute of template failed: template: _default/single.html:28:8: executing "_default/single.html" at <.RSSLink>: can't evaluate field RSSLink in type *hugolib.pageState
[...]
Total in 83 ms
This increases the size of every page and makes it harder for the browser to cache the icon. What's the rationale behind this?
When creating a new documentation item, I get the following warning:
WARNING: date and/or title missing from archetype file "/home/brylie/code/MaaS/maas-api-hugo/archetypes/docs.md".
From Hugo 0.24 this must be provided in the archetype file itself, if needed. Example:
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---
Hi, I've been trying to use / override single.html
but it always render from _default/single.html
. Did i miss something?
i create a menu like this in config.toml
:
[[menu.main]]
name = "Download"
weight = -100
url = "/download/"
under project name/layouts
, create folder download
and download/single.html
single.html
is similar like other template:
{{ define "title"}} {{ .Title}} {{end}}
{{ define "header"}} {{ partial "header" .}} {{ end }}
{{ define main }}
<div id="main">
<div class="row">
<div class="col col-6">
<img src="/img/download.png"/>
</div>
<div class="col col-6">
<h1>{{.Title}}</h1>
<p>{{.Description}}</p>
<h2>hskcjd</h2>
</div>
</div>
</div>
{{ end }}
{{ define "footer"}} {{ partial "footer" .}} {{end}}
under project name/content/download.md
+++
title = "Download"
description = "The sky is the limit only for those who aren't afraid to fly!"
draft = false
+++
Thanks for helping!
I am loving this theme! You can see how I'm using it in https://scalacenter.github.io/bloop/. Thanks for the work that has gone into this 😄
Now, I'm trying to modify the theme to add heading anchors for every title in a doc page. I'd like to know if you've already thought about this use case and you know a way to have it without implementing it from scratch.
Nav items: blog, faq, docs are not pulling through on the nav bar.
blog/single.html contains a box which talks about "Redactor, Grafs and Kube". I can obviously delete this, but I feel like this shouldn't be in the theme if it's for general use?
Hi
I have included a google analytics code in config.toml, as it is indicated in the documentation:
[params.seo.webmaster_verifications]
google = "UA-mygooglecode-X" # Optional, Google verification code
but it is not working. I have checked that no code has been generated in the public folder files that include the Google verification code. There is no google analytics javascript code as well.
I have checked that the google code is correct, and it works if I manually included the code.
Thank you very much in advance.
Best
have to scroll to top always. by intention ???
Maybe it's interesting to apply this issue jeblister/bulma#2 here? I'll try to help you if you kick it off.
Hi
Love the theme.
I plan on offering free events to my community and this theme would be perfect if I could change docs - events. Is this possible? If I changed:
Front Matter Folder - Docs to Events
Sections - Docs to Events
Config - Main Menu: Docs to Events
If I changed these, would it work? Apologies if this question is a little elementary. My ultimate goal is instead of offering docs, on the docs page, offering events.
Thanks for building Kube!
The page on Hugo themes mentions a "404 page : 404 page with animated background" - yet I can't really find it in the code, or on the example website.
I was wondering if you had any plan or recommendation to build such a page.
Thanks.
I'm getting this error: "theme/partials/header.html" at <.Permalink>: can't evaluate field Permalink in type *hugolib.MenuEntry
When trying to utilize the extra nav:
[[menu.extra]]
name = "Contact"
permalink = "something"
Looks like Hugo doesn't support the permalink field?
Switching it in the theme's header.html
from
<a href="{{ .Permalink }}">{{ .Name }}</a>
to
<a href="{{ .URL }}">{{ .Name }}</a>
to match the main menu nav works.
I'm super new to Hugo so I'm not sure if that's the actual correct fix or not. But if you want a PR for it I can make it.
At the moment there is an empty master.js
file included on all pages. Is this meant to be here? It appears to be blank?
I noticed that on my tablet (Asus Zenpad with 2048x1536 resolution) in portrait mode the navigation menu doesn't appear. In landscape mode it's fine. I am able to replicate it on my desktop browser by getting the window width just right (I would assume 1536) where neither the regular menu nor the hamburger/mobile menu will appear. It does not appear to be browser specific.
I discovered this on my own site using the kube theme, but can replicate it at the demo site here: https://kube.elemnts.org/
Thanks!
I am unable to figure out how to link to locally stored .html files from the theme. I successfully created a new blog post under docs and on clicking on it I am able to view the related text. I also added a hyperlink to that same .md file (under docs folder) but the website is unable to render it. It shows 404 not found error. However, I have ensured that the .html file exists in the specified location and the path to the .html file is also correct. How do I fix this?
Hi,
By using the public folder to upload the page to GitHub pages, the CSS, images, and js resources are not loading completely.
You could check it out (by now) on https://ceduquey.github.io/pruebaKube/
I'm still checking where the error could come from, i'm opening the issue by now!
I'm not sure if this is a bug (so apologies in advance if I'm missing something), but it seems like some functions like Toggleme don't work on my served hugo site loaded with the Kube theme. I test this by copying over the example site and loading http://localhost:1313/docs/toggleme/. I'm not seeing anything happening in the console either.
It seems to work on the 'normal' Kube site, here: https://imperavi.com/kube/docs/toggleme/.
Hi, very nice template! A quick question, to modify the landing page do I need to edit directly the HTML code in the theme?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.