Coder Social home page Coder Social logo

mitrichius / hugo-theme-anubis Goto Github PK

View Code? Open in Web Editor NEW
404.0 9.0 147.0 803 KB

Anubis is a simple minimalist theme for Hugo blog engine

Home Page: https://hugo-theme-anubis.netlify.app/

License: MIT License

HTML 63.44% CSS 31.32% JavaScript 5.24%

hugo-theme-anubis's Issues

Google Analytics

Hey,
you've create a great theme.
I have one question though - I'm trying to setup Google Analytics in the config, I pasted the the code, starting with UA-<number>. Unfortunately, it doesn't work. Should I do anything else?

Accessibility Additions

Hi! Thanks for the theme - I've been adapting it for my purposes, and thought I'd share a couple of the changes I made for accessibility:

Added a skip link that is only visible to screen readers or when you tab to it

changes to baseof.html:

<body>
<a class="skip-main" href="#main">Skip to main content</a> <!-- added skip link at very top-->
    <div class="container">
        <header> 
            {{ block "header" . }}
                {{ partial "header.html" . }}
            {{ end }}
        </header>
        <main id="main" tabindex="-1"> <!-- added target for skip link and tabindex -->
            {{ block "main" . }}{{ end }}
        </main>

changes to styles.css:

a.skip-main {
    left:-999px;
    position:absolute;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
    z-index:-999;
}
a.skip-main:focus, 
a.skip-main:active {
    left: auto;
    top: 0px;
    width: auto;
    height: auto;
    overflow:auto;
    z-index:999;
    padding: 4px 6px 4px 6px;
    color: #ffffff;
    text-decoration: underline;
    border: none;
    background: #871d6a;
}
main {
    outline:none;
}

(Look of focus and active varies based on theme; this is just what matches the changes I've made.)

Added lang to html for screen readers
changes to baseof.html:

<html lang="{{ .Site.LanguageCode }}">

I also made the links in the footer open in the same window, since opening links in a new window is less accessible, and made various changes to link styling (making hover/active links more visible and underlining all links so they are not just denoted by color). But those are more specific to a particular implementation of a theme.

Make google font optional

Hello,

I'm using your great theme, thanks!

the only modification I have left now is that I drop the Google font import (I'm sure this specific font is great for some reasons, but I'm not very comfortable of having google tracking everything on the web, my website included). It's not a lot, but I still need to rebase it regularly :)

Do you think a theme parameter could be added to make it optional (like noGoogleFont, which would be false by default so people would still get it by default)

I'm happy to try to make the PR if you are interested.

Custom Css

I'm trying to activate my custom css but i have this error:

Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:5:11: executing "head" at <partial "head.html" .>: error calling partial: "D:\Projetos\teste-1\themes\anubis\layouts\partials\head.html:19:14": execute of template failed: template: partials/head.html:19:14: executing "partials/head.html" at <.Site.Params.customCSS>: range can't iterate over css/my.css

My config.toml:
[params] author = "Dmitry Kolosov" description = "Anubis is a simple minimalist theme for Hugo blog engine." customCSS = "css/my.css"

I tried to save my css files in different ways, such:

root
  | - css
  |   | - my.css

or

root
| - static
|  | - css
|  |  | - my.css

hugo version: Hugo Static Site Generator v0.71.1-A301F6B2 windows/amd64 BuildDate: 2020-05-25T09:12:07Z

Deploy problem

Hi all, I have installed theme and in locally if I launch

hugo server

It works all fine.
Now I would like to deploy my site with github following the hugo documentation.
this is my deploy script:

#!/bin/bash

echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"

# Build the project.
hugo -t anubis # if using a theme, replace with `hugo -t hugo-nuo`

# Go To Public folder
cd public
# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site `date`"
if [ $# -eq 1 ]
  then msg="$1"
fi
git commit -m "$msg"

# Push source and build repos.
git push origin master

# Come Back up to the Project Root
cd ..

homepage works fine but pages videos and post don't have css style.
Do you know why?

this is the URL:
My site

Thanks

Error on building

Building sites … ERROR 2020/05/15 12:23:32 render of "section" failed: execute of template failed: template: _default/list.html:15:15: executing "main" at <partial "articleInfo...>: error calling partial: "/home/huzaifahj29/quickstart/themes/anubis/layouts/partials/articleInfoFull.html:3:44": execute of template failed: template: partials/articleInfoFull.html:3:44: executing "partials/articleInfoFull.html" at <.Params.date.format>: can't evaluate field format in type interface {}

I'm getting this. I've just set up a quickstart Hugo project, and activated Anubis as the theme in the .yaml. I've done nothing else so I'm unsure what happened

Scrollbars in code blocks.

Liked your theme and want to make it better.
If you replace overflow: scroll to overflow: auto for pre then those ugly scrollbars would be visible only when they are needed.

It makes the look even more minimal.

github site error

It can't express right at github site page service,especially for about file and post files ,seems hugo service can't generate that.

Links to categories are not correct

Hi,

the links to categories apparantly are not correct. E.g.:
http://localhost:1313/categories/Ale
http://localhost:1313/categories/Red%20Ale

But actually they should be:
http://localhost:1313/categories/ale/
http://localhost:1313/categories/red-ale/

Issue with images when baseUrl has a path

I have set my baseUrl to be: https:example.com/test
This works fine for posts. But for the images under in any post, it still looks for the static repository without the "test".
For example, if I have an image file image.jpg located in the static repository, I can access it using example.com/test/image.jpg. But in the post, the URL is expanded as: example.com/test/image.jpg

Am I missing some setting?

Please add a footer menu

Hi,

in EU it is mandatory for a website to have a imprint page and a privacy policy page. These pages must be reachable by a link, but not necessarily from the main menu. Therefore most websites place these links in the footer.

So please add a footer menu to do the same.

Where is the RSS?

I'm sure I'm going something stupid, but I can't find the RSS feed. In my production site it states it is at: https://www.brandonbohling.com/rss/, but it is not. Looking into the layouts/_default I see the rss.xml template.

What am I missing?

Shift From rnd Unix Now to a Hashing Algorithm

Currently, this theme uses many unix.now's to fool browsers into refreshing their cache. This has the unfortunate downside of changing every html file in a built website after every build. Maybe we can use resources.Fingerprint and Data.Integrity instead. Then, not every html file would be changed after each build.

Unable to transform style.css, resource not found in file cache

Commit db7e625 causes Hugo to error out with

Total in 37 ms
Error: Error building site: TOCSS: failed to transform "css/style.css" (text/css): resource "css/css/main.css_b5616ad8043936b93a403785b10b2b88" not found in file cache

printed to the console. Rolling back to the previous commit, 9e524ff, resolves the issue. In case it's helpful, the repository I'm using Anubis in is https://github.com/TheDocTrier/disjoint-union.

Side note: I saw that my previous issue #63 was just fixed (thank you!) in the latest merge, so I decided to try it out.

Add Margin to Bottom of Theme Switcher

When viewing a site on mobile devices, the theme switcher will move below the copyright div. However, the theme switcher has no margin-bottom and so touches the bottom of the screen. I think it would look better if there was 1em of margin (the same margin as is on the right of the theme switcher) below it. I'll make a small pull request for the proposed change.

Before:
image

After:
image

Incorrect Rendering of Mardown Features that Require Tags

Hi,

First, great theme! Thanks for making this.

Now, I noticed that in the demo site, the other elements section of the Markdown Syntax Introduction article doesn't render properly. In my browser, the text just renders as plain content text. I observe the same problem in my personal website running Anubis. I know this isn't purely a browser issue because the elements do render with the correct formatting when I use or demo other themes. Do you have the same problem?

I'm very new to Hugo, so I have no idea what might cause this. But I'll try to look into it and let you know if I find anything.

Missing _internal file

Hi! I have downloaded now for the first time, after launching hugo server, the terminal return this error:
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:5:11: executing "head" at <partial "head.html" .>: error calling partial: execute of template failed: template: _internal/opengraph.html:41:17: executing "_internal/opengraph.html" at <index $siteSeries $name>: error calling index: index of untyped nil

Submenu problem

Submenus do not build in Hugo when included in front matter of submenu documents: Hugo throws errors of duplicate identifier entries when building site.

I was able to build locally in spite of the errors but Netlify will not deploy with the same Hugo version (0.72.0) as environment.

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.