lednerb / bilberry-hugo-theme Goto Github PK
View Code? Open in Web Editor NEWPremium theme for the hugo site builder. DEMO:
Home Page: https://lednerb.github.io/bilberry-hugo-theme/
License: MIT License
Premium theme for the hugo site builder. DEMO:
Home Page: https://lednerb.github.io/bilberry-hugo-theme/
License: MIT License
From the gohugo docs:
.Site.RegularPages
a shortcut to the regular page collection. .Site.RegularPages is equivalent to where .Site.Pages "Kind" "page".
An option somewhere in config.toml or CSS to fix the site header to prevent it from scrolling would be great.
That's important for the demo site as well as the exampleSite
dir to give an example of how to setup and integrate the the translated content.
Related to #24.
The 404 site is a static HTML site.
It can be copied to the users static/404.html
folder...
What about to make the 404 translatable? Related to #24
i can't change the topnav ? please help me .
Modify layout/partials/default-content
adding
<span class="categories">
{{ .ReadingTime }}
{{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}}
</span>
adding the reading time inline with the article date, categories, author line...
I wrote a quick algolia API to take the index.json file and update the algolia account. If anyone's interested, I can create a quick public repo and leave a link. I use this in my production push when I add content to my blog.
Hi, I am new to Hugo, when I run using hugo server -D
it works perfectly, but if I generate using hugo -t bilberry-hugo-theme
command, articles are not showing up. https://indmind.github.io/blog/.
source code: https://github.com/indmind/blog
thanks
The font by default is beautiful, but lacks Cyrillic support. I tried to choose something different from Google Fonts, found at least 3 CSS files with font specification, nothing seems to work, I end up with the local DejaVu on my screen.
Implement "Available Languages" underneath the "Social Media" Part of the footer.
Regarding to #24
When viewed in mobile (iPhone SE), I am getting an exceedingly narrow content box --
However, if we were to adjust
div class="main container"
(matching div.container
) padding
to 0, andarticle class="default article"
(matching article
) margin
to 0, we getWhich IMO is a much more efficient way of displaying the theme on mobile.
Per, https://github.com/Lednerb/bilberry-hugo-theme/blob/master/layouts/partials/default-content.html#L4, post date formats should be YYYY-MM-DD; however, we see in the preview / demo, actual format differs; refreshing really fast looks like the date is altered after loading -- perhaps in JS or CSS.
Is this intended behavior?
Remove the need to delete the default archetype by overwriting it.
At the moment a unversiond src/tmp
folder is needed because of this laravel-mix error laravel-mix/laravel-mix#1228
The badge does not work at the moment because the git clones are not accessible for shields.io.
I have to set up my own shields-like API tool for that purpose.
Also, the clones are only accessible for 14 days, so maybe I'll create my own little API with a database to save the clones.
The features section should list the permanentTopNav option.
In reference to #24 should there be a language chooser in the header or only in the article footer of translated articles?
I've just taken a look at this theme, this is awesome and I wanna use it. But I have a question, does this theme supports Google Analytics or not?
It'd be great if there was a config option to set the footer's copyright text (and perhaps also link to the base URL) via the configuration.
I am currently editing the footer partial to display copyright by me (and set the link to the site base URL, opening in the same window), and amending the theme attribution to 'Bilberry Hugo Theme by Lednerb'. However, for each update I have to remember to reconfigure this, and think it would be a great enhancement.
In reference to #24 I have to check how the algolia search will work in a multi-language environment.
First idea:
Different search indices for every language.
Problem:
Different index json files have to be generated.
I want to implement the support for 2 or more different languages so you can write your post in DE, EN, RU, whatever and get a language chooser for this specific post.
Advantage:
Don't forget the patreon hint.
There are problems when you want to change the theme's directory name.
Caused by https://github.com/Lednerb/bilberry-hugo-theme/blob/master/layouts/_default/list.html#L5
Maybe I can improve this so the correct folder is dynamically included.
Is it possible to include template pages for viewing all the tags and categories? At the moment, if I go to https://mysite.com/tags
for example, my server throws a 403, yet I would expect that to be a valid resource.
You know what i mean. :D
Failed to add template "theme/_default/list.html" in path "......./themes/bilberry-hugo-theme/layouts/_default/list.html": template: ......./themes/bilberry-hugo-theme/layouts/_default/list.html:5: function "fileExists" not defined
Running into this situation where I can't run the theme because the fileExists
function is not defined
go version
go version go1.7.3 darwin/amd64
Hello, @Lednerb ! There is a wrong language code in use: https://github.com/Lednerb/bilberry-hugo-theme/blob/master/i18n/uk.yaml
UK is an abbreviation for United Kingdom
UA is a language code for Ukrainian
Cheers
part of #1
When I import the theme as bilberry
and not as bilberry-hugo-theme
the gallery
type does not render the images.
Option to show nav permanently.
it would be nice to add parameters to the featuredImage
so that the size could be established rather than expand the image to the full-size of the article div container (and it might be nice to add an alt parameter too if you add width and height).
Hello!
$subj, when trying to run this theme against my blog source I get following:
Building sites … ERROR 2018/03/20 11:47:54 Error while rendering "page" in "post/": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/_default/single.html:7:15: executing "main" at <partial "content-typ...>: error calling partial: template: theme/partials/content-type/article.html:8:7: executing "theme/partials/content-type/article.html" at <partial "tag-footer"...>: error calling partial: template: theme/partials/tag-footer.html:2:14: executing "theme/partials/tag-footer.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 11:48:03 Error while rendering "taxonomy" in "": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/_default/list.html:2:21: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2018/03/20 11:48:04 Error while rendering "home" in "": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/index.html:2:21: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2018/03/20 11:48:04 Error while rendering "section" in "": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/_default/list.html:2:21: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
ERROR 2018/03/20 11:48:05 Error while rendering "taxonomyTerm" in "": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/_default/list.html:2:21: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
| EN
+------------------+----+
Pages | 84
Paginator pages | 0
Non-page files | 0
Static files | 31
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 32221 ms
Watching for changes in /srv/hugo/{content,layouts,static,themes}
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:11009/ (bind address 0.0.0.0)
Press Ctrl+C to stop
Change detected, rebuilding site
2018-03-20 12:10:21.604 +0000
Source changed "/srv/hugo/content/post/2018-03-19-lust-for-text-life.markdown": WRITE
ERROR 2018/03/20 12:10:22 Error while rendering "home" in "": template: /srv/hugo/themes/bilberry-hugo-theme/layouts/index.html:2:21: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
Total in 1612 ms
The reason may be some absent .Site.
parameter or something else but you can't tell it from error messages.
maybe its better to include all resources in the main .js and .css files.
A short tutorial on how to create custom post types (for example: books, people, ...)
See https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4.
This allows for much finer-grain control for the user that doesn't involve overriding an entire template file for a small amount of imports.
Given the way this theme is configured, I can't specify if I don't want a page to be a menu item. Could this feature be added?
For example, I have a page that has some privacy policy details, which I don't want to appear in the top nav. This should go in the footer - could you add a footer nav option for pages too?
Hello,
Thank you for this very good theme!
I am using it on garamond.fr. I posted a short story (1900 words). Algolia claims for a too big record.
What could I do? Maybe we should cut the json record?
Thank you by advance.
Hi Sascha,
I've found the config param to set the logo to a gravatar or a custom image, but I can't find a way to change the green home icon that appears on rollover.
Can you point me in the right direction?
I think it could be useful to have a param in config to set the rollover image and another one to set rollover Yes/No.
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.