GithubHelp home page GithubHelp logo

bul-ikana / hugo-cards Goto Github PK

View Code? Open in Web Editor NEW
74.0 74.0 64.0 686 KB

A bootstrap based minimal hugo theme based on webjeda-cards

Home Page: https://hugo-cards-site.netlify.com/

License: MIT License

HTML 10.81% SCSS 89.15% CSS 0.04%
hacktoberfest hugo-theme

hugo-cards's Introduction

Hi, I'm Hugo 🐱‍💻.

image

I am a full-stack software developer, engineer, and craftsman from Puebla, Mexico. I have been developing software professionally since 2009 and some years before that as a hobby. Lately, I've been specializing in web development, but I also like to be involved in both game development and game design.

Feel free to look at my repositories to see the random stuff I may be currently working on. You can also take a look at my portfolio to see some highlights.


                   

hugo-cards's People

Contributors

balasundaram avatar bul-ikana avatar marzal avatar monaka avatar nonumeros avatar osjupiter avatar saper 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

Watchers

 avatar  avatar  avatar  avatar

hugo-cards's Issues

Support for Tags

In the partials/list.html I added the following

<div class="panel-footer">
            <small class="text-muted">
              {{ if gt .Params.tags 0 }}
              {{ range .Params.tags }}
              <a href="{{ "/tags/" | relURL }}{{ . | urlize }}" class="badge badge-primary"><span>{{ . }}</span></a>
              {{ end }}
              {{ end }}
            </small>
          </div>

All the tags are displayed but on clicking the tags all the posts are shown, no filtering is done.

Added the tags, in the sidebar as well, similar story.

Lack of Search Function

The default theme does not appear to include a search function. Is there a way to add search?

SEO code produces invalid JSON-LD

Using hugo-0.61.0

Google webmaster tools complain about the default JSON-LD entry on a home page:

{ 
  "@context": "http://schema.org", 
  "@type": "WebSite", 
  "url": "https:\/\/odpal.dajznak.pl\/", 
  "name": "Daj znak!",
   "author": {
      "@type": "Person",
      "name": ""
    },
  "description": "",
}

The errors is in the line with description - there is a trailing comma.

jq commands reports:

> jq -M .
parse error: Expected another key-value pair at line 11, column 1

On the page JSON-LD there are other issues as well:

{ 
    "@context": "http://schema.org", 
    "@type": "BlogPosting",
    "headline": "Polki nagrodzone!",
    "genre": "",  
    "url": "https:\/\/odpal.dajznak.pl\/posts\/polki-nagrodzone\/",
    "datePublished": "2019-11-22 21:00:00 \x2b0000 UTC",
    "description": "Piękny wieczór we frankfurckim Ratuszu - dziś Rada Obcokrajowców KAV przyznała nagrody wybitnym osobowościom obcego pochodzenia.\n",
    "author": {
        "@type": "Person",
        "name": ""
    }
 }

date has strange quote \x2b0000 and there is unescaped UTF-8 ("Piękny").

> jq -M .
parse error: Invalid escape at line 7, column 55

We should not assume all images come from /images

It seems that it is not possible to use Hugo's image processing or page resources features because this theme seems to hardcode .../images/... path in few places:

  • {{ if .Params.img }}
    <img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
    {{ else }}
    <img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
    {{ end }}

  • {{ if .Params.img }}
    <img width="600" src="{{ .Site.BaseURL}}images/{{ .Params.img }}" alt="{{ .Params.title }}">
    {{ else }}
    <img width="600" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="webjeda">
    {{ end }}

can't run example site

Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:4:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/head.html:7:2: executing "partials/head.html" at <partial "seo.html" .>: error calling partial:
"/partials/seo.html:
execute of template failed: template: partials/seo.html
executing "partials/seo.html" at <.Params.categories>: range can't iterate over one

how to use the analytics parameter?

What should the analytics parameter be set to in order to enable google analytics? Is it expecting the tracking ID or a full gtag.js snippet?

Error building site: failed to render pages: render of "page" failed: execute of template failed

I am trying to create a new website with default content but am getting following error after running blogdown::serve_site():

Launching the server via the command:
/Users/bahmanrostami-tabar/Library/Application Support/Hugo/0.80.0/hugo server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-cards -D -F --navigateToChanged
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: pages/single.html:4:5: executing "pages/single.html" at <partial "head.html" .>: error calling partial: "/Users/bahmanrostami-tabar/Documents/3.Teaching websites/test/themes/hugo-cards/layouts/partials/head.html:12:14": execute of template failed: template: partials/head.html:12:14: executing "partials/head.html" at <.Site.Params.custom_css>: range can't iterate over css/custom.css

blogdown::hugo_version()
[1] ‘0.80.0’

packageVersion("blogdown")
[1] ‘1.3’

Change number of posts on the main page

Is there any way to change the number of posts that display per page on the homepage so that it shows 12 per page instead of 10? I have been editing the /layouts/_default/list.html file in my implementation of the theme a bit but can't find anything on there that suggests I can change this.

Thanks a lot

Missing title tag and seo code

thanks for providing nice theme!
I found that this theme miss a title tag and some codes for seo.

I think title tag and some seo codes should be contained in themes for blogging.

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.