mitrichius / hugo-theme-anubis Goto Github PK
View Code? Open in Web Editor NEWAnubis is a simple minimalist theme for Hugo blog engine
Home Page: https://hugo-theme-anubis.netlify.app/
License: MIT License
Anubis is a simple minimalist theme for Hugo blog engine
Home Page: https://hugo-theme-anubis.netlify.app/
License: MIT License
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?
github, twitter, etc
like footer
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.
It would be nice if Anubis included the content from _index.md at the top of the homepage similar to https://gohugo.io/templates/homepage/#add-content-and-front-matter-to-the-homepage .
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.
long menu, font sized, etc...
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
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
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
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.
It can't express right at github site page service,especially for about file and post files ,seems hugo service can't generate that.
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/
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?
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.
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?
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.
At least for GA
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.
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.
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.
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
Hi,
please add a "Read more" link to the post's preview.
It's already in your source, but commented out 😏
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.
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.