Giter VIP home page Giter VIP logo

hugo-theme-cleanwhite's Introduction

Clean White Theme for Hugo

CleanWhite is a clean, elegant, but fully functional blog theme for Hugo. Here is a live demo site using this theme.

It is based on huxblog Jekyll Theme and Clean Blog Jekyll Theme.

These two upstream projects have done awesome jobs to create a blog theme, what I'm doing here is porting it to Hugo, of which I like the simplicity and the much faster compiling speed. Some other features which I think could be useful, such as site search with algolia and proxy for Disqus access in China, have also been built in the CleanWhite theme. Other fancy features of upstream projects are not supported by this Hugo theme, I'd like to make it as simple as possible and only focus on blog purpose, at least for now. While I created this theme, I followed the Hugo theme best practice and tried to make every part of the template as a replaceable partial html, so it could be much easier for you to make your customization based on it.

Screenshots

Home screenshot

Post screenshot

Search screenshot

Archive screenshot

Disqus screenshot

Wechat Pay & Alipay screenshot

Mind Map screenshot

Bilibili Video screenshot

Quick Start

The simplest way is to start with the example site coming with this theme, then you can play around and add your own stuff.

$ mkdir test
$ cd test
$ mkdir themes
$ cd themes
$ git clone https://github.com/zhaohuabing/hugo-theme-cleanwhite.git
$ cp -r hugo-theme-cleanwhite/exampleSite/** ../
$ cd ..
$ hugo serve

If your site is already a git project, you may want to choose to add the cleanwhite theme as a submodule to avoid messing up your existing git repository.

$ mkdir themes
$ git submodule add https://github.com/zhaohuabing/hugo-theme-cleanwhite.git themes/hugo-theme-cleanwhite

Run Hugo Build-in Server Locally

$ hugo serve -t  hugo-theme-cleanwhite

Now enter localhost:1313 in the address bar of your browser.

If you start from scratch, there is a working Hugo site configured with the CleanWhite theme in the exampleSite directory. You can use it as a starting point for your site.

For more information read the official setup guide of Hugo

Configuration

First, let's take a look at the config.toml. It will be useful to learn how to customize your site. Feel free to play around with the settings.

Comment Systems

The following comment systems have been supported by this theme:

Giscus

Giscus is a comment system powered by GitHub Discussions.

Install the Giscus app on your GitHub repo, and set the parameters as below:

  [params.giscus]
  data_repo="your GitHub repo"
  data_repo_id="your repo id"
  data_category="your category"
  data_category_id="your category id"
  data_mapping="pathname"
  data_reactions_enabled="1"
  data_emit_metadata="0"
  data_theme="light"
  data_lang="en"
  crossorigin="anonymous"

Disqus

To enable Disqus, create an account in Disqus and write down your shortname.

disqusShortname = "your-disqus-short-name"

Disqus behind a proxy

If Disqus can't be directly accessed, we can set up a proxy with disqus-php-api in a host which sets between the client browser and the Disqus server. The idea is that if Disqus can be reached in the guest network, the blog page will show the original Disqus comments UI, otherwise, it will downgrade and use the proxy to access the Disqus, the UI will be a little different, but the visitors can still write their comments on the page.

The client side java script has already been integrated to CleanWhite them, but you need to set up a proxy server yourself.

The proxy is written in php, which can be found here: https://github.com/zhaohuabing/disqus-php-api/tree/master/api

You need to specify your Disqus account information in the config.php.

define('PUBLIC_KEY', '');
define('SECRET_KEY', '');
define('DISQUS_USERNAME', '');
define('DISQUS_EMAIL', '');
define('DISQUS_PASSWORD', '');
define('DISQUS_WEBSITE', '');
define('DISQUS_SHORTNAME', '');

Set the proxy server address in the site config file of your Hugo project.

disqus_proxy = "http://yourdisqusproxy.com"

Twikoo

Twikoo is a simple, safe, free comment system based on Tencent CloudBase (tcb).

To deploy Twikoo, please refer to the installation guide on the twikoo website.

Just enter the twikoo env_id in the configuration file to connect your blog to the deployed Twikoo.

 twikoo_env_id = "your twikoo env id"

Site Search with Algolia

Follow this tutorial to create your index in Algolia. The index is just the storage of the indexing data of your site in the the cloud . The search page of CleanWhite theme will utilize this indexing data to do the search.

Go to the directory where you have your Hugo site and run the following commands:

$ npm init
$ npm install atomic-algolia --save

Next, open up the newly created package.json, where we’ll add an NPM script to update your index at Algolia. Find "scripts", and add the following:

"algolia": "atomic-algolia"

Algolia index output format has already been supported by the CleanWhite theme, so you can just build your site, then you’ll find a file called algolia.json in your public directory, which we can use to update your index in Algolia. Generate index file:

$ hugo

Create a new file in the root of your Hugo project called .env, and add the following contents:

ALGOLIA_APP_ID={{ YOUR_APP_ID }}
ALGOLIA_ADMIN_KEY={{ YOUR_ADMIN_KEY }}
ALGOLIA_INDEX_NAME={{ YOUR_INDEX_NAME }}
ALGOLIA_INDEX_FILE={{ PATH/TO/algolia.json }}

Make sure double curly braces be replaced together.

Now you can push your index to Algolia by simply running:

$ npm run algolia

Add the following variables to your hugo site config so the search page can get access to algolia index data in the cloud:

algolia_search = true
algolia_appId = {{ YOUR_APP_ID }}
algolia_indexName = {{ YOUR_INDEX_NAME }}
algolia_apiKey = {{ YOUR_SEARCH_ONLY_KEY }}

Open search page in your browser: http://localhost:1313/search

Analytics

You can optionally enable Google or Baidu Analytics. Type your tracking code in the

googleAnalytics = "G-XXXXX"
ba_track_id  = "XXXXXXXXXXXXXXXX"

Leave the googleAnalytics or 'ba_track_id ' key empty to disable it.

Wechat Pay & Alipay Rewards

You can enable Wechat Pay & Alipay to allow readers send you money. So if they like your articles, you may even get rewards from your writing. Now you must be motivated to write more.

  • Enable Wechat Pay & Alipay in the site config
reward = true
  • Replace the QR codes of Wechat Pay & Alipay by overriding the photos in folder /static/img/reward/, otherwise the money will be sent to my accounts!

  • Enable Wechat Pay & Alipay in the site config

reward = true

Mind Map

Mind Map is supported with shortcode 'mind', instering the following code snippet into your markdown file can create a mind map showing in the screenshots.

{{% mind %}}
- Root
    - Level 1
        - Level 2
        - Level 2
            - Level 3
            - Level 3
                - Level 4
                    - Level 5
                        - Level 6
    - Level 1
        - Level 2
        - Level 2
     - Level 1
        - Level 2
        - Level 2
     - Level 1
        - Level 2
        - Level 2
     - Level 1
        - Level 2
        - Level 2
{{% /mind %}}

Embedded Videos

Use the below hugo shortcodes to embed videos into your posts.

Bilibili (B站)

{{< bilibili BV1kZ4y137gv >}}

Youtube

{{< youtube cllc1ZGlhsQ >}}

Vimeo

{{< vimeo 146022717 >}}

Plantuml

Plantuml support can be enabled at site or page level by adding the following line in the config.yaml or page header.

plantuml: true

Then you can just put plantuml source code in markdown files and the picture will be generated automatically.

An example:

```plantuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml
```

screenshot

Thanks

Thanks for the great jobs of huxblog Jekyll Theme and Clean Blog Jekyll Theme which are the the two upstream projects CleanWhite Hugo theme is based on.

Feedback

If you find any problems, please feel free to raise an issue or create a pull request to fix it.

If it's helpful for you, I would appreciate it if you could star this repository, thanks!

Who is using cleanwhite?(谁在使用 cleanwhite?)

Sincerely thank everyone who constantly keeps on using and supporting cleanwhite. Feel free to leave a comment on this issue to include information about your blog.

hugo-theme-cleanwhite's People

Contributors

anriclee avatar antoinedelia avatar bionade24 avatar cyhsieh264 avatar dhrp avatar gainskills avatar gbooker avatar gwyy avatar hannahhenderson avatar him2him2 avatar imgbotapp avatar jackkuo-tw avatar linux0x5c avatar markaldridge avatar mattwang44 avatar mephistoad avatar merikan avatar patricklam avatar santiagon610 avatar shadycuz avatar textworld avatar vinooganesh avatar wcushen avatar yukari-n-erb avatar zhaohuabing 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

hugo-theme-cleanwhite's Issues

404 when two pages are in different categories

This is actually caused by wrong setting

Hi, Thank you for your effort in building the theme at the very beginning.

When I build my blog using cleanwhite, I met a error that the page will turn into 404 if the next and previous page is not in the same category. For example, if the current page is included in category "TECH" and the next page is included in category "Blog", then the page will turn into 404 if I click the "NEXT" button.

However, sometimes it works well when they are included in two categories. Unfortunately, some even strange errors occur, when I click NEXT to turn page 1 to page 2, but it fails when I click PREVIOUS to turn page 2 to page 1.

I don't know if the settings are wrong in my hugo configuration toml.
Best,
Ricardo

About toc

Hey, How can I disable the TOC option for a post?
Please :(
I used toc: false but does not work.

How to control size paddin in header

Hi,

First of all thank you for simple and nice theme to hugo. I just started use it and first challenge is space for image in header. For my purpose I would like to have lower height for image and header / subheader. I am not web-developer - however as I can see <header> is having (on my script) hard-coded height (1910x398). How I can change height to be lower?

I would like to have space decrease by 2 for example (still able add some picture in background) but not have so much space consumed by header?

Could you advice how I can achieve this, please?

One more time - thank you for great theme.

Clean White Theme Demo Content does not meet Hugo website guidelines

Hello again @zhaohuabing

The theme demo has been updated and now it generates.

However the content you have in the demo is not allowed on the Hugo Themes website.

In the README there is a note about making the Example Site's content as neutral as possible.

Can you please remove everything that is Bitcoin and Cryptocurrency related as soon as possible?

You can also use the Example posts that can be found in the Hugo Basic Example for your theme's Example Site.

Furthermore I am getting several warnings about Mixed Content in your demo because you are using insecure external image URLs

Please change all insecure http image URLs to https.

The following report is not exhaustive but it shows that there are a lot of image URLs you need to fix (again if it's too much work you can simply remove everything and just use the posts from the Hugo Basic Example that I linked to above):

In theme/hugo-theme-cleanwhite/2017/11/08/istio-canary-release/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/istio-canary-release/canary-deployment.PNG
    http://img.zhaohuabing.com/in-post/istio-canary-release/canary-deployments.gif

In theme/hugo-theme-cleanwhite/2017/11/23/windows-proxy-scripts/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/windows-proxy-script/windows-task-trigger.PNG

In theme/hugo-theme-cleanwhite/2017/11/28/access-application-from-outside/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/access-application-from-outside/pod.PNG
    http://img.zhaohuabing.com/in-post/access-application-from-outside/services-iptables-overview.png
    http://img.zhaohuabing.com/in-post/access-application-from-outside/nodeport.PNG
    http://img.zhaohuabing.com/in-post/access-application-from-outside/load-balancer.PNG
    http://img.zhaohuabing.com/in-post/access-application-from-outside/multiple-load-balancer.PNG
    http://img.zhaohuabing.com/in-post/access-application-from-outside/ingress.PNG

In theme/hugo-theme-cleanwhite/2018/03/29/what-is-service-mesh-and-istio/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/microservice.PNG
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/1.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/2.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/sidecar.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/mesh.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/controlplane.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/k8s-ecosystem.PNG
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/istio-architecture.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/pilot.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/mixer2.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/auth.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/authorization.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/distributed-tracing.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/metrics-collecting.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/canary-1.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/canary-2.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/canary-3.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/circuitbreaker.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/circuitbreaker-parameters.png
    http://img.zhaohuabing.com/in-post/2018-03-29-what-is-service-mesh-and-istio/fault-injection.png

In theme/hugo-theme-cleanwhite/2018/04/11/service-mesh-vs-api-gateway/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-04-11-service-mesh-vs-api-gateway/service-mesh-vs-api-gateway.png
    http://img.zhaohuabing.com/in-post/2018-04-11-service-mesh-vs-api-gateway/api-gateway-with-service-mesh.png

In theme/hugo-theme-cleanwhite/2018/04/16/using-helm-to-deploy-to-kubernetes/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-04-16-using-helm-to-deploy-to-kubernetes/wordpress.png
    http://img.zhaohuabing.com/in-post/2018-04-16-using-helm-to-deploy-to-kubernetes/helm-architecture.png
    http://img.zhaohuabing.com/in-post/2018-04-16-using-helm-to-deploy-to-kubernetes/ci-cd-jenkins-helm-k8s.png

In theme/hugo-theme-cleanwhite/2018/05/01/may-day-jiulonghu/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/fuyunmuchang.jpeg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/nongjiale1.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/nongjiale3.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/nongjiale.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/rose.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/village2.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/village3.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/geshaerwang.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/map.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/road1.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/yanghuaihua.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/cherry.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/flower.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/flower1.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/cattle.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/village1.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/oldman.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/road.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/village.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/yecai.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/snowmountain.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/snowmountain1.jpg
    http://img.zhaohuabing.com/in-post/2018-05-01-may-day-jiulonghu/swing.jpg

In theme/hugo-theme-cleanwhite/2018/05/07/cryptocurrency_week1_cryptographic_hash_function/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-05-09-cryptocurrency-week1-cryptographic-hash-function/sha-256.PNG

In theme/hugo-theme-cleanwhite/2018/05/12/cryptocurrency_week1_digital_signature/index.html:

Insecure img urls:
    http://img.zhaohuabing.com/in-post/2018-05-12-cryptocurrency_week1_digital_signature/digital-signatures.jpg
    http://img.zhaohuabing.com/in-post/2018-05-12-cryptocurrency_week1_digital_signature/digital-certificate.png
    http://img.zhaohuabing.com/in-post/2018-05-12-cryptocurrency_week1_digital_signature/verify-signature.jpg

Awaiting your reply.

cc: @digitalcraftsman

the date is incorrect after I used algolia .

The search page just likes this : the current date shows Jan 01, 0001 and I can't figure out where the problem is.

Jan 01, 0001
Tags
Jan 01, 0001

Jan 09, 2019
Clean White Theme for Hugo
Clean White Theme for Hugo CleanWhite is a clean, elegant, but fully functional blog theme for Hugo. Here is a live demo site using this theme. It is based on huxblog Jekyll Theme and Clean Blog Jekyll Theme. These two upstream projects have done awesome jobs to create a blog theme, what I’m doing here is porting it to Hugo, of which I like the simplicity and the much faster

Issue with search

The search page returns a strange result for a post from Dec 31, 0000.
dev_and_the_dude-Web Development Blog Toggle navigation dev_and_the_dude Home Data SEARCH var $body = document.body; var $toggle = document.querySelector('.navbar-toggle'); var $navbar = document.querySelector('#huxblog_navbar'); var $collapse = document.querySelector('.navbar-collapse'); $toggle.addEventListener('click', handleMagic) function handleMagic(e){ if ($navbar.className.indexOf('in') 0) { $navbar.className = " "; setTimeout(function(){ if($navbar.className.indexOf('in') dev_and_the_dude the web abides Support Vector Machines, for Bowlers Support Vector Machine History The goal of this post is to explain how a Support Vector Machine works and how it relates to bowling.

search page 404

i had configuration algolia's config ,but when i click search on web,it go to 404 page

Clean White Theme demo not generated on the Hugo Themes website

Hello @zhaohuabing

I am one of the maintainers of Hugo Themes

Your theme's demo is currently not generated due to the following ERROR:

2:01:05 PM:  ==== PROCESSING  hugo-theme-cleanwhite  ======
2:01:05 PM: Building site for theme hugo-theme-cleanwhite using its own exampleSite to ../themeSite/static/theme/hugo-theme-cleanwhite/
2:01:06 PM: Error: "/opt/build/repo/hugo-theme-cleanwhite/layouts/_default/single.html:23:1": parse failed: template: _default/single.html:23: unclosed action
2:01:06 PM: FAILED to create exampleSite for hugo-theme-cleanwhite

This is a known limitation of the Go Text Templates package.

Except for raw strings, actions may not span newlines, although comments can.

To fix this ERROR please remove the new line at the end of line 22 in layouts/_default/single.html. The variable {{ .Site.Title }} is broken by the new line and that's why the Demo fails.

Can you please look into this and let me know?

Thanks!

ref: gohugoio/hugoThemes#531

Sidebar does not display

When I create a new site and copy the example files in the theme directory to the root directory of the site. After running, I found that the right sidebar is not displayed
xxx

Index.html Missing Posts

I used the example content and the example config.toml, but the index.html never includes any posts on the front page. The div on the front page is always empty. All of the HTML files for each posts is built and accessible via URL.

< /div>

relURL instead of absURL for resources

For a friendly workflow, where the site can be hosted on different domains (e.g. localhost:1313, when developing locally, localhost:32933 when in Docker, and staging.my-site.com as well as my-site.com)

it'd be better if this template would use relURL everywhere instead of absURL.

How to use View counter outside China

In the config.toml I see there is a provision for the code to display view counter, however I have not been able to use this feature. As per comments, it says use leancloud, I made an account there but the website is simply non usable outside CN. any other way to get this counter working ??

leancloud storage for page view counter

page_view_conter = true
leancloud_app_id = ""
leancloud_app_key = ""

disqus display issue

i dont know why disqus's display is different from yours, i didn't do anything...
and here is my blog

Duplicated scroll bar and stuck scrolling

Thank you for creating this awesome theme and I really enjoying using it!

I was told that the scrolling control in my article page is not very smooth: it got stuck occasionally when scrolling very quickly.

I checked and found it's caused by the duplicated scroll bar, which only happened when setting friends=false in cofig.toml. Change friends=true will fix the issue.

image

Previous/Next Post locate wrong page

Hugo version: v0.53-8FC339DC2529FF77E494A1C12CD1FF9FBCB880A4
OS version: AWS AIM t2.micro

ISSUE:
Click Previous/Next Post button, it will head to about me page even the folder structure is

  • content
    | -post
    | -search
    | -top

Expectation:
It should go to the page of other folders

issue about deploying github.io website

Hello Author, I have seen your theme recently and I like it very much, but I have encountered some problems when using your theme. I hope I can get your guidance.

  1. First, i use quick start method in demo.
$ mkdir test
$ cd test
$ mkdir themes
$ cd themes
$ git clone https://github.com/zhaohuabing/hugo-theme-cleanwhite.git
$ cp -r hugo-theme-cleanwhite/exampleSite/** ../
$ cd ..
$ hugo serve
  1. I only modify the base url in config.toml in themes.
    baseurl = "http://fengrain.github.io"

  2. hugo server -D, then push public to my repo https://github.com/RainFung/fengrain.github.io.

Finally,
http://fengrain.github.io/ raise 404 error.
https://rainfung.github.io/fengrain.github.io/ only shows text.

If it's convenient, we'd like to contact you by Wechat. My Wechat ID is 409908131. Thanks.

theme starting problem

Error while rendering "home" in "": template: /themes/hugo-theme-cleanwhite/layouts/index.html:7:90: executing "header" at : wrong number of args for absURL: want 1 got 0

Trouble With the Home Button

Hi,
Sorry I am really new to using Hugo. I noticed when I click the Home button, or the site name on the upper left corner, the link does not go anywhere (i.e., it does not go to the home page). The example website online doesn't have this issue. My blog isn't online, so that might be part of the problem. Any advice?

various issues on running 'hugo' command

Hi,

I love the clean site theme that you created! :)
When I type in 'hugo' at the command line interface then I receive the following results:

hugo

Building sites … WARN 2019/06/09 15:14:41 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/06/09 15:14:41 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/06/09 15:14:41 found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/06/09 15:14:41 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
WARN 2019/06/09 15:14:41 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 15:14:43 Page's .UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID.
WARN 2019/06/09 15:14:43 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}
WARN 2019/06/09 15:14:43 Page's .Dir is deprecated and will be removed in a future release. Use .File.Dir.
WARN 2019/06/09 15:14:43 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}

Is this something that I've done wrong please?
Many thanks!
James

About-me crashes when on the second page

When you click "about me" on the sidebar and you are not on the first page (i.e. after click "older posts"), the About Me crashes. Directs to https://yoursitename/page/2/about.

I am not able to recreate this on the example site, because the About Me page doesn't direct anywhere.

Is there a way to use an absolute reference to the about me in the config.toml?

cannot diaplay the email icon in sidebar

I just want to add a email icon in sidebar, how can i get it ?
{{ if .Site.Params.social.email }} <li> <a href="{{ . }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-email fa-stack-1x fa-inverse"></i> </span> </a> </li>
why it does't work?

highlight.js

Hi @zhaohuabing ,请问下这个主题是否支持highlight.js.现在不太清楚 header.html 如何改动。特此请教,谢谢。

How to change

Hi!
I want to change standard font of all pages. How? Is there an easy option adding something as a sitewide param in config.toml? please help :(

How to remove TOC from markdown generated

So, this must be pretty basic but I have tried everything. Added toc: false in header removed it everything but this TOC which gets generated in the output doesnt go away.

Please see yellow highlighted in attached image
Capture1

Please assist on how to remove that TOC

How to change the header font color & image size?

I want to continue to customizing the theme. How do I change the color of the font in my main heading? Will this affect the header font color for posts too? How do I change the dimensions of the header? Thank you !!

How To make pages?

I want to make pages in this theme ,

How to make page ?
😁👍

Thanks i like this theme , its very good 😁👍

FEATURED TAGS

我很喜欢你的themes,在使用的过程中有一个问题,如何定义“FEATURED TAGS”,目前我的页面中没有任何显示。文章中已经加入了tags。
themes3
themes
themes2

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.