digitalcraftsman / hugo-strata-theme Goto Github PK
View Code? Open in Web Editor NEWPort of HTML5UP's Strata theme to Hugo
License: Other
Port of HTML5UP's Strata theme to Hugo
License: Other
hello,I want to use duoshuo to instead disqus,because I am in China,the disqus website can not open.
so,I want to change single.html, but it doesn't work.
Can you help me
I'm having trouble getting hugo to generate the main page, it seems to generate the posts but i'm just confused on what's going on.
I tried using the files from the example site and having hugo compile it but it did the same thing. What am I missing?
Here's my files:
https://github.com/dobbsbp/strata
Is it possible to put into this theme a favicon reference ( in config.toml)?
In the menu section there is a small but powerful typo.
+++
menu = "main"
+++
The equal sign should be replaced to a colon:
+++
menu: "main"
+++
Oherwise:
ERROR 2018/02/02 19:01:09 failed to parse page metadata for "acerca.md": yaml: line 5: could not find expected ':'
Error: Error building site: Errors reading pages: Error: failed to parse page metadata for "acerca.md": yaml: line 5: could not find expected ':' for acerca.md
Hi there,
Ok this is the last question I'll raise today - promise. Maybe :-)
On the front page if you click the contact-form link it bounces you down to the form just fine. However, if you've clicked on one of the menu items on the left and then click the contact-form link, it's broken.
Looking here it seems like maybe an absolute path should be defined in one or more of these files - would that be the correct fix to make contact-form work no matter where the user is browsing?
Brian
Hey there,
I used your theme to build a site I was happy with locally, and it looks exactly as intended on localhost. However, when I go to add it to a git repo and deploy on Netlify, it's not deploying correctly, instead copying all the content but not the styling.
I started a new Hugo site locally, cloned your theme into themes/hugo-strata-theme
, deleted the git file from the theme folder, and after configuring how I intended and checking on localhost, initialized a new git repo in the home directory of the project. I then added all, made an initial commit, and linked to a repo. Github isn't pulling the blank directories of course, so the repo isn't the same as it looks locally.
What steps should I take to correctly deploy this on netlify or github pages?
The phonenumber has a (broken) link to tel:
Greetings..!
I would like to insert title logo in my modified starta web template. Can anybody please help me?
Thank you!
Hello,
This is a great theme, thank so much. I'd like to either disable the pop-up images for portfolio images (recent work) or have it link through a new page. Any ideas?
I am puzzled why I cannot seem to swap position of recent posts and portfolio i.e. display recent posts first.
The code is in index.html but swapping it there appears to have no effect whatsoever. As a matter of fact even deleting the code has no effect.
What is going on? a cache that I am not aware off?
Hi there,
In my existing Ghost blog I have several entries like /about and /contact with static content. I'd like to keep these in tact when I migrate to Hugo and use your theme, but I'd also like to "hide" them from popping up in the rest of the blog entries when people click "Blog" on the left. Is there a way to designate these /about, /contact, /resume .md files in such a way that they're still available as static posts but NOT lumped in with other blog entries?
Thanks,
Brian
Hi,
Sorry for the double issue, I was looking to use your theme mainly for blogging. I wanted to ask is there a way to make blog post page the home page?
Using your example site, is it possible to make the page https://themes.gohugo.io/theme/strata/post/ the default landing page?
Thanks,
Shahnur
I would like to propose implementing i18n support in this theme since Hugo has multilingual mode since a long time ago.
If you are OK with this, I could implement the feature.
Best regards
Pablo
Hi,
Is there a config change I can make such that one of my portfolio thumbnails just links to another http page, rather than display a larger image?
Thanks,
Brian
Hello,
thank you for this theme. When I write a blog post and include images they doesn't resize, there is no responsivity...Am I missing something?
Thank you,
What is the purpose of the nice form if the email address is shown completely unobfuscated to the right of the form ?
Hi again,
I like how customizable the landing page is. I'm wondering if, below "recent projects" is there a way to have a header called "Recent blog posts" that would then list, say, the latest 3-5 entries that people would see if they clicked "Blog" from the left hand menu?
Thanks,
Brian
I must admit that the 4k lines css file if kind of scary to edit... Is there a -not- preprocessed version of this file, maybe split into multiple file to make it easier to edit ?
Cheers !
PS : Awesome theme BTW, thx !
Hey,
Really liking the theme, it would be great to add an image for bookmark icons.
Thanks,
Shahnur
Hi, Im trying to work out how to fix an issue I have with Recent Blog Posts. Up until recently I have been using Hugo 0.55 and I only needed to change the theme slightly to make it work with my setup.
I altered line 10 of the file themes/hugo-strata-theme/layouts/partials/recent-posts.html
from
{{ range first 5 (where .Data.Pages "Section" "posts") }}
to
{{ range first 5 (where .Data.Pages "Section" "blog") }}
and it worked perfectly.
I recently upgraded to 0.66.2 and now this no longer works, also changing it back to "posts" doesnt work
This must be something to do with how I have my site setup, can someone show me where Im going wrong?
your beautiful theme is absent in the list of themes !!
i found it again only because i remembered that memorable name: "strata".
Thnx!
Hi there,
I'm trying to migrate my blog from Ghost to Hugo, and I'd love to use your theme. The default "blog" link in the sidebar make the url be http://site.com/post/name-of-post. My current URL structure is http://site.com/name-of-post. Is there a way I can change the config somehow so that my URLs don't get broken when I move from Ghost to Hugo?
Brian
Hi
When the image of the portfolio pops up there is an arrow on the right to move to the next image. As it is not there the page gets stuck waiting. Can you hide or disable the arrow?
Regards, Alfred
When a user scrolls up, the background image moves up as well. But the space below it is blank and gray. Is it possible to make the background take up this entire space, being scaled so that the user will never see this gray space? Thanks!
Alongside the ability to display a GitHub icon, support for a GitLab icon would be useful as well.
Greetings,
Excellent port / theme.
It would be excellent if it allowed posts, out of the box :)
Cheers
Hi, I am having trouble getting multi language support working with this lovely looking strata theme. Are you aware of any limitations to support multi language?
Hi, not quite sure whats happening, but the 404 page never seems to load. I just get the generic "404 page not found".
Also I would like to add an index2.html page that is linked to a menu on the main page. I can't seem to work out how to make that work. Does everything other than index.html need to be within the content folder?
Version: 0.24.1 (tested 0.23 and 0.20, all behaving the same) - didn't test x32
Theme: slate (although I suspect this has nothing to do with the theme being used)
on OSX: โ
$ grep theme config.toml
theme = "slate"
$ ~/Downloads/hugo_0.24.1_macOS-64bit/hugo
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
0 regular pages created
6 other pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
total in 10 ms
$ ls -la public/index.html
-rw-r--r-- 1 splash staff 5180 Jun 30 11:14 public/index.html
freshly cloning the very same repo and running it on Linux x64 fails: โ
$ grep theme config.toml
theme = "slate"
$ ./hugo --verbose
INFO 2017/06/30 11:29:45 Using config file:
WARN 2017/06/30 11:29:45 Unable to find static directory for theme slate in /home/<redacted>/themes/slate/static
INFO 2017/06/30 11:29:45 /home/<redacted>/static/ is the only static directory available to sync from
INFO 2017/06/30 11:29:45 syncing static files to /home/<redacted>/public/
WARN 2017/06/30 11:29:45 No translation bundle found for default language "en"
WARN 2017/06/30 11:29:45 Translation func for language en not found, use default.
WARN 2017/06/30 11:29:45 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
Started building sites ...
WARN 2017/06/30 11:29:45 [en] Unable to locate layout for "taxonomyTerm": [taxonomy/.terms.html.html taxonomy/.terms.html _default/terms.html.html _default/terms.html indexes/indexes.html.html indexes/indexes.html theme/taxonomy/.terms.html.html theme/taxonomy/.terms.html theme/_default/terms.html.html theme/_default/terms.html theme/indexes/indexes.html.html theme/indexes/indexes.html]
WARN 2017/06/30 11:29:45 [en] Unable to locate layout for "home": [index.html.html index.html _default/list.html.html _default/list.html theme/index.html.html theme/index.html theme/_default/list.html.html theme/_default/list.html]
WARN 2017/06/30 11:29:45 [en] Unable to locate layout for "404": [404.html theme/404.html]
Built site for language en:
0 draft content
0 future content
0 expired content
0 regular pages created
6 other pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
total in 4 ms
$ ls -la public/index.html
ls: cannot access 'public/index.html': No such file or directory
$
Passing -t <theme>
and/or --themesDir ./themes/
results the same
NOTe: this does work in OSX ๐ค
Hi, this theme is one of the best for blogs in Hugo, thank you very much therefore.
Unfortunately, for privacy reasons it is not acceptable for me to use Google Fonts. Is there any chance of deactivating Google Font optionally and providing a font via normal static files?
The same question applies for JS-files, I would like to host them myself.
Thank you very much in advance.
I've been using this theme for a while and only now realised the "Older" button on the Blog page has an incorrect link in my implementation.
A live version you can see; https://sionwilliams.com/post/
If you scroll to the bottom and click older, you will see the issue.
Folowing the README instruction I got this :
lsoave@basenode:~/Test/hugo-strata-site$ hugo server Started building sites ... ERROR: 2016/10/11 21:30:36 template.go:477: template: /home/lsoave/Test/hugo-strata-site/themes/hugo-strata-theme/layouts/_default/baseof.html:7: function "block" not defined ERROR: 2016/10/11 21:30:36 general.go:212: Error while rendering homepage: template: "/home/lsoave/Test/hugo-strata-site/themes/hugo-strata-theme/layouts/_default/baseof.html" is an incomplete or empty template; defined templates are: "_internal/shortcodes/relref.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/ref.html", "_internal/opengraph.html", "_internal/shortcodes/test.html", "_internal/shortcodes/speakerdeck.html", "_internal/google_analytics.html", "_internal/pagination.html", "/home/lsoave/Test/hugo-strata-site/themes/hugo-strata-theme/layouts/_default/baseof.html", "theme/_default/summary.html", "_internal/shortcodes/gist.html", "_internal/_default/sitemapindex.xml", "_internal/schema.html", "_internal/shortcodes/tweet.html", "_internal/_default/rss.xml", "_internal/_default/sitemap.xml", "_internal/disqus.html", "_internal/shortcodes/highlight.html", "main", "_internal/_default/robots.txt", "_internal/shortcodes/vimeo.html", "_internal/twitter_cards.html", "_internal/shortcodes/youtube.html", "_internal/google_news.html", "_internal/google_analytics_async.html"
My Hugo version is :
lsoave@basenode:~/Test/hugo-strata-site$ hugo version Hugo Static Site Generator v0.18-DEV BuildDate: 2016-10-11T21:20:45+02:00
Hello!
$subj, when trying to run this theme against my blog source I get following (and it won't render at all):
Building sites โฆ ERROR 2018/03/20 18:40:26 Error while rendering "page" in "": template: /srv/hugo/themes/strata/layouts/_default/single.html:5:5: executing "main" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:2:50: executing "theme/partials/post-meta.html" at <.Site.Params.date_fo...>: invalid value; expected string
ERROR 2018/03/20 18:40:26 Error while rendering "page" in "post/": template: /srv/hugo/themes/strata/layouts/_default/single.html:5:5: executing "main" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:2:50: executing "theme/partials/post-meta.html" at <.Site.Params.date_fo...>: invalid value; expected string
ERROR 2018/03/20 18:40:26 in .Render: Failed to execute template "theme/_default/summary.html": template: theme/_default/summary.html:6:7: executing "theme/_default/summary.html" at <partial "post-meta" ...>: error calling partial: template: theme/partials/post-meta.html:2:50: executing "theme/partials/post-meta.html" at <.Site.Params.date_fo...>: invalid value; expected string
WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.
ERROR 2018/03/20 18:40:26 Error while rendering "home" in "": template: /srv/hugo/themes/strata/layouts/index.html:15:5: executing "main" at <partial "contact" .>: error calling partial: template: theme/partials/contact.html:8:56: executing "theme/partials/contact.html" at <len .Site.Params.con...>: error calling len: len of untyped nil
The reason is likely some absent .Site.
parameter but you can't tell it from error message, I guess input parameters handling could be improved. cboettig/hugo-now-ui#9 might be used as reference point.
By the way, Site.Params.dateformat
is used everywhere instead of Site.Params.date_format
If the descriptions for two [[params.portfolio.gallery]] objects are not the same length (in lines, when displayed), they will render improperly.
Properly displayed in full screen:
Breaking with certain window sizes: (Note the first image description is rendered as 3 lines, while the adjacent one is only 2 lines.)
Great work on this theme.
Is there a way to add arbitrary sections like the "about" and the "gallery"? would I have to defined that in the partials
folder?
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.