digitalcraftsman / hugo-icarus-theme Goto Github PK
View Code? Open in Web Editor NEWPort of Ruipeng Zhang's Hexo theme Icarus to Hugo.
License: MIT License
Port of Ruipeng Zhang's Hexo theme Icarus to Hugo.
License: MIT License
Hi, lovely theme.
Its all looking good save when I have enough posts to trigger pagination, in which case I get this error when building the site:
Started building site
ERROR: 2017/01/15 06:43:32 template.go:131: template: theme/partials/pagination.html:9:73: executing "theme/partials/pagination.html" at <absURL>: wrong type for value; expected string; got template.HTML in theme/partials/pagination.html
ERROR: 2017/01/15 06:43:32 template.go:131: template: theme/partials/pagination.html:4:73: executing "theme/partials/pagination.html" at <absURL>: wrong type for value; expected string; got template.HTML in theme/partials/pagination.html
ERROR: 2017/01/15 06:43:32 template.go:131: template: theme/partials/pagination.html:9:73: executing "theme/partials/pagination.html" at <absURL>: wrong type for value; expected string; got template.HTML in theme/partials/pagination.html
ERROR: 2017/01/15 06:43:32 template.go:131: template: theme/partials/pagination.html:4:73: executing "theme/partials/pagination.html" at <absURL>: wrong type for value; expected string; got template.HTML in theme/partials/pagination.html
Looking in the template it seems the .Paginator.Prev.URL
and .Paginator.NextURL
are not found:
<nav id="page-nav">
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
{{ if .Paginator.HasPrev }}
<a class="extend prev" rel="prev" href="{{ .Paginator.Prev.URL | absURL }}">
« {{ with .Site.Data.l10n.pagination.previous }}{{ . }}{{ end }}
</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="extend next" rel="next" href="{{ .Paginator.Next.URL | absURL }}">
{{ with .Site.Data.l10n.pagination.next }}{{ . }}{{ end }} »
</a>
{{ end }}
{{ end }}
</nav>
which produces the following HTML breaking layout:
nav id="page-nav">
<a class="extend next" rel="next" href="
</section>
I'm new to Hugo so think I could be missing something obvious, but any help appreciated :)
Hi,
Using the Icarus theme with pagination set at the default 10. At the bottom of the page the link generated for the next page is of the form neavey.net//page/1/, note the //. This confuses S3, where my site is hosted and I get a 404. Manually deleting the superfluous / causes the page to load as expected.
To recreate go to https://neavey.net, scroll to the bottom and click Next.
I checked out a copy of the theme, changed to the example site directory, checked out another copy of the theme, and started the server. I then ran wget in spider mode against the server, and it failed.
jmt@nala:~$ mkdir pie
jmt@nala:~$ cd pie
jmt@nala:~/pie$ git clone https://github.com/digitalcraftsman/hugo-icarus-theme.git
Cloning into 'hugo-icarus-theme'...
remote: Counting objects: 790, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 790 (delta 0), reused 0 (delta 0), pack-reused 783
Receiving objects: 100% (790/790), 2.30 MiB | 2.33 MiB/s, done.
Resolving deltas: 100% (490/490), done.
Checking connectivity... done.
jmt@nala:~/pie$ cd hugo-icarus-theme/
(master=) jmt@nala:~/pie/hugo-icarus-theme$ cd exampleSite/
(master=) jmt@nala:~/pie/hugo-icarus-theme/exampleSite$ mkdir themes
(master=) jmt@nala:~/pie/hugo-icarus-theme/exampleSite$ cd themes
(master=) jmt@nala:~/pie/hugo-icarus-theme/exampleSite/themes$ !git
git clone https://github.com/digitalcraftsman/hugo-icarus-theme.git
Cloning into 'hugo-icarus-theme'...
remote: Counting objects: 790, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 790 (delta 0), reused 0 (delta 0), pack-reused 783
Receiving objects: 100% (790/790), 2.30 MiB | 1.43 MiB/s, done.
Resolving deltas: 100% (490/490), done.
Checking connectivity... done.
(master=) jmt@nala:~/pie/hugo-icarus-theme/exampleSite/themes$ cd ../..
(master=) jmt@nala:~/pie/hugo-icarus-theme$ cd exampleSite/
(master=) jmt@nala:~/pie/hugo-icarus-theme/exampleSite$ hugo server
0 draft content
0 future content
6 pages created
0 non-page files copied
14 paginator pages created
7 tags created
5 categories created
in 162 ms
Watching for changes in /home/jmt/pie/hugo-icarus-theme/exampleSite/{data,content,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
In another window:
jmt@nala:~$ wget --spider -e robots=off -r -p http://localhost:1313
Spider mode enabled. Check if remote file exists.
... many lines of output elided ...
Found 9 broken links.
http://localhost:1313/tags/index.xml
http://localhost:1313/overview/configuration/
http://localhost:1313/overview/installing/
http://localhost:1313/doc/shortcodes/
http://localhost:1313/layout/functions
http://localhost:1313/categories/index.xml
http://localhost:1313/content/front-matter
http://localhost:1313/layout/variables
http://localhost:1313/layout/templates/
FINISHED --2016-09-02 20:56:52--
Total wall clock time: 0.2s
Downloaded: 27 files, 795K in 0.001s (724 MB/s)
jmt@nala:~$
Normally, I wouldn't care -- but the spider test also fails for me when I try to use this theme in production, with the two "index.xml" files missing. Help!
It would be nice to have support for custom pages like say a page for disclaimer or about me. This page should not have discuss enabled and may be not even the side bars
When i run the site with this theme and see the homepage, syntax highlighting is not working, but when i open the post with permalink, it looks great.
When accessing the site, there's an alert on the console:
'results' attribute is deprecated and will be removed in M53, around September 2016. See https://www.chromestatus.com/features/5738199536107520 for more details.
Will this break something? Any workaround?
In the homepage {{.Title}}
is equal to {{.Site.Title}}
, so in the <head>
is present twice.
I want to post code using this template. Does it support syntax highlighting?
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.
Hey,
love the theme.
However, the nice little up-arrow that should be shown when you scroll down, is always shown if the page doesn't have a scrollbar.
This is mildly annoying. Unfortunately I couldn't find the file where it is added.
Best regards,
Stefan
As announced here: https://www.mathjax.org/cdn-shutting-down/
MathJax requires update to new CDN. Affects footer_js.html
Also:
Note If you have been using https://cdn.mathjax.org/mathjax/latest/, we suggest to switch to a fixed version going forward as this represents best practices to avoid unexpected changes."
The logic to delimit multiple tags with a separator can be simplified with Hugo v0.15:
{{ delimit (slice "foo" "bar" "buzz") ", " }}
<!-- returns the string "foo, bar, buzz" -->
class should be "fa fa-google-plus", not "fa fa-googleplus"
Hello,
I just installed Hugo Static Site Generator v0.15 BuildDate: 2015-11-26T01:29:07-05:00 on my Macbook and got the Icarus theme. Followed all the steps outlined in the theme installation link
I then created a new post with hugo command. Edited it to add some text.
But I get errors when to execute:
$ hugo --verbose server
These errors prevent the static site to be generated. I don't understand what I did wrong.
Please help.
Thanks!
Here are the errors:
$ hugo --verbose server
INFO: 2016/05/14 Using config file: /Users/zeekay/dev/hugo-blog/mynewblog/config.toml
INFO: 2016/05/14 syncing from /Users/zeekay/dev/hugo-blog/mynewblog/themes/hugo-icarus-theme/static to /
INFO: 2016/05/14 syncing from /Users/zeekay/dev/hugo-blog/mynewblog/static/ to /
INFO: 2016/05/14 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
INFO: 2016/05/14 Alias "/post/page/1" translated to "post/page/1/index.html"
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
INFO: 2016/05/14 Alias "/page/1" translated to "page/1/index.html"
ERROR: 2016/05/14 template: theme/partials/widgets/recent_articles.html:26:97: executing "theme/partials/widgets/recent_articles.html" at <index .Params.catego...>: error calling index: index out of range: 0 in theme/partials/widgets/recent_articles.html
0 draft content
0 future content
1 pages created
2 paginator pages created
0 tags created
0 categories created
in 27 ms
Watching for changes in /Users/zeekay/dev/hugo-blog/mynewblog/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Hi, I'm following the instruction on https://github.com/digitalcraftsman/hugo-icarus-theme to setup my hugo based blog for the first time, and I think there is one step missing from the instruction.
I copied everything from themes/hugo-icarus-theme/exampleSite/
into my root folders, changed the config.toml
config file, but when I run hugo server --watch
, I got the error:
FATAL: 2015/11/30 Unable to find theme Directory: /path/git/blogs/themes/hugo-icarus-theme
I.e., I've already have the following files under my root folders:
config.toml
content/
content/post/
content/post/creating-a-new-theme.md
content/post/migrate-from-jekyll.md
content/post/hugo-is-for-lovers.md
content/post/go-is-for-lovers.md
content/post/introducing-icarus-and-its-features.md
content/post/linked-post.md
data/
data/l10n.toml
static/
static/banners/
static/banners/placeholder.png
what else should be put under themes/hugo-icarus-theme
?
Thanks
I would like to create "pages" as opposed to "posts" that are displayed on the homepage. Is there an effective way to accomplish this?
My goal is to have pertinent pages in the header (about us, contact, etc).
Using
disable_comments: true
in the front matter of a post disables the Disqus comment thread on the bottom of a page.
This feature should also hide the link to the comments section at the bottom of the article/post ("comments / share").
Hi digitalcraftsman,
Thanks for your excellent theme, blogging with Hugo to Github Pages is much easier than I was afraid. Now I have some few remaining issues,
gist
short-name does not seem to show correctly. Please take a look at my short demo at http://suntong.github.io/blogs/2015/12/05/wp2hugo/, in which gist
code are showing strangely comparing to the actual gist: https://gist.github.com/suntong/0268a39d18bf3e684ff9[more]
, [delay +1 hour]
, are displayed incorrectly.Also, I think I did Disqus configuration as documented, but I'm getting We were unable to load Disqus
. My config.toml is still at the usual place. Could you take a look for me please?
Thanks
I am trying to have the tags and categories with ".html" links when I generate pages with the Icarus theme using Hugo (because I am using Cloudfront on Amazon S3, and it does not resolve for folders and sub-folders - was able to fix headers with uglyurls and [permalinks] post in config.toml).
For example I now have this:
http:/mysite.com/categories/canada
http://mysite.com/tags/parks
But I would like to have this:
http:/mysite.com/categories/canada.html
http://mysite.com/tags/parks.html
I think I need to configure the "layout/partials/widget/" files, but I am not sure how. Any ideas?
Cheers,
Bruno
I'm learning how to use Hugo, I've created custom types (project and component) and am experiencing the following issues:
I can't add the new post types. I see the the paginator code in article-list.html {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
but it only uses the post type and I don't know how do I incorporate types other than posts.
Can a dev comment the code with instructions or document this? The Hugo instructions make no mention of this?
Am I missing something? I'm creating the new post types to differentiate them and use different HTML in each type and, as far as I've been able to tell you can't style posts based on categories.
Hi, I just enabled your theme and got the following error when running the site:
ERROR: 2017/01/05 10:43:10 general.go:236: theme/partials/head.html is an incomplete or empty template
E.g. at tags/hugo
the profile and sidebar aren't shown
I have over 10 posts in a category, yet the paginator only creates 1 alias page for my categories, which is an issue, as I have my categories at site.com/blog (canonifyURLs is set in config.toml) - so the "next" button takes me to a "page 2" without the "/blog".
Is this a theme issue, or a Hugo issue?
Seeing this error repeated once for every piece of content:
ERROR: 2016/01/03 reflect: call of reflect.Value.Type on zero Value in theme/partials/widgets/recent_articles.html
I'm seeing this for all my posts when using the theme:
ERROR: 2016/01/03 template: theme/partials/article_header.html:10:87: executing "theme/partials/article_header.html" at <.Site.Params.date_fo...>: invalid value; expected string in theme/partials/article_header.html
I copied the config+l10n file.
The config has "hugo-icarus-theme" as the theme, however the hugo themes repo refers to this repo as "hugo-icarus". When cloning all repos at once, as specified in the quickstart, the config file will need "hugo-icarus" to be the theme name.
The RSS link in the "social" area should remain constant - instead, it changes when you are reading a post.
Prior information:
baseurl="/"
My website: www.desktopluxury.com
Disqus comments gives an error
We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
While changing baseurl to my website's name solves the issue, my website renders into text, no css, no beauty of theme. It seems like theme stops working after changing the baseurl while "/" value in baseurl isn't accepted by disqus comments.
Please help me with this issue.
Can you explain how syntax highlighting is working on your theme ?
I am trying to figure it out but can't find it.
Because when I use simple languages in markdown such as lua, it's not working well.
Example here, markdown is correctly using Linguist :
tmr.alarm(0,3000,1,function()
wifi.sta.getap(function(t)
disp:firstPage()
repeat
lines = 0
for k,v in pairs(t) do
disp:drawStr(0,lines * 11,k.." "..v:sub(3,5).."dbi")
lines = lines + 1
end
until disp:nextPage() == false
end)
end)
Thanks.
I believe it would be helpful to disable the profile sidebar site wide. This does not seem currently possible. When disabled the profile sidebar would not display and the title bar and content would be centered in the screen.
First off, EXCELLENT theme. THank you.
I noticed that my banner wasn't becoming my Facebook image, which eventually led me to see there are internal templates for the likes of og-graph. If I understand right, these are (maybe?) internal to Hugo, or internal to Go? No amount of searching has led me to any documentation that talks about these, though. Where can I learn about the internal templates, especially for social media?
Hi,
I have noticed that the profile card pop-up is shown at too low position on every page except the index page.
I think {{ partial "header" . }}
should be in <div id="container">
.
Please consider to fix it.
Thanks to provide such a great theme!
It'd be great if images etc could be picked up when a link is shared on twitter / facebook etc
This forum post discusses implementation
Newbie question here. When I do "hugo server" command, the page I see has all the features of your Icarus theme, except for that I can't see the posts on the "home" page [I copied those posts from your "example" folder to the the root (content/post/) folder].
So in effect there is nothing published in the middle of the "Home" page. When I click on the links on top, such as "Tags" or "Categories", it correctly takes me to those posts, but not on "Home".
I think maybe I need to change the "front matter" in your "example" posts that I copied in my root folder, but I am not sure what exactly. Or is is something I need to change in the Themes folder or the "configtoml" files?
Any idea what I am doing wrong?
Bruno
Getting this error for every post when I run hugo server
ERROR: 2015/11/16 template: theme/partials/pagination.html:10:27: executing "theme/partials/pagination.html" at <.Site.l10n.paginatio...>: l10n is not a field of struct type *hugolib.SiteInfo in theme/partials/pagination.html
I just started blogging with Hugo; I followed the setup guide but for some reason, the share button is not working (clicking on it does not show the share box). Compare my blog with theme demo. I looked all around but I can't find where the <div id="article-share-box-xxxxxxxxxx">
is coming from.
Look here
First off, awesome theme! Thanks for your efforts and sharing with the world!!
I noticed that the google search box does not pass the parameter entered in the search query but instead only the site to search:
whereas it would be great it if gave this:
I had a look around the templates but cannot figure out how/where this search box is being generated. Maybe someone with more skills than me can locate and fix?
Thanks!
Chris
Hello, I'm new comer in this field.
I found this theme is cool and I decided using the theme on my blog.
After that I found many HTML errors in blog. At first I thought it's because of my customization. But it's not.
I checked demo site, http://themes.gohugo.io/theme/hugo-icarus/, with HTML checker, they told me there are many errors same as my blog.
Checker result
Could you mind modify errors?
Thanks anyway for your theme.
Best.
Hi when hosting the blog in a sub directory i.e. http://www.domain.com/blog/ the links for the next or previous page appear to be generated incorrectly as follows: http://www.domain.com/page/2 instead of http://www.domain.com/blog/page/2
As far as I can tell all othe pages generate okay. This appears both on Hugo's webserver and once the site has been built too.
Thanks
Peter
How do i reduce length of Article summary on home page?, to something like 70 words
Hi again digitalcraftsman,
Please take a look at the source of http://suntong.github.io/blogs/. I see
<link href="suntong.github.io/blogs/index.xml" rel="alternate" type="application/rss+xml" title="Sfxpt Blog" />
<link href="suntong.github.io/blogs/index.xml" rel="feed" type="application/rss+xml" title="Sfxpt Blog" />
<link rel="icon" href="suntong.github.io/blogs/suntong.github.io/blogs/favicon.ico">
<link rel="apple-touch-icon" href="suntong.github.io/blogs/suntong.github.io/blogs//apple-touch-icon.png" />
<link rel="stylesheet" href="suntong.github.io/blogs/suntong.github.io/blogs/css/style.css">
<link rel="stylesheet" href="suntong.github.io/blogs/suntong.github.io/blogs/css/font-awesome.min.css">
<link rel="stylesheet" href="suntong.github.io/blogs/suntong.github.io/blogs/css/monokai.css">
<link rel="stylesheet" href="suntong.github.io/blogs/suntong.github.io/blogs/fancybox/jquery.fancybox.css">
I.e., I see the suntong.github.io/blogs/
has been doubled up, e.g., <link rel="stylesheet" href="suntong.github.io/blogs/suntong.github.io/blogs/css/style.css">
. What could be the problem?
I've put my config.toml
at https://gist.github.com/suntong/2b529ce26099d6f26278. Could you take a look for me please?
Thanks
Hello,
I wanted to leave more width for the blog content and have been working on move the profile to the bottom right.
I successfully embedded it in the sidebar.html and removed it from all other locations.
The only problem I'm having is that the white background of the profile box only covers about 1/3rd of it from the left side.
I am thinking some element of the sidebar is not wide enough - but I don't know which one.
I also don't know whether the better practice is to alter the profile partial template to specify a minimum width for the background, or if I should alter the sidebar partial instead.
Any help would be much appreciated.
See Pull Request ppoffice/hexo-theme-icarus#85 for more information, though maybe we should wait until @ppoffice actually merges it or modifies LICENSE the way he likes it.
Started building sites ... ERROR: 2017/03/08 07:46:02 general.go:236: theme/partials/header.html is an incomplete or empty template ERROR: 2017/03/08 07:46:02 general.go:236: theme/partials/profile.html is an incomplete or empty template ERROR: 2017/03/08 07:46:02 general.go:236: theme/partials/article_header.html is an incomplete or empty template ERROR: 2017/03/08 07:46:02 general.go:236: theme/_default/summary.html is an incomplete or empty template.
I am using Hugo version 0.18. Tested on Ubuntu v 14.0.4.5
I noticed on the intro page that the MathJax isn't compiling. I am a new user to this theme and would like to know if this feature is broken or if I am missing something.
Is there a way to separate the "banner" (shown on top of post) from the "thumbnail" (shown in the article list) in the front matter? I would like to have thumbnails, but no banners on some posts.
I noticed after updating to hugo .18 that my about page broke.
I had a simple entry like this:
[[params.menu]]
before = false
label = "About"
link = "about/"
and then the single page at content/about/index.md
.
I read this other issue on another @digitalcraftsman theme and believe the root cause might be the same. The workaround from @podiki, to have two files index.md and _index.md in that same dir, did work for me here too.
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.