Coder Social home page Coder Social logo

hugo-cactus-theme's People

Contributors

alanef avatar bep avatar brianhicks avatar digitalcraftsman avatar hizkifw avatar jacobwardio avatar kujohn avatar loganwedwards avatar mgurov avatar npmccallum avatar rwanyoike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hugo-cactus-theme's Issues

404 does not get redirected

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.

font-awesome.min.css

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.

An empty post with a title 'Posts'

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.

Ordered lists not properly rendered

Not sure if this is a problem with the theme or I am missing something. But when I add something like

  1. First para
  2. Second Para

they are rendered as unordered lists instead of ordered lists. Could you point me to what I might be doing wrong here ?

Errors on site without expected parameters set

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.

Behavior of subscribe link on posts

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.

Retina image does not load on the /about page

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.(โ€ฆ)

Hugo's DisableRSS should be used instead of EnableRSS

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!)

Formatting for ordered lists

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; }

Server-side syntax highlighting?

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 >}}

syntax-highlighting-error

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?

Numbered lists?

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?

Failed to deploy with Netlify

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

Google analytics code is not present on my rendered page

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?

Theme seems broken

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!

screen shot 2016-01-02 at 21 49 15

screen shot 2016-01-02 at 21 49 35

Deprecations as of Hugo 0.57.2

Some warnings are confirmed with Hugo 0.57.2 (the latest version as of 2019-09-02).

  • WARN 2019/09/02 03:50:09 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
  • WARN 2019/09/02 03:50:09 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.

Update Font Awesome

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.

Alternatives to `hidden: true`

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?

Awesome Fonts?

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.

Idea for feature

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.

Suppress pages from front page

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.

Open Graph Tags

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.

about page does not render

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.

Conversion from Jekyll to Hugo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.