spf13 / hyde Goto Github PK
View Code? Open in Web Editor NEWPort of Mdo's excellent theme to Hugo
License: Other
Port of Mdo's excellent theme to Hugo
License: Other
I found the 404 page does not have the same themeColor as the main site when setting the site themecolor param to non-default. The 404 page always display as the black color.
Go Hyde uses Poole, which has styling for pagination:
Lines 354 to 359 in 62d338f
Poole utilizes this pagination for Jekyll:
https://github.com/poole/poole/blob/c0d52e1e/index.html#L22-L33
as does Jekyll Hyde:
https://github.com/poole/hyde/blob/7c7f7550/index.html#L22-L37
but Go Hyde doesnt utilize the pagination:
Lines 1 to 18 in 62d338f
Hi,
Thanks for the theme. I'm wondering if it's simple to add the google analytics feature to the theme. It seems from this post that you only need to add a one-liner to the template file.
I added that line to the single.html file right before </body>
like below
{{ template "_internal/google_analytics.html" . }}
</body>
And I added the tracking ID in the config.toml file. But my google analytics page doesn't seem to record any traffic. Any ideas?
I've got some pages where the date doesn't matter (I don't even remember when I last updated them), is it possible to hide the dates?
When opening on chrome on my android device, a very rudimentary version of the site appears.
How can I add an additional sidebar to the right side of the screen? I don't want to reverse the layout, but have a second, slightly narrower sidebar for additional content. It should flow to the bottom or hide on mobile.
Thanks!
I was looking through the different themes available for Hugo and settled on using Hyde but I see that there are multiple ports. There is this and @zyro's hyde-x and @enten's hyde-y. Now, I am all for variety but looking at the differences between each project, I am not seeing any major differences between the three. At least none that could not be implemented behind config flags.
Is there any reason why the difference projects can't be combined?
Hello,
thanks for your theme,
i'm new to hugoand wanted to create a simple site,
but i want a static "/" (index.md) instead of a list,
but it seems this is not possible with this theme
any easy way to change it?
see also:
https://discuss.gohugo.io/t/render-index-md-as-single/5533
With just the default installation I'm running into an issue in Chrome 65 where it reports that it won't load the CSS Pages because the MIME type defaults to "text/plain" and strict type checking is turned on by default in 65. To fix this I simply added the attribute 'type="text/css"' to the individual tags in head.html.
I've never worked extensively with submodules before so I'm not sure on how to submit a pull request on it, but I would gladly do so.
Seems like this was added recently to hugo. Any plans to support this ?
I see here:
https://github.com/spf13/hyde#themes
That this repo is linked:
https://github.com/chriskempson/base16
but that repo doesnt actually contain the themes used here. This one does:
https://github.com/chriskempson/base16-html-previews
Further, I see this:
Line 178 in b6a5534
but that is not a valid link anymore:
$ curl -I chriskempson.github.io/base16
HTTP/1.1 404 Not Found
I tried finding a solution to this "problem" I have, but they are related to other themes, so I'm not exactly sure which file I should modify so that only /posts/ content is shown in the homepage.
Hi. I tried to change my theme from ananke
to hyde
on this docs : https://rsyncosx.netlify.app/. It loads perfectly on my Mac utilizing hugo server -D, but it does not load properly when building the docs on Netlify. I am not a Javascript developer, and I dont know what is missing in theme regarding Netlify. Switching back to theme ananke builds OK on Netlify.. I would prefer utilizing the hyde
theme, seems as a better theme for docs..
Monaco
While exploring how best to apply a few style overrides I ran across your suggestion about modifying a theme's head partial.
https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4
It seems that Hyde does not yet do this, but I've made a fork and tried it out, and it works very nicely, so I'll make a pull request shortly after creating this issue.
I've also made a special accommodation for the Google font handling. If I'm overriding the font then I want not only to add a new link element; I also want to disable the unused font link.
Thanks so much for the great theme!
I'm using this theme for a small project and I'm trying to add equations to one of my posts.
Here's what I have:
$$
\pi_t = \frac{P_t - P_{t-12}}{P_{t-12}} = \frac{226.40 - 188.09}{188.09} = 0.2036
$$
However, when rendering, it does not show the equation properly.
I have tried with other themes and they work fine. My guess is that it has something to do with the /layout/partial/foot_custom.html file (which is missing).
Any help?
The theme is very nice.
it would be nice to make quick changes of this and that, and integrated your own stylesheet too, especially because hugo have all tools to process SASS/SCSS.
This ported theme does not come with a 404 page by default like the original theme of Jekyll. Look here.
See debate here, need to patch/update the css file, probably
I want to show “read more” in my index.html , I set truncated = true in my page, but it seems not working.
The current CSS links do not take advantage (or notice) the CanonifyUrls settings
I wanted to turn on Google Analytics but it seems to be not working for me. I simply set up a new "Account" in GA then created a new "Property" that is pointed to the correct URL, including making sure it's https://.
At that point, I have a new "Tracking ID" which is of the form UA-XXXXXXXXX-X So as per the docs I put
googleAnalytics = "UA-XXXXXXXXX-X"
in the root config.toml file of my site. Nothing seems to happen though. I've tried viewing the site on other devices and it's not registering users.
Looking at the src, it appears you've tried to include a Google Analytics script by injecting it in 'layouts/_default/baseof.html' on line 8 where you are including '_internal/google_analytics_async.html' but I don't see that file anywhere in the hyde repo. Is it missing? Is it something that the user needs to implements in their root layouts folder?
Thanks for the help.
See: https://github.com/spf13/hyde/blob/master/layouts/_default/single.html#L12
and https://gohugo.io/functions/isset/
All site-level configuration keys are stored as lower case. Therefore, a myParam key-value set in your site configuration file needs to be accessed with {{if isset .Site.Params "myparam"}} and not with {{if isset .Site.Params "myParam"}}. Note that you can still access the same config key with .Site.Params.myParam or .Site.Params.myparam, for example, when using with.
so
(isset .Site.Params "disqusShortname") will always is FALSE
please rewrite is just lowercase, it works well
{{ if and (isset .Site.Params "disqusshortname") (ne .Site.Params.disqusShortname "") }}
in layouts/partials/highlight-js.html - I fixed by:
diff --git a/layouts/partials/highlight-js.html b/layouts/partials/highlight-js.html
index 87c347d..917399d 100644
--- a/layouts/partials/highlight-js.html
+++ b/layouts/partials/highlight-js.html
@@ -7,12 +7,12 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/languages/{{.}}.min.js"></script>
{{ end }}
{{ end }}
- {{ end }}
<script type="text/javascript">
{{ with $.Scratch.Get "hl_languages" }}
hljs.configure({languages: [{{(delimit . ", ")}}]});
{{ end }}
hljs.initHighlightingOnLoad();
</script>
+ {{ end }}
{{ $.Scratch.Delete "hl_languages" }}
{{ end }}
(END)
I believe the other post rendering files have the same issue.
The icon filename is "touch-icon-144-precomposed.png", but referred to as "apple-touch-icon-144-precomposed.png" in head.html
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.