digitalcraftsman / hugo-cactus-theme Goto Github PK
View Code? Open in Web Editor NEWPort of Nick Balestra's Cactus theme to Hugo.
License: MIT License
Port of Nick Balestra's Cactus theme to Hugo.
License: MIT License
Please guide me on this.
Is there a problem with theme version?
It seems that 404.html does not seem to get redirected on 404's. For example, if I don't have an about page, the browser does not redirect to 404.html, but instead gives me a generic 404 - page not found
for that particular URL.
I think there is a problem with multiple sections that have the same ID: wrapper
.
Example:
profile.html
: https://github.com/digitalcraftsman/hugo-cactus-theme/blob/master/layouts/partials/profile.html#L2
index.html
: https://github.com/digitalcraftsman/hugo-cactus-theme/blob/master/layouts/index.html#L7
profile.html
is included in index.html
as a partial. Am I correct or missing something?
I really like this Theme. One thing holding me back is missing support for inline code
.
Any hints, how I could fix this?
On the homepage , Google logo shows up instead of the Github logo for the GitHub social link.
Looks like merging the dev
branch erased a previous change to layouts/partials/head.html
for loading Font Awesome from a CDN (issue #23). Since the local copy of Font Awesome is gone now, the font will not load. Hopefully no other changes that should have been kept were overwritten.
Hi,
I noticed that I can see an additional empty post with a title 'Post' and URL to http://localhost:1313/post/ ' if there is at least one post. The same thing I observe with another theme from your repository 'hugo-minimalist'. I use the last version of Hugo 0.19. I'm absolutely new in Hugo but through comparing with other themes where the issue is not observed I found out that the root of issue is in the line:
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
If it is changed to:
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
then there is a correct number of posts displayed on the home page. To be honest with you I don't know why it's that:-)
Best regards,
Igor.
Not sure if this is a problem with the theme or I am missing something. But when I add something like
they are rendered as unordered lists instead of ordered lists. Could you point me to what I might be doing wrong here ?
Hello!
$subj, when trying to run this theme against my blog source I get following:
Building sites โฆ ERROR 2018/03/20 11:48:01 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/cactus/layouts/_default/list.html:2:25: executing "profile" at <partial "profile.htm...>: error calling partial: template: theme/partials/profile.html:8:38: executing "theme/partials/profile.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 11:48:01 Error while rendering "home" in "": template: /srv/hugo/themes/cactus/layouts/index.html:2:4: executing "profile" at <partial "profile.htm...>: error calling partial: template: theme/partials/profile.html:8:38: executing "theme/partials/profile.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 11:48:02 Error while rendering "section" in "": template: /srv/hugo/themes/cactus/layouts/_default/list.html:2:25: executing "profile" at <partial "profile.htm...>: error calling partial: template: theme/partials/profile.html:8:38: executing "theme/partials/profile.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
ERROR 2018/03/20 11:48:02 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/cactus/layouts/_default/list.html:2:25: executing "profile" at <partial "profile.htm...>: error calling partial: template: theme/partials/profile.html:8:38: executing "theme/partials/profile.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
Change detected, rebuilding site
2018-03-20 12:52:33.606 +0000
Source changed "/srv/hugo/content/post/2018-03-19-lust-for-text-life.markdown": WRITE
ERROR 2018/03/20 12:52:34 Error while rendering "home" in "": template: /srv/hugo/themes/cactus/layouts/index.html:2:4: executing "profile" at <partial "profile.htm...>: error calling partial: template: theme/partials/profile.html:8:38: executing "theme/partials/profile.html" at <markdownify>: wrong number of args for markdownify: want 1 got 0
Total in 1003 ms
The reason may be some absent .Site.
parameters or something else but you can't tell it from error message, I guess input parameters handling could be improved.
Site isn't loading for me at all.
Checked the exampleSite directory and couldn't find any markdown examples that embed an image in a post. Any suggestions? ๐
Currently the subscribe link on individual posts links to the current page instead of an xml URL. The subscribe link on the homepage works as expected.
Assuming that there is an /about
page, the profile image does not load the retina version even if the screen is retina resolution.
From the console:
main.js:36 Uncaught ReferenceError: $ is not defined
Executing the retina()
function gives the following error:
> retina();
VM2733:211 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': 'img.2x' is not a valid selector.(โฆ)
EnableRSS
is used in this theme, but the Hugo uses DisableRSS
. This means the site configuration file can set both flags individually, which is awkward (and can lead to errors, like if both are true or false).
Ideally this theme would use Hugo's variable (DisableRSS
) instead of introducing a new alternative.
(And thanks for the nice port of the Cactus theme!)
Ordered lists in markdown will sometimes produce an extra <p>
tag within list items. This usually fixes the formatting issues
ol li { list-style-type:decimal; }
ul, ol { margin-left: 10px; margin-bottom: 5px; }
li { list-style-position:inside; }
li p { display: inline; }
Can we have mathjax support. I manually override the footer.html to do this, but it would be nice if it were inbuilt into the theme.
I'd like to use Pygments for server-side highlighting, but I can't seem to get it working properly. I set pygmentsUseClasses = true
and pygmentsStyle = "monokai"
, but the style doesn't seem to be applied.
Here's some example code and a screenshot of the result:
{{< highlight python >}}
class someClass(object):
def __init__(self):
self.x = 1
{{< /highlight >}}
I've poked around the theme and see that you're using Highlight.js, but since I'm not a web programmer I don't really know what to change to get Pygments to do its thing. Is Highlight.js baked into the theme that it would be impractical for me to try getting Pygments to work, or is there an easy solution that I'm not aware of?
This theme doesn't seem to support numbered lists, but uses the same bullet for all lists. Is this a bug or a design decision?
First of all, thanks a lot for this very nice theme.
I try to install it as a submodule, in order to use deployment with netlify. But it failed., i let you some output from netlify
7:44:30 PM: npm ERR! [email protected] build: gulp build
7:44:30 PM: npm ERR! Exit status 1
7:44:30 PM: npm ERR!
7:44:30 PM: npm ERR! Failed at the [email protected] build script 'gulp build'.
7:44:30 PM: npm ERR! Make sure you have the latest version of node.js and npm installed.
7:44:30 PM: npm ERR! If you do, this is most likely a problem with the victor-hugo package,
7:44:30 PM: npm ERR! not with npm itself.
All the best,
Hugues
In index.html I see, that the partial js.html is present and it contains the code with which GA should be included (https://github.com/digitalcraftsman/hugo-cactus-theme/blob/master/layouts/partials/js.html#L10), but I don't see it in my published page.
I only see these lines from js.html in my page:
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://primozk.gitlab.io/js/main.js"></script>
<script src="https://primozk.gitlab.io/js/highlight.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
I have set a googleAnalytics
value in my [params]
section of config.toml.
Am I doing something wrong?
Love the theme!
Currently, my blog has one post. However, the 'Read More' tag still shows near the end, even though there are no actual links to display.
Hi,
First off all thanks for the port of this theme, I really like its minimal design. However, the it seems to be broken for some reason. Even when you go to the demo site, all views are broken. In the main screen, the image is too big and the about link is rendered in the top left corner. When you go to a post, the content stretches to the whole screen, and all paragraphs are rendered as a link. Screen shots below. I get the exact same result when I render a page of my blog. Tried in both safari as in chrome.
Thanks!
I will like to disable the published date from some pages. This is possible from using this theme?
Some warnings are confirmed with Hugo 0.57.2 (the latest version as of 2019-09-02).
The bundled Font Awesome is not the latest release. It should be updated to include all the new icons. Alternatively, it would be better to not bundle FA at all. You could use the CDN or a git submodule.
Im a newbie to Hugo, so there might be a way to do this that I'm missing.
According to the exampleSite,
we could use hidden: true
to hide posts from the post-list.
According to the CHANGELOG.md, hidden: true
was deprecated in favor of draft: true
.
However draft: true
is not equivalent to hidden: true
, because the only way I can link to a draft page, is by enabling --buildDrafts
and as soon as I do it, all drafts are listed on the post-list.
My use case, is that I have several pages in the about section, but they are not really posts, and should not be displayed in the post-list.
โโโ config.toml
โโโ content
โย ย โโโ about
โย ย โย ย โโโ _index.md
โ โ โโโ page-1.md
โย ย โย ย โโโ page-2.md
โย ย โโโ post
โย ย โโโ post-1.md
My question is, how can I hide the about/page-1.md
and about/page-2.md
from the post-list, without hidden: true
and still be able to link to those pages, and keep draft posts unlisted?
Hey how hard would it be to switch the using Awesome Fonts for the various links/social icons? It has a lot more available. The github icon in mono in particular is pretty bad, I thought it was for Google.
Pagination: The homepage could have a long list of posts, and pagination would help with faster loads
Tags: Adding tags to each post would allow you to see the list of posts with a particular tag.
Is there any integration with AdSense?
I just fix the superscript/subscript in this theme. Please check rstudio/blogdown#260
Hi, I really like your theme, but I'm trying to find a way for a post to not show up on the front page.
I basically want hugo to generate the page/post, but I need to link to it specifically from elsewhere and not have them clog up the "main" blog and front page where they don't make sense.
Is there a way to do this? If not, is there a simple way it could be added? A parameter in the front matter like "hidden" or "suppressed" or something seems like it would work well.
I'm using your Agency theme and like it a lot. Your documentation is much much clearer than many other hugo themes, and your example sites tell me what I need to know to get things working. Thank you.
Would be nice to add Google Analytics Tracking code feature.
It would be nice to have pretty previews specified through frontmatter for each blog post.
Would it be something the theme would be interested in? It can also gracefully fallback to normal defaults if it's not specified in the frontmatter such as it is now.
I was thinking about working on this and was wondering if it was a welcomed upstream contribution.
A recent change in Hugo for v0.18 has changed how some pages are rendered. This theme's about page does not generate correctly. See also hugo issue 2802.
One sort of workaround is to have both an index.md and _index.md, that was the only way I could get something to display (both files being identical). Still, for some reason the avatar image on top does not seem to work correctly like this.
Hi,
I am looking for someone to help me with a conversion of a theme "the right way" from Jekyll to Hugo.
Would you be interested in this? Sorry to contact you like this but I couldn't find another channel to contact you on :)
Looking forward to your reply,
IG
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.