Giter VIP home page Giter VIP logo

binario's People

Contributors

abraaolevi avatar annwan avatar bugok avatar deining avatar dependabot[bot] avatar devidw avatar j-siu avatar morfikov avatar niaow avatar oh4va avatar rheingoldriver avatar tendto avatar vimux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

binario's Issues

A missing slash after category name in the URL

I noticed that google search console shows me some Page with redirect entries and all of them point to urls that can be accessed from the post list. So for instance there's

https://morfikov.github.io/categories/linux

and it should be

https://morfikov.github.io/categories/linux/

This can be fixed by (I think) adding the missing slash in 'themes/binario/layouts/partials/entry/meta/categories.html' in the 5th line:

<a class="meta-categories__link" href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}" rel="category">

vs.

<a class="meta-categories__link" href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}/" rel="category">

Couple of questions concerning tags/archives/posts

Is there a way to make the first paragraph of an article to be in the post summary?
Is it possible to set different column numbers for tags/categories and post view?
Is there something like archive page, where all post names are listed and grouped by year/month?
Is there a tag cloud?

Is it possible to have a hugo theme rendering to a subpath ?

Hey :) Very nice theme! Well done :D

I am wondering whether it is possible to use a theme on a subpath, so:

  1. I got hugo with my custom layouts rendering my / contents
  2. I .. somehow include your theme, and make it render to /blog tree on my site

Do you know whether this is possible at all ?

bad language when multilingual

hello, hi !!! Binario is fun and cool !

I tryed to configure multilingual mode in binario. I order to that :

  • created folder for each language.
  • config i18n in site root and created file fr.yaml
  • copy about in 2 folders french and english
  • translated the content of about file in french folder
    -modified config file for french with weight 1 (right under)
baseURL = "https://example.com/"
title = "Coh@bit - Fablab"

languageCode = "fr"

paginate = 10
theme = "binario"

[Params]
  description = "le Fablab de l'université de Bordeaux"
  columns = 2
  mainSections = ["post"]
  dateFormat = "January 02, 2006"

DefaultContentLanguage = "fr"
defaultContentLanguageInSubdir = true
[languages]
  [languages.fr]
    contentDir = "content/french"
    languageName = "Français"
    weight = 1
    
  [languages.en]
    contentDir = "content/english"
    languageName = "English"
    weight = 2`
```
Then I run hugo server, no error returned, but Site still use english file contents. Did I missed something?

Broken tags list in a single page because of urlized characters

Briefly

Tags list in a single page don't show some page tags because of urlized characters.

Reproduction steps

  1. Add tag "Révolution française" to any post:
tags:
  - "Révolution française"

Actual results:

Tag "Révolution française" don't show up.

Expected results:

Tag "Révolution française" displays in tags list like others.


Caused by 077ae03

Tag “C#” page show 404

My articles have the "C#" tag, but the tags don't have it. Also, "C#"is not shown in categories.
And if you type /tags/C# in the browser address bar, the page 404 is displayed.
As I understand it, this is a bug. How is this resolved?
P.S. I'm not good at web design. But I liked your theme.

Rmd post does not work

Hi, I tried you theme today. The Rmd post does not work like the other md posts. bg color is white and UTF-8 also does not work. Seems that the HTML head is not the same than with md.

Maybe this has something to go with blogdown 1.2.

In the RStudio viewer everything seems well, but if I transfer the public folder to my webspace, the bug comes up.

Mastodon "verification" link

Hi,

can you please add support for a Mastodon share button? And it would be great, if you could also add support for the Mastodon verification link, so that the link is added to the header or footer. Currently I had to add it by myself into the footer.html.

Thank you!

Change favicon?

Is there a way for me to change the favicon from the default icons without editing the theme itself?

Support for other comment system than Disqus

A few weeks ago, I received an email from Disqus saying the following:

Hi there,

Thanks for using Disqus! Your site was recently approved for ads, but we noticed that you don’t currently having any campaigns running. If you’d prefer a non-ads supported plan, you can choose between either of our ads-free plans here:

Plus - $12/month or $11/month with our yearly discount 
Pro - $115/month or $105/month with our yearly discount 

browse plans

Each of these plans comes with an ads-free version of Disqus and our Pro plan offers a variety of additional engagement features. You can review these options from your Subscription and Billing page.

Thank you,

Basically if you're not going to pay them, there's no way to use Disqus without serving intrusive adds in the comments section. I've always been having an adds free blog, and I wanted it to stay in this way. Currently I had to disable comments on my blog, and look for some Disqus alternative, but the Binario theme currently doesn't support any other comment system.

I wanted to ask whether are there any plans to make such support?

Remove deprecated Google Analytics async internal template include

The internal Hugo template google_analytics_async.html no longer works because Google has removed the version of Google Analytics it uses. Newer Hugo versions (>=v0.119.0) already warn about this.

WARN  _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo

The other, regular internal Hugo GA template (google_analytics.html) that we use, already handles Google Analytics 4 in an asynchronous way. So, it's time to remove the async GA include.

hugo v0.61.0 ToC does not nest/indent correctly

Original reported to gohugoio/hugo#6613

hugo version:
Hugo Static Site Generator v0.60.1/extended darwin/amd64 BuildDate: unknown

OS: MacOS Catalina 10.15.2

Theme update to latest with:
git clone https://github.com/Vimux/Binario.git
No modification.

Live URL: https://johnsiu.com/blog/k8s-installation/
Raw md: https://raw.githubusercontent.com/J-Siu/johnsiu.com/master/content/blog/k8s-installation.md
Theme: https://github.com/Vimux/Binario (latest pull master)

I added following in my config.toml:

[markup]
  [markup.tableOfContents]
    endLevel = 10
    startLevel = 3

The ToC does not nest/indent correctly:
Screen Shot 2019-12-12 at 2 38 50 AM

The 3 lines in red rectangle are level 4 and should be indented.

PS: I tried using the default(removing the markup section) and reduce all headers by 1 level but result is the same.

Question: Is possible to create a "masonry" style in the home page?

Hello. Just discovered hugo and binario theme is the best way to write a great website for a great chess club (Amateur Chess Club Lupiae 1970 from Lecce, Italy!!! .... little advertising!!!!! :D) Me and my friends are asking ourselves if it s possible what we ask in the title... In order to have a card very wide (e.g. with a photo attached) and then to not have the adjacent cards , in which just two lines are written, taking the height of the bigger card. Thanks and we apologize if this place was not the best to make a question like that.

Andrea

How to customize the breadcrumb separator character?

I tried to create a custom css file within the site's static/css folder with the following content:

.breadcrumb__item::after {
	display: block;
	margin: 0 .3125rem;
	content: "/";
}

This had no effect. What am I missing?

Having the separator character as a configurable param in config.toml would be nice. Could anyone give me some orientation on how could it be implemented?

Highlight - Change background color

Been digging for a bit I cannot find anything conclusive.

Is there anyway to change the background color of highlight blocks? I'd like something a bit Darker for the default Binario dark theme.

image

I've tried setting the background-color in main.css in pre or code but it doesn't seem to change. Looking at the page source, it seems to set 272822 as the color code but I cannot find any reference to that value in the code.

I'll play around a bit more to see if I can figure it out.

Browser Can't Find Icon Specified in the Manifest

The Chromium console states: "Error while trying to use the following icon from the Manifest: http://localhost/icons/192.png (Download error or resource isn't a valid image)"

How do I specify the icons for the manifest file in the config (toml in my case)? I find that one is being generated:

{
  "name": "Binario",
  "short_name": "Binario",
  "display": "browser",
  "background_color": "#2a2a2a",
  "theme_color": "#1b1b1b","description": "Responsive card-based & code-light Hugo theme","orientation": "portrait","start_url": "/","scope": "/",
  "icons": [
    {
      "src": "icons/192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "icons/512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ]
}

I'm not sure where the 192 and 512 versions are specified and for some reason Chromium says it can't find the one in icons/192.png... though it appears to be there.

Only "Posts" is shown on front page

After upgrading to newest hugo server, it looks like index.html isn't build properly. It just shows "Posts" and not the list/index of my posts.

Screenshot 2020-09-06 at 10 47 10

config.toml hasn't been changed. And when I click on the "Posts" link the list of posts look like this:

Screenshot 2020-09-06 at 10 50 28

Also, regular HTML links do not show as links - only the text is shown.

My public version still looks OK: zartmann.dk

Meta Description is not loaded

I have add the description params in my config.toml and sended to my blog, but the google chrome lighthouse acuse my blog with seo (89) with message:

Document does not have a meta descriptionDescription text is empty.
Meta descriptions may be included in search results to concisely summarize page content. Learn more.

Does binario support multi languages ?

Hello there does this project support multi languages, saw the folder but no description in the intro and nothing in the demo like a language switch. Thanks

Add support for rel="canonical" link annotations

This is a feature request. While this is something which can be implemented by sites using the theme, it would be nice to have this support in the theme itself.

The idea is to have what sk3 is using in the enableUserCanonical parameter.

I found that this is needed in order to overcome an issue with Google Search Console, where public sites which refer to my site do so by adding a URL parameter, which generates an indexing error in Google Search console.
See discussion here: https://support.google.com/webmasters/thread/216999759/

The code potential change is minimal, and would require adding more documentation on top of it in order to create a clean PR.
https://gist.github.com/bugok/57addf42a5a47ae8e5594bb8af242386

I'd be happy to submit a PR for this myself, I'm opening this issue to understand if @Vimux thinks this is a good idea or not. If it's a good idea - please let me know how you'd like the PR to look in terms of expected changes, and testing.

Thanks!

Mastodon: fix url generation

Currently, binario makes the assumption that mastodon users use the mastodon.social instance. This assumption is incorrect for an estimated 78% of mastodon users. I originally ran into this issue after putting my mastodon username into the config:

[Params.Social]
  mastodon = "@[email protected]"

This created a link to: https://mastodon.social/@@[email protected]

The correct link would have been: https://mst3k.interlinked.me/@jadenw

Mastodon usernames are structured as follows:

@username@instance

And user homepages:

https://instance/@username

Broken empty homepage on Hugo v0.57+

Hugo 0.57 breaks how the home section works and causes problems for many themes (including Binario).

Due to the nature of the changes that were introduced in Hugo v.0.57.0 (briefly described in #678 (comment) a great number of theme demos now display empty homepages and/or post lists that point to section lists (instead of individual posts).

gohugoio/hugoThemes#682

Build warning about elements being deprecated

When I built my site, I got the following errors:

Building sites … WARN 2019/06/09 19:25:58 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function. WARN 2019/06/09 19:25:58 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like: {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}. WARN 2019/06/09 19:25:59 Page's .UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID. WARN 2019/06/09 19:25:59 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}

Menus

Not exactly an "issue", but I hope you don't mind. :)

I've been trying for some time to figure out how to re-order the main menu items. I don't know any front-end stuff really. I am using Hugo via an R package called blogdown. I'm usually pretty good at figuring stuff out - taught myself R that way. But I haven't figured this out after a pretty diligent effort (I promise).

So, how do I re-order the items in my main menu?

Using tags in Params.Entry is causing a hugo error

Versions

OS version: MacOS Monterey 12.2.1
hugo version:

$ hugo version
hugo v0.92.2+extended darwin/amd64 BuildDate=unknown

binario version: Running off of commit 2b03419d526ee21e2a325932c96b79d994782dcb

Reproducing the issue:

Demo: sources: https://github.com/bugok/blog. Live at https://bugok.github.io/blog/
When changing the line 36 of the config.toml file from meta = ["date", "categories"] to meta = ["date", "categories", "tags"], I get the following error when running hugo:

0|[noamler@noamler-mbp]:blog (main)$ hugo
Start building sites …
hugo v0.92.2+extended darwin/amd64 BuildDate=unknown
ERROR 2022/03/04 10:21:38 render of "taxonomy" failed: execute of template failed: template: _default/list.html:13:8: executing "main" at <.Render>: error calling Render: failed to execute template ["summary"] v: execute of template failed: template: _default/summary.html:7:5: executing "_default/summary.html" at <partial "entry/meta.html" (dict "page" . "class" "mt tar")>: error calling partial: "/Users/noamler/sources/blog/themes/binario/layouts/partials/entry/meta.html:8:7": execute of template failed: template: partials/entry/meta.html:8:7: executing "partials/entry/meta.html" at <partial $metaFieldPath $page>: error calling partial: partial "entry/meta/tags.html" not found
ERROR 2022/03/04 10:21:38 render of "page" failed: execute of template failed: template: _default/single.html:7:8: executing "main" at <partial "entry/meta.html" (dict "page" . "class" "mb")>: error calling partial: "/Users/noamler/sources/blog/themes/binario/layouts/partials/entry/meta.html:8:7": execute of template failed: template: partials/entry/meta.html:8:7: executing "partials/entry/meta.html" at <partial $metaFieldPath $page>: error calling partial: partial "entry/meta/tags.html" not found
ERROR 2022/03/04 10:21:38 render of "home" failed: execute of template failed: template: index.html:14:8: executing "main" at <.Render>: error calling Render: "/Users/noamler/sources/blog/content/post/im_the_tech_lead_i_can_create_panic.md:8:7": failed to execute template ["summary"] v: execute of template failed: template: _default/summary.html:7:5: executing "_default/summary.html" at <partial "entry/meta.html" (dict "page" . "class" "mt tar")>: error calling partial: "/Users/noamler/sources/blog/themes/binario/layouts/partials/entry/meta.html:8:7": execute of template failed: template: partials/entry/meta.html:8:7: executing "partials/entry/meta.html" at <partial $metaFieldPath $page>: error calling partial: partial "entry/meta/tags.html" not found
ERROR 2022/03/04 10:21:38 render of "section" failed: execute of template failed: template: _default/list.html:13:8: executing "main" at <.Render>: error calling Render: "/Users/noamler/sources/blog/content/post/im_the_tech_lead_i_can_create_panic.md:8:7": failed to execute template ["summary"] v: execute of template failed: template: _default/summary.html:7:5: executing "_default/summary.html" at <partial "entry/meta.html" (dict "page" . "class" "mt tar")>: error calling partial: "/Users/noamler/sources/blog/themes/binario/layouts/partials/entry/meta.html:8:7": execute of template failed: template: partials/entry/meta.html:8:7: executing "partials/entry/meta.html" at <partial $metaFieldPath $page>: error calling partial: partial "entry/meta/tags.html" not found
Error: Error building site: failed to render pages: render of "taxonomy" failed: execute of template failed: template: _default/list.html:13:8: executing "main" at <.Render>: error calling Render: failed to execute template ["summary"] v: execute of template failed: template: _default/summary.html:7:5: executing "_default/summary.html" at <partial "entry/meta.html" (dict "page" . "class" "mt tar")>: error calling partial: "/Users/noamler/sources/blog/themes/binario/layouts/partials/entry/meta.html:8:7": execute of template failed: template: partials/entry/meta.html:8:7: executing "partials/entry/meta.html" at <partial $metaFieldPath $page>: error calling partial: partial "entry/meta/tags.html" not found
Total in 60 ms

paginate param not effect

I set the paginate = "10" in my config.toml but in the home page it can't work.

Maybe I'm doing something wrong?

This is my github pages: Click Here

Theme doesn't load images properly when using a non-root baseurl

I'm using /fantasy/ as my baseurl. CSS and JS are loading fine, however images aren't. I found this thread which suggests that it's a theme issue. Normally I'd try to open a PR but I don't really understand what's going on here so I'm just opening a ticket instead. Is this solvable?

I can't just rewrite the URL in nginx to workaround the issue unfortunately because I'm hosting two separate blogs on my domain, so the other one needs to have the base url work normally.

Thanks!

Here's a link to my site in case it helps - but there's spoilers for several fantasy novels on it, so be careful. The images are meant to break up the spoiler part from the non-spoiler part.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.