Giter Club home page Giter Club logo

ublogger's Introduction

uBlogger Theme | Hugo

GitHub release (latest by date) Hugo License Netlify Status

uBlogger is a clean, elegant but advanced blog theme for Hugo.

It is based on the original LoveIt Theme.

Since the three themes have a similar look, if you have questions about their differences, read Why choose uBlogger so that you can choose the one that works best for you.

Hugo Theme uBlogger

⚠️ Information for those who move with LoveIt theme ⚠️

Skip to the next section if you do not know about LoveIt

If you have used the LoveIt theme, I have a message for you, make sure to read it.

To see this theme in action, here is a live demo site which is rendered with uBlogger theme.

Why choose uBlogger

Compared to the original LeaveIt theme and the KeepIt theme, the uBlogger theme has the following modifications.

  • Custom Header
  • Custom CSS Style
  • A new home page, compatible with the latest version of Hugo
  • A lot of style detail adjustments, including color, font size, margins, code preview style
  • More readable dark mode
  • Some beautiful CSS animations
  • Easy-to-use and self-expanding table of contents
  • More social links, share sites and comment system
  • Search supported by Lunr.js or algolia
  • Copy code to clipboard with one click
  • Extended Markdown syntax for Font Awesome icons
  • Extended Markdown syntax for ruby annotation
  • Extended Markdown syntax for fraction
  • Mathematical formula supported by KaTeX
  • Diagram syntax shortcode supported by mermaid
  • Interactive data visualization shortcode supported by ECharts
  • Mapbox shortcode supported by Mapbox GL JS
  • Embedded music player supported by APlayer and MetingJS
  • Bilibili player supported
  • Kinds of admonitions shortcode supported
  • Custom style shortcodes supported
  • CDN for all third-party libraries supported
  • ...

In short, if you prefer the design language and freedom of the uBlogger theme, if you want to use the extended Font Awesome icons conveniently, if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts, the uBlogger theme may be more suitable for you.

I hope you will uBlogger ❤️!

Features

Performance and SEO

  • Optimized for performance: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights
  • Optimized SEO performance with a correct SEO SCHEMA based on JSON-LD
  • Google Analytics supported
  • Fathom Analytics supported
  • Yandex.Metrica supported
  • Search engine verification supported (Google, Bind, Yandex and Baidu)
  • CDN for third-party libraries supported
  • Automatically converted images with Lazy Load by lazysizes

Appearance and Layout

  • Responsive layout
  • Light/Dark mode
  • Globally consistent design language
  • Pagination supported
  • Easy-to-use and self-expanding table of contents
  • Multilanguage supported and i18n ready
  • Beautiful CSS animation

Social and Comment Systems

  • Gravatar supported by Gravatar
  • Local Avatar supported
  • Up to 64 social links supported
  • Up to 28 share sites supported
  • Remark42 comment system sypported by Remark42. I recommend using it.
  • Disqus comment system supported by Disqus
  • Gitalk comment system supported by Gitalk
  • Valine comment system supported by Valine
  • Facebook comments system supported by Facebook
  • Telegram comments system supported by Telegram Comments
  • Commento comment system supported by Commento
  • Utterances comment system supported by Utterances

Extended Features

  • Search supported by Lunr.js or algolia
  • Twemoji supported
  • Automatically highlighting code
  • Copy code to clipboard with one click
  • Extended Markdown syntax for Font Awesome icons
  • Extended Markdown syntax for ruby annotation
  • Extended Markdown syntax for fraction
  • Mathematical formula supported by KaTeX
  • Diagrams shortcode supported by mermaid
  • Interactive data visualization shortcode supported by ECharts
  • Mapbox shortcode supported by Mapbox GL JS
  • Music player shortcode supported by APlayer and MetingJS
  • Bilibili player shortcode
  • Kinds of admonitions shortcode
  • Custom style shortcode
  • Custom script shortcode
  • Dynamic scroll supported by Smooth Scroll
  • Cookie consent banner supported by cookieconsent
  • ...

Documentation

Build Documentation Locally:

hugo server --source=exampleSite

Multilingual and i18n

uBlogger supports the following languages:

  • English
  • Simplified Chinese
  • French
  • Polish
  • Brazilian Portuguese
  • Italian
  • Spanish
  • German
  • Serbian
  • Russian
  • Romanian
  • Vietnamese
  • Contribute with a new language

Questions, ideas, bugs, pull requests

All feedback is welcome! Head over to the issue tracker.

License

uBlogger is licensed under the MIT license. Check the LICENSE file for details.

Thanks to the authors of following resources included in the theme:

Author

uPagge

Sponsor

If you enjoy the theme, please set the star for the project or/and consider buying me a coffee ☕️.

Thanks! ❤️❤️❤️

ublogger's People

Contributors

astropenguin avatar automationd avatar chinkung avatar cmpsoares91 avatar coliff avatar davea-w avatar dependabot[bot] avatar devandreacarratta avatar dillonzq avatar dogukanerel avatar edte avatar enmanuelmoreira avatar fastbyte01 avatar fedomn avatar hrittikhere avatar jfermat avatar noaione avatar programazing avatar psi59 avatar ramrodo avatar silkehenderickx avatar solarpowerinncr avatar thejayhaykid avatar thliang01 avatar tlereste avatar upagge avatar vanildosouto avatar victor-pogor avatar youngxhui avatar zeridon 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ublogger's Issues

[BUG] TOC does not always render correctly

Describe the bug

The static TOC is not always correctly rendered when resizing the screen or viewing the page on a tablet, e.g. iPad Pro 11 in landscape mode (works fine in portrait mode orientation). See the following three screenshots:

Normal view:

image

Resize window a bit so dynamic TOC disappears and static TOC appears. Note that the content does not show in the TOC (bug):

image

Resize a bit more until eventually the TOC will correctly show up:

image

Expected behavior

LoveIt theme does not show this behavior, i.e. immediately shows static TOC at some point with full content.

Screenshots

See above.

Build Environment

Used the live reference from https://ublogger.netlify.app/theme-documentation-built-in-shortcodes/

Preview Environment

Used the live reference from https://ublogger.netlify.app/theme-documentation-built-in-shortcodes/

Additional Information

Configuration files or front matter code...

[BUG] Gists aren't showing indents

Describe the bug

I'm trying to embed code fragments from GitHub Gists using the built-in gist short code. The Gist is rendering, but it is not showing indents. All of the text is left justified. It appears to be happening on the demo site too: https://ublogger.netlify.app/theme-documentation-built-in-shortcodes/#2-gist

Expected behavior

The Gist should show with proper indents.

Screenshots

gist

Build Environment

  • OS: macOS
  • Theme version/commit 1.2.0
  • Hugo version 0.80.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: macOS
  • Browser: Chrome, Safari

[BUG] images only render when post filename is named index

Describe the bug

Images related to a post page only render correctly when the file name prefix of a post is in the following format:

index.en.md

or some other 2 character language code

e.g.
index.cn.md etc.

No images render when a file name prefix is not named index.

Please note that within a post, I am unable to see rendered images when using regular markdown syntax such as the following in a test post:

![sample image](foo-test.png "sample image test")

Expected behavior

Images should render regardless of what the file name prefix is.

for example:

bar-foo-post.en.md

Front Matter code in post page

---
title: " Bar and Foo Image Test Post"

resources:
- name: "featured-image"
  src: "bar-sample-image.png"
- name: "foo-test"
  src: "foo-test.png"
---

What actually happens

As soon as the final name is changed from bar-foo-post.en.md to index.en.md images start rendering as expected.

Build Environment

  • OS: macOS 10.15.7
  • Theme version: 1.3.0
  • Hugo version hugo v0.81.0+extended darwin/amd64 BuildDate=unknown
  • hugo server --disableFastRender

Preview Environment

  • OS: macOS 10.15.7
  • Browsers: Firefox, Brave

[BUG] Comment frame not in the center

Describe the bug

I enabled comment like gitalk or telegram-comment, when rendered to the page, the comment frame not in the center.

Expected behavior

The comment frame should in the center..

Screenshots

image

Build Environment

  • OS: [macOS 10.15.6 (19G2021)]
  • Theme version/commit [1.3.X master newest]
  • Hugo version [e.g.v0.79.1]

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: [e.g. macOS]
  • Browser [e.g. Chrome, Safari]

[BUG] The picture on the home page doesn't seem to be full.

Describe the bug

The picture on the home page doesn't seem to be full.

Expected behavior

The picture fills the whole area.

Screenshots

image

Build Environment

  • OS: macOS
  • Theme version/commit 2.0.1
  • Hugo version 0.80.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: macOS
  • Browser Chrome

[BUG] Building issue with new version

Describe the bug

Hi, I downloaded new update and my site can't run anymore don't know why....

Expected behavior

Site loading correctly without error

Screenshots

failed to render pages: render of "page" failed: execute of template failed: template: posts/single.html:16:12: executing "posts/single.html" at <partial "head/seo.html" .>: error calling partial: "/home/nimgus/blog/themes/uBlogger/layouts/partials/head/seo.html:130:25": execute of template failed: template: partials/head/seo.html:130:25: executing "partials/head/seo.html" at <index .Site.Data.authors $publisherName>: error calling index: index of untyped nil

Build Environment

hugo v0.81.0-59D15C97+extended linux/amd64 VendorInfo=gohugoio
Theme version : 2.0.X

Preview Environment

OS: Windows 10
Browser: Brave

Additionnal informations

Maybe it could be related with the taxonomy error (pinned issue)

Thank you for your availability.

[BUG] Images are not resizing depending on the device

Describe the bug

The images are not resizing to the user's device, the result is sliding option to the right for users to be able to see the full images.

Expected behavior

Resized images fitted to the user's screen

Screenshots

image
image

Build Environment

I am using the github action to build it https://github.com/lerra/lezg.in/blob/master/.github/workflows/main.yml

  • OS: Ubuntu 18.04
  • Theme version/commit addce32
  • Hugo version 0.71.1

Preview Environment

https://lezg.in/

  • OS: Android & Ubuntu
  • Browser Chrome & Firefox

Additional Information

https://github.com/lerra/lezg.in/blob/master/content/posts/adding-an-api-to-my-grind-and-brew-coffee-machine-to-make-it-smart/index.en.md
https://lezg.in/adding-an-api-to-my-grind-and-brew-coffee-machine-to-make-it-smart/

[BUG] Wrong blockquote

Describe the bug

Wrong effect of markdown's '>'blockquote.

Expected behavior

Words after '>' should be blockquoted.

Screenshots

image

[BUG] Broken link in the documentation

Intro (and thanks!)

First of all: thanks for picking up the old theme and keeping up the support on this repo. I have chosen it as my theme of choice for my personal website, which I am trying to setup right now.

This here is not much of a bug, more like a broken link in the documentation site! I found myself reading the demo site documentation and wanting to check the code in the repo, but...

Describe the bug

When a user is reading the documentation at https://ublogger.netlify.app/ and click on the GitHub Icon to get to this repo, he/she is actually taken to https://github.com/upagge/dolboblog-theme, which servers a 404 Error page.

Expected behavior

I would expect this link to take me to: https://github.com/uPagge/uBlogger

Screenshots

image

[BUG] Some problem...

Thank you for your work. When I add to config.toml

# Author config
[author]
name = "Marcin"

The page stops displaying, errors appear:

ERROR 2020/12/24 18:37:13 render of "page" failed: execute of template failed: template: posts/single.html:129:16: executing "no-content" at <partial "single/footer.html" .>: error calling partial: "/home/noiro/Projekty/Hugo projekty/test/themes/uBlogger/layouts/partials/single/footer.html:11:14": execute of template failed: template: partials/single/footer.html:11:14: executing "partials/single/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil

Hugo Static Site Generator v0.79.1/extended linux/amd64

Screenshots

(https://ibb.co/VNSM6Tx)
(https://ibb.co/8mJ69sV)

Build Environment

  • OS: Debian
  • Theme version/commit 1.1.0

[FEATURE] use HTML format in markdown

I use raw HTML in markdown, hugo doesn't render.

I use <img src="https://static-1257291176.cos.ap-hongkong.myqcloud.com/pic/1610098201732.jpg" alt="1610098201732" style="zoom:50%;" /> to zoom picture.

This is display properly in Typora, but not in website.
image
image

Is it possiable to render raw HTML?

[BUG] Avatar broken on every home page after page 1

Describe the bug

The avatar image is broken and not displaying on pages after the first page in the home page.

Expected behavior

I expect the avatar image to load on all pages of the home page.

Screenshots

Here is the first page of my home page, with the avatar loading correctly:
Screen Shot 2021-03-26 at 9 33 30 AM
Here is the second page, with the avatar broken:
Screen Shot 2021-03-26 at 9 33 35 AM

Build Environment

  • OS: MacOs
  • Theme version/commit: I'm not sure how to find the theme version, maybe you can advise me on this, but it is 2.X.X.
  • Hugo version [e.g. 0.69.0]: hugo v0.82.0+extended darwin/amd64 BuildDate=unknown

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android] MacOS. Bug is visible on preview and live server.
  • Browser [e.g. Chrome, Safari, Firefox]: Brave and Safari

Additional Information

Configuration files or front matter code...

[BUG] Unable to override scss files

Describe the bug

While playing woth the theme and tweaking a bit the content length i discovered that it is not possible to override the theme scss files.

Expected behavior

NOTE: This behaviour is observed with the ext version of hugo
Hugo supports overriding parts of theme by placing them in your project in the corresponding directory. e.g. if you have theme/uBlogger/assets/css/_uBlogger.scss and you create a file assets/css/_uBlogger.scss its content should take precedence.

This does not happen due to resources folder being committed into the repo. REF: https://sammart.in/hugo-css-override-failure/

Build Environment

  • OS: linux (docker) image is klakegg/hugo:ext-alpine (at the moment 0.82)
  • Theme version/commit: 1.3.0/addce32
  • Hugo version: 0.82

[FEATURE] [TOC] Auto wrap exceesively long heading

Target

Wide-screen TOC (The one displayed at top-right)

Current behavior

If the heading is too long, the TOC will overflow the x-axis; creating a horizontal scrollbar; making the heading unreadable unless you use the scrollbar.

Screenshot

Screenshot_20210216_175748

Describe the feature you want

It would be better if the TOC automatically wrap the exceesive characters into a new line. That way, we don't have to use horizontal scrollbar to read the TOC.

[BUG] Unable to build website

Describe the bug

When I execute hugo server at v0.79.1/extended windows/amd64 ,

I copy the config.toml from themes\uBlogger\exampleSite\ ,
then show an error as follow.

BUT, when using Basic Configuration ,it's ok ,and just cannot show homepage (Other pages are normal)

Screenshots

Start building sites …
WARN 2020/12/31 20:40:00

Current environment is "development". The "comment system", "CDN" and "fingerprint" will be disabled.
当前运行环境是 "development". "评论系统", "CDN""fingerprint" 不会启用.

ERROR 2020/12/31 20:40:01 render of "page" failed: execute of template failed: template: posts/single.html:131:16: executing "no-content" at <partial "single/footer.html" .>: error calling partial: "D:\youdef.com\themes\uBlogger\layouts\partials\single\footer.html:11:14": execute of template failed: template: partials/single/footer.html:11:14: executing "partials/single/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil
ERROR 2020/12/31 20:40:01 render of "page" failed: execute of template failed: template: posts/single.html:131:16: executing "no-content" at <partial "single/footer.html" .>: error calling partial: "D:\youdef.com\themes\uBlogger\layouts\partials\single\footer.html:11:14": execute of template failed: template: partials/single/footer.html:11:14: executing "partials/single/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil
ERROR 2020/12/31 20:40:01 render of "page" failed: execute of template failed: template: _default/single.html:34:16: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "D:\youdef.com\themes\uBlogger\layouts\partials\footer.html:36:30": execute of template failed: template: partials/footer.html:36:30: executing "partials/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil
ERROR 2020/12/31 20:40:01 render of "home" failed: execute of template failed: template: index.html:36:20: executing "content" at <.Render>: error calling Render: "D:\youdef.com\content\posts\daohang.md:42:26": failed to execute template ["summary"] v: "D:\youdef.com\themes\uBlogger\layouts\_default\summary.html:42:26": execute of template failed: template: _default/summary.html:42:26: executing "_default/summary.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil
Built in 275 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:34:16: executing "_default/single.html" at <partial "footer.html" .>: error calling partial: "D:\youdef.com\themes\uBlogger\layouts\partials\footer.html:36:30": execute of template failed: template: partials/footer.html:36:30: executing "partials/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil

Build Environment

  • OS: [Windows 10,]
  • Theme version/commit [ ?how to see, maybe lastest ]
  • Hugo version [v0.79.1/extended windows/amd64 ]

Please try to use Hugo extended version before opening the issue.

Screenshot of homepage by using Basic Configuration

(https://s3.ax1x.com/2020/12/31/rvgC6I.png)

[BUG] failed to unmarshal YAML

Describe the bug

When adding a new post, hugo reports an error:

/content/posts/dotfiles-git/index.md:12:1": failed to unmarshal YAML: yaml: line 11: found character that cannot start any token

these are the files that cause the error:: https://github.com/MarcinKlejna/issues

Build Environment

  • OS: [Debian]
  • Theme version/commit [1.2.0]
  • Hugo version [e.g. 0.80.0]

[BUG] echarts not defined

Describe the bug

When using the echarts shortcode I get
theme.js:724 ReferenceError: echarts is not defined
at theme.js:528
at a.forEach (theme.js:4)
at a._echartsOnSwitchTheme (theme.js:527)
at a.initEcharts (theme.js:534)
at a.init (theme.js:720)
at HTMLDocument.themeInit (theme.js:740)
init @ theme.js:724
themeInit @ theme.js:740

Expected behavior

The chart should appear.

Build Environment

  • OS: Windows 10
  • Theme version/commit 2.0.1
  • Hugo version v0.78.2/extended

Preview Environment

  • OS: Windows 10
  • Browser Chrome

[BUG] archetypes/default.md tags and categories default values crash

Describe the bug

Following tutorial and adding first page by

hugo new posts/first_post.md

results in error.

image

Changing archetypes/default.md, lines 16 and 17 values [""] to [] and re-creating post fixes the error.

commit d8e0d9c introduced the bug, by changing [] to [""] in archetypes/default.md

Expected behavior

Adding new post with default archetypes (inferred from uBlogger theme) should work and not crash

Screenshots

image

Build Environment

  • OS: Windows10/WSL1
  • Theme version/commit addce327bafbe7991baf2897def687b23a1864aa themes/uBlogger (1.3.0-2-gaddce32)
  • Hugo version Hugo Static Site Generator v0.80.0/extended linux/amd64 BuildDate: unknown

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: Windows 10
  • Browser: Firefox

Additional Information

If I have time I'll create PR later :)

[BUG] [TOC] Unable to nest heading beyond 2 level

Describe the bug

The Table of Content (TOC) outlines the headings as written in the markdown / HTML. However, this is only true for up to 2 level nesting. Beyond that, the TOC stops outlining them.

Expected behavior

I expected headings beyond level 2 to be displayed in the TOC.

Screenshots

Source Code:

Screenshot_20210216_162405

Output:

Screenshot_20210216_164016

Screenshot_20210216_164032

Expected Output:

Screenshot_20210216_163951

Build Environment

  • OS: Ubuntu 20.04 LTS
  • Theme version: 1.3.0 (Latest)
  • Hugo version: v0.80.0-extended

Preview Environment

  • OS: Ubuntu 20.04 LTS
  • Browser: Chromium 88.0.4324.150

Additional Information

I wish the issue ends here, but it's not. It creates another problem if you insist on nesting heading beyond 2 level. I'll start a new issue for it.


The screenshot is produced from a freshly installed Hugo site, with a freshly installed uBlogger theme.

[BUG] New post doesn't show TOC

Hello. Thank you very much for this lovely theme. I like it.

I'm using the blogdown R package and .rmd (R Markdown) document to build my website.

However, I encountered a problem as follow:

Describe the bug

My new post doesn't show TOC, although I've set thetoc as yes.

Expected behaviour

show TOC.

Screenshots

Please see this post.

Build Environment

  • OS: macOS
  • Theme version/commit: just download several days ago
  • Hugo version: 0.80.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: macOS
  • Browser: Chrome

Additional Information

The YAML head of this post:

---
title: Writing Process
author: Xiaochi Liu
date: '2021-02-13'
slug: []
categories:
  - Scientific Writing
tags:
  - Scientific Writing
subtitle: ''
lastmod: '2021-02-13T22:28:04+11:00'
description: ''
summary: "Writing process for publication"
theme: classic
upd: ''
authorComment: ''
hiddenFromHomePage: no
hiddenFromSearch: no
resources:
  - name: featured-image
    src: featured-image.jpg

toc:
  enable: true
  auto: true
math:
  enable: yes
lightgallery: no
license: ''
---

And the full repo built by blogdown is here.

Many thanks for your kind guidance

[BUG] [TOC] Incorrect heading is highlighted if you nest beyond 2 level

Describe the bug

This is an additional issue caused by #38

The wide-screen TOC (the one displayed at the top-right) highlights the heading you're currently on. Which is a nice feature to have. However, if there is a heading nested under the heading you're currently in, the next eligible heading will be displayed instead. For this to happen, your current heading has to be level 2, and the next heading has to be level 3.

Note: the eligible heading to be displayed in the TOC are level 1 and level 2 nested. See #38 for detail.

Expected behavior

It should highlight the correct heading, which is the one you're currently in.

Screenshots

Source Code:

Screenshot_20210216_171722

1.1 is level 1
1.2 is nested to 1.1 (level 2)
3.1 is nested to 2.1 (level 3)

The same goes with 2.2, 2.2 and 3.2

Output:

Screenshot_20210216_171830
3.1 is nested under 2.1, which means we're still on heading or section 2.1 However, the TOC shows otherwise. They highlighted the next eligible heading. Which is a level 1 heading (1.2).

The problem continues when we scroll down a bit:
Screenshot_20210216_171944
We're still on 3.1, yet the TOC highlighted 2.2, jumped 2 headings.

Build Environment

OS: Ubuntu 20.04 LTS
Theme version: 1.3.0 (Latest)
Hugo version: v0.80.0-extended

Preview Environment

OS: Ubuntu 20.04 LTS
Browser: Chromium 88.0.4324.150

Additional Information

The screenshot is produced from a freshly installed Hugo site, with a freshly installed uBlogger theme.

Documentation error - social.yml vs. social.yaml

uBlogger documentation uses the term social.yaml but the filename where social type items can be configured is currently named social.yml in this themes git repository.
Suggestion at this time is to just update the documentation to say social.yml.

Reference:

Screen Shot 2021-02-26 at 3 25 32 PM

ERROR render "taxonomy" failed | $authorName

Hi,
first of all I congratulate you on having updated my favorite theme in an exceptional way.
When I finish editing config.toml and start with "hugo serve" it gives me the following errors:

ERROR 2021/01/13 14:14:14 render of "taxonomy" failed: execute of template failed: template: taxonomy/terms.html:34:16: executing "taxonomy/terms.html" at <partial "footer.html" .>: error calling partial: "C:\Users\vitos\Documents\antonioas.com\themes\uBlogger\layouts\partials\footer.html:36:30": execute of template failed: template: partials/footer.html:36:30: executing "partials/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil

ERROR 2021/01/13 14:14:14 render of "home" failed: execute of template failed: template: index.html:34:16: executing "index.html" at <partial "footer.html" .>: error calling partial: "C:\Users\vitos\Documents\antonioas.com\themes\uBlogger\layouts\partials\footer.html:36:30": execute of template failed: template: partials/footer.html:36:30: executing "partials/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil Built in 154 ms

Error: Error building site: failed to render pages: render of "taxonomy" failed: execute of template failed: template: taxonomy/terms.html:34:16: executing "taxonomy/terms.html" at <partial "footer.html" .>: error calling partial: "C:\Users\vitos\Documents\antonioas.com\themes\uBlogger\layouts\partials\footer.html:36:30": execute of template failed: template: partials/footer.html:36:30: executing "partials/footer.html" at <index .Site.Data.authors $authorName>: error calling index: index of untyped nil

Surely the cause of this error is me who am inexperienced because this is the second time I try another Hugo theme.

Thank you for your availability.

[BUG] Avatar image placement seems incorrect

Thank you for creating and maintaining this awesome theme!

Describe the bug

I have configured an avatar image in the config.toml file like this:

  [params.home]
    rss = 10

    [params.home.profile]
      enable = true
      gravatarEmail = ""
      avatarURL = "richard.jpeg"
      title = "Welcome to my blog 👋"
      subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec faucibus tempus justo id feugiat. Praesent eget hendrerit massa. Vestibulum nec molestie lacus. Nunc eu tincidunt purus. Cras luctus laoreet mauris. Etiam metus sem, venenatis ac turpis sed, imperdiet porta enim."
      social = true

The problem is that my profile image is displayed above the text like this:

image

I believe the image is supposed to be placed left of the text. Just like on the uBlogger page, like this:

image

Expected behavior

Avatar image is displayed on the left side of the text

Build Environment

  • OS: macOS Big Sur 11.2.1
  • Theme commit: addce32
  • Hugo version: v0.80.0/extended

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: OS: macOS Big Sur 11.2.1
  • Browser: Chrome, Safari

Different angles in articles previews

Describe the bug

The corners of articles in the homepage have different angles only if the screen width is between 1200px and 960px.

Expected behavior

Corners of the image inside the article preview should match its parent/cointainer.

Screenshots

image

Preview Environment

  • OS: Arch Linux
  • Browser: Firefox (desktop and mobile)

How to replicate the issue

Open the homepage of https://ublogger.netlify.app and resize the window of your browser

[BUG] Share to HackerNews doesn't work

The problem

When trying to enable sharing posts to HackerNews by way of e.g.

[params.page.share]
enable = true
Twitter = true
Facebook = true
HackerNews = true

it doesn't add a button for sharing to HackerNews.

Expected behavior

I expect a share to HackerNews icon/link to appear at the bottom of the post, along with other buttons.

Screenshots

image

Build Environment

  • OS: Arch Linux
  • Theme version/commit: addce32
  • Hugo version: 0.80.0

Preview Environment

  • OS: Arch Linux
  • Browser: Chromium 87.0.4280.141

[BUG] Layout problem

Describe the bug

Hi, Thank you for your work on this amazing theme. I have a problem with the new front matter. When I open a post page, I see a lot of white space in the right section. Look at the below image:

Screenshot

Screenshot_2020-12-23_18-56-20

Build Environment

  • OS: [Ubuntu]
  • Theme version/commit [1.1.X]
  • Hugo version [v0.79.1/extended]

Preview Environment

  • OS: [e.g. Windows 10, macOS, Ubuntu, iOS, Android]
  • Browser [e.g. Chrome, Safari, Firefox]

Additional Information

I have this problem on a wide monitor with high resolution (30 inches - 2560 * 1080). And the problem exists even when I'm visiting the demo site.

Featured images don't load on home page

Describe the bug

I have just updated the theme to version 2.0.1. The featured images that I have configured in my posts are not displayed on the home page anymore. When using the Developer tools of my browser, I see that the images are not loaded and that a 404 error is shown. However, when I open my posts, the image are loaded successfully in the post page itself.

I noticed that the path to the images is not correct on the home page. It's expecting the path to be http://localhost:1313/myimage.jpg. However I am using page bundles, so the images are stored in the following path: http://localhost:1313/posts/<postname>/myimage.jpg

Again, when opening an individual post the images are loaded just fine. Only not on the home page.

Expected behavior

On the home page, for each post a featured image should be displayed.

Screenshots

The image below shows the Developer tools of my browser. You can see that the images are not loaded on the home page.

image

Build Environment

  • OS: MacOS 11.2.3
  • Theme version/commit: 2.0.1, 4e7b1fd
  • Hugo version: 0.81.0 extended

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: MacOS 11.2.3
  • Browser: Chrome, Safari

[BUG] Incorrect position of comment section and tags in posts

Describe the bug

When you open a post, the tags position and comment section are not in right place.

Expected behavior

They should align in the center.

Screenshots

Screenshot_2020-12-31_14-57-09

Build Environment

  • OS: [Ubuntu]
  • Theme version/commit 1.2.X]
  • Hugo version [0.79]

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: [Ubuntu]
  • Browser [Chrome]
  • Monitor Size and Resolution [30 inches - 2560 * 1080]

[BUG] back and forward buttons are really really huge...

Describe the bug

The back and forward buttons below each post are really huge in my case, not sure what went wrong

Expected behavior

Smaller buttons :D

Screenshots

If applicable, add screenshots to help explain your problem.
bigbutton

Build Environment

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: Fedora 33
  • Browser Firefox, Brave Browser

Additional Information

Configuration files or front matter code...

Blockquotes in Markdown didn't work well.

Describe the bug

When I use > to quote some words, the markdown seems not to work well.

You can see the rendering result is very different from the LoveIt theme.

Screenshots

Screen Shot 2021-03-10 at 1 01 24 PM

Screen Shot 2021-03-10 at 1 07 25 PM

Build Environment

  • OS: [e.g. macOS]
  • Theme version/commit [e.g. 1.3.0]
  • Hugo version [v0.81.0+extended]

Preview Environment

  • OS: [macOS]
  • Browser [Chrome, Safari]

[BUG] Featured Images seem to HAVE to be called featured-image.<extension> in order to work

Describe the bug

I have tried featured images in various options, with random names, various yaml tags, when not called featured-image. it will cause the image to produce a broken link, even when using Page Resources as described.

Expected behavior

featuredImage: picture.jpg

or

resources:
- name: "picture"
  src: "picture.jpg"

should display the Featured Image picture.jpg

Instead, it ONLY works when naming it featured-image.

Build Environment

  • OS: Windows 10 Enterprise [2004/19041.685]
  • Theme version/commit 1.1.0
  • Hugo version Hugo Static Site Generator v0.79.1/extended windows/amd64

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: Windows 10 Enterprise [2004/19041.685]
  • Browser Edge Chromium

[BUG] Update Screenshots in the Documentation

Describe the bug

Since you have decided to rebrand the theme to uBlogger once you took over its maintenance, it would be good to update the documentation site as well, so it looks more professional ;)

Expected behavior

I would expect that all screenshots in the documentation are using the name "uBlogger" instead of LoveIt.

Screenshots

One example can be seen below. There might be others, but I have not gone through the whole docs yet 😋

image

[BUG] I see latest release, but i cant see where to add ads advertising.

Describe the bug

I recent found this new theme based on LoveIt, and i like too mucho. This have more features and updates than LoveIt. I want to add and ads advertising, like your latest release. But i can't find where to add that lines!

Build Environment

  • OS: [Archlinujx]
  • Theme version/commit [2.0.2]
  • Hugo version [latest]

[FEATURE] GDPR compliance

Describe the feature you want

  • Disable font loading from any CDN (e.g. fonts.gstatic.com) via configuration property
  • In general being able to disable any communication to hosts other than the one hosting the website

Only thing I saw in the network console was fonts.gstatic.com and fonts.googleapis.com so far. Not sure wether there is anything else.

Useful reference

According to GDPR it is not allowed to send personal data to anybody, unless the user has given consent. As this is not possible for fonts (before page is loaded!) all assets need to be self-hosted.

[BUG] dot run

PS E:\uBlogger\exampleSite> hugo serve
Start building sites …
WARN 2020/12/07 10:05:06

Current environment is "development". The "comment system", "CDN" and "fingerprint" will be disabled.
当前运行环境是 "development". "评论系统", "CDN" 和 "fingerprint" 不会启用.

ERROR 2020/12/07 10:05:27 Failed to get JSON resource "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=true": Get "https://api.twitter.com/1/statuses/oembed.json?id=877500564405444608&dnt=true": dial tcp 74.86.151.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]
Built in 21962 ms
Error: Error building site: logged 1 error(s)

[BUG] open article in new window

Describe the bug

At homepage, click article title should open page in same window, but it opened in new window

Expected behavior

open article in same window (browser tab)

Build Environment

  • OS: Win10
  • Theme: 4e7b1fd
  • Hugo version: 0.81.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: Win10
  • Browser Chrome

Additional Information

Configuration files or front matter code...

[BUG] Tags are displayed as categories

Describe the bug

Within a post preview only the category is shown (folder symbol). However, when navigating to "Categories" the list seems to also display tags as category folders.

Using the frontmatter shown in "Additional Information":
Post shows category cat 1, but /categories shows cat 1, t1 and t2 as categories.

Expected behavior

On /categories only the categories are displayed - without tags being displayed as categories as well.

Build Environment

  • OS: macOs
  • Theme version/commit addce32
  • Hugo version v0.80.0/extended

Preview Environment

  • OS: macOS
  • Browser Safari

Additional Information

tags:
  - t1
  - t2
categories:
  - cat 1

[FEATURE] Generate Hreflang Tags

Describe the feature you want

Hello,

For SEO purposes, it would be great to have the hreflang tags generated when a page is translated.

For instance:

<link rel="alternate" href="http://example.com" hreflang="es-es" />
<link rel="alternate" href="http://example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="http://example.com/pt/" hreflang="pt-pt" />

Temporarily, I added this snippet in the layouts\partials\head\link.html theme's file, and it seems to do the job:

{{ if .IsTranslated }}
  {{ range .AllTranslations }}
    <link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Language.Lang }}" />
  {{ end }}
{{ end }}

Useful reference

https://yoast.com/hreflang-ultimate-guide/

[BUG] comment section not centered when enable toc

Describe the bug

comment section align left when enable toc

Expected behavior

comment section should be centered with article section

Screenshots

image

Build Environment

  • OS: Win10
  • Theme: 4e7b1fd
  • Hugo version: 0.81.0

Please try to use Hugo extended version before opening the issue.

Preview Environment

  • OS: Win10
  • Browser Chrome

Additional Information

Configuration files or front matter code...

[BUG] Zero card margin in homepage if post doesn't have a Tag

Describe the bug

if you don't define any tags for your post (or remove the tags key from your post config part), the margin between posts in HomePage turns to zero.

Expected behavior

The normal margin between posts as usual.

Screenshots

Screenshot_2020-12-31_12-20-06

Build Environment

  • OS: [Ubuntu]
  • Theme version/commit [1.2.X]
  • Hugo version [0.79]

[BUG] uBlogger Module not found

Hi, i tried to install the uBlogger theme on hugo using Netlify but i dont manage to get the theme to work.
The hugo build seems to miss something about uBlogger despite the fact that the theme is a git submodule of the repository.

Here are the building logs :

8:22:07 PM: 1. build.command from netlify.toml
8:22:07 PM:
8:22:07 PM:
8:22:07 PM: $ hugo
8:22:07 PM: Total in 5 ms
8:22:07 PM: Error: module "uBlogger" not found; either add it as a Hugo Module or store it in "/opt".: module does not exist

Here is my netlify.toml file :

[build]
publish = "public"
command = "hugo"
[build.environment]
HUGO_VERSION = "0.78.2"
HUGO_THEME = "uBlogger"
HUGO_BASEURL = "https://XXX.netlify.app/"
[[headers]]
for = "/"
[headers.values]
Access-Control-Allow-Origin = "
"

I got the same issue on gitlab pages CI and trying hugo version 0.80.0

[BUG] The TOC doesn't highlight the current section of the page.

Describe the bug

First of all, sorry if my English is not correct, my native language is Spanish. Well, as I said in the title the TOC isn't working properly. Depending on the content it just gets crazy. I have tested it in Firefox and Chrome and building the exampleSite, but it is still not working. I even tried the demo.

Expected behavior

It should highlight the name of the current section, but it highlights any of the next sections. I don't know if there is some configuration I'm not considering, but I have checked the documentation and the config.toml that comes with the exampleSite and didn't find anything that can solve this.

Screenshots

In the next screenshot (theme-documentation-built-in-shortcodes), the "Instagram" tag gets highlighted, but we are in the "gist" section.
image

Build Environment

  • OS: Windows 10
  • Theme version/commit addce32
  • Hugo version 0.80.0 (extended)

Preview Environment

  • OS: Windows 10
  • Browsers: Chrome, Edge, Firefox

Additional Information

I would send my code, but I've also tried using the exampleSite and even the demo works this way.

[FEATURE] Featured image specific to light/dark mode

Describe the feature you want

A way to have a featured image specific to light/dark mode. Both post preview and post page should support featured images specific to light mode and dark mode. Currently, we can only have one featured image for a post.

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.