yoshiharuyamashita / blackburn Goto Github PK
View Code? Open in Web Editor NEWA Hugo theme built using Yahoo's Pure CSS
License: MIT License
A Hugo theme built using Yahoo's Pure CSS
License: MIT License
Thank you for the theme, it has proved excellent so far!
The title says it all really. I tested with Firefox 46.0 on both Windows and Ubuntu Linux, and a scroll bar appears in the bottom left of the page, the width of the navigation bar.
The issue doesn't appear to be present with Chrome or Internet Explorer
Hi Thanks so much for the theme. I love it. I'm trying to add author's name in each post (since another website is syndicating my feed), I couldn't get it working. Currently in the rss feed it's just simply empty.
This is my rss.xml
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<author>{{.Site.Author.name}}</author>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
<item>
<title>{{ .Title }}</title>
<author>{{.Site.Author.name}}</author>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>
Any help is appreciated.
Thank you for creating this theme which I use to power http://ernestmicklei.com
I changed the pagination such that it will visit pages within a section
{{ if or (.PrevInSection) (.NextInSection) }}
<div class="prev-next-post pure-g">
<div class="pure-u-1 pure-u-md-1-2">
{{ if .PrevInSection }}
<nav class="prev">
<a href="{{ .PrevInSection.Permalink }}"><i class="fa fa-arrow-circle-left fa-fw fa-lg"></i>{{ .PrevInSection.Title }}</a>
</nav>
{{ end }}
</div>
<div class="pure-u-1 pure-u-md-1-2">
{{ if .NextInSection }}
<nav class="next">
<a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}<i class="fa fa-arrow-circle-right fa-fw fa-lg"></i></a>
</nav>
{{ end }}
</div>
</div>
{{ end }}
Consider using this for people who have others sections than post
After #79, the overflow-y
attribute is set to visible
. This prevent the side menu to be scroll when truncated. This bug occurs when browser height is limited, e.g. mobile (especially, landscape)
I fix this in my website by set that attribute back to auto
.
I suggest the theme should do something to handle this bug.
need help!
I want to count my site's page views, but I didn't find any related param in blackburn.
I really like your blackburn Hugo theme and am trying to use it. But for some reason the pull-down menu is not working for my site, when viewed on my Android phone. Oddly, your demo site is working. Any idea what the problem might be? You can try my site at http://www.tfgordon.de to see the problem.
I think this change in Hugo 0.57 renders the home page with only the post link as content.
home.Pages now only returns pages in the top level section. Before this release, it included all regular pages in the site. This made it easy to list all the pages on home page, but it also meant that you needed to take special care if you wanted to navigate the page tree from top to bottom. If you need all regular pages, use .Site.RegularPages. Also see #6153.
I think I was able to resolve the issue by changing this line
{{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }}
in layouts/index.html to
{{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }}
I am trying to create a blogdown site using the Blackburn theme but keep getting an error when I try to serve the site. I am using Hugo version 0.55.5, R-Studio version 1.2.1335, and R version 3.5.3.
My repo is here: https://github.com/Rikagx/personal-website
My code is:
library(blogdown) new_site(theme = 'yoshiharuyamashita/blackburn', sample = TRUE, theme_example = TRUE, empty_dirs = TRUE, to_yaml = TRUE) install_hugo() build_site() serve_site()
The only other changes I've made are the basic config.toml changes specified such as changing the ignore files and the baseurl to my domain.
The error I get is:
serve_site()
Error: unknown command "technical" for "hugo"
Run 'hugo --help' for usage.
Error: unknown command "technical" for "hugo"
Run 'hugo --help' for usage.
The system cannot find the path specified.
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\Rika\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" --themesDir themes -t A technical blog by Rika Gorn' execution failed with error code 1
Hi There,
Thank you so much for this wonderful theme! It's exactly what I was looking for for my personal website. I was wondering if you could help me fix one issue I'm having with it. I'd like to remove the RSS feed button from the website sidebar, but can't find any place in the code that this is specified. Could you point me in the right direction?
Thank you,
Spencer
I love the blackburn theme! thank you for making it. I've been trying to figure out a way for the RSS link on the sidebar from the homepage to display properly. I found some xml code from another blackburn user and plugged it in to layouts/ and it worked locally but when I pushed it to github and netlify it fell back to unformatted. I notice that even on your own site it isn't styled. Anyone know a way to make the styling stick for that RSS tab?
Thank you!
Hey there,
I'm looking to migrate my existing Ghost site to Hugo, and I'd love to use your them. My existing page naming structure is http://domain/name-of-post. In my test lab I've migrated Ghost to Hugo and turned on your theme, and now all my posts have a convention of http://domain**/post/**name-of-post. What config change can I make to snip out the /post from the URL scheme?
Thanks!
Brian
I like Blackburn very much - thank you for creating it! However, i am learning Hugo as I go, which makes things tricky sometimes. So I have two questions:
config.toml
. All I really need to see is an example of how this should be done: with appropriate html files and directory structure.Anyway, thanks very much!
palash25@Lenovo-G50 ~/Dev/Projects/palash25.gtihub.io master ●✚ hugo server -D
ERROR: 2018/02/04 18:28:39 template.go:350: template: theme/partials/sidemenu.html:25: function "safeHTMLAttr" not defined
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
ERROR: 2018/02/04 18:28:39 template.go:119: html/template: "theme/partials/sidemenu.html" is an incomplete template in theme/partials/sidemenu.html
0 draft content
0 future content
6 pages created
0 non-page files copied
1 paginator pages created
6 tags created
0 topics created
in 72 ms
Watching for changes in /home/palash25/Dev/Projects/palash25.gtihub.io/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Hello!
I've stumbled upon the issue exactly the same as dim0627/hugo_theme_beg#19:
Source code:
![Shinken simple distributed architecture](https://shinken.readthedocs.io/en/latest/_images/shinken-architecture.png)
google plus profile url like this:
https://plus.google.com/u/0/118046788804899957719
in config.toml
, if googleplus item like this,
googleplus = "u/0/102591860149128628370"
or googleplus = "102591860149128628370"
, I will got an error like blow.
then, I found code like below, I think it is may be an error.
<a class="pure-menu-link" href="https://plus.google.com/+{{ . }}" target="_blank"><i class="fa fa-google-plus-square fa-fw"></i>Google+</a>
There is something wrong with highlighting the Golang Markdown
example
var s string
fmt.Println("hello")
or
var s string
fmt.Println("hello")
Cannot display normally!
I attempted to plug in my GA tracking ID but it doesn't appear to be the current version of code that Google is using and I'm not seeing data in my GA graphs. The code Google's docs say to use:
<script async src="https://www.googletagmanager.com/gtag/js?id="></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', ''); </script>Hi,
I am looking into converting a Wordpress blog into Hugo, and found your very good theme.
However, it seems that I can't remove the "read more" (with summary texts) from the blog entries, is there a way to display the full posts? Another them I tried I could change the param truncate to false to fix this, is this possible with blackburn?
Thanks,
Patrik
Icons in the footer/share section of posts don't have the correct class for the i-frame. All of the "Brands" (Facebook, Twitter, G+, etc.) need to be prefixed with fab
and the "Share" icon needs to be prefixed with fa
Example:
<i class="fa-facebook" aria-hidden="true"></i>
<i class="fab fa-facebook" aria-hidden="true"></i>
Hi Yoshi I can not find any contact info so I am writing my "issue" here. I would like to create a new section for tutorials and one for scripts. but I don't find the place to get the new section working in the menu. do you have a solution how to do this? you are welcome to contact me by email to discuss this
We hope you're fine!
$> git push origin master
When I click the Posts, my articles don't appear. How can I show my all articles in the page Posts?
I followed the instructions for making the two-level menu.
However, the menu could not be expand. Is it the issue of blackburn theme?
[[menu.main]]
identifier = "brand"
name = "brand"
url = "/brands/"
[[menu.main]]
parent = "brand"
name = "nike"
url = "/brands/nike/"
[[menu.main]]
parent = "brand"
name = "adidas"
url = "/brands/adidas/"
The page build failed for the master
branch with the following error:
The tag image
on line 129 in themes/blackburn/exampleSite/content/post/migrate-from-jekyll.md
is not a recognized Liquid tag. For more information, see https://help.github.com/articles/page-build-failed-unknown-tag-error/.
deployed with no error, but I got this. is there anyone have same problem?
Hi Yoshi,
Is there any change in the usage of readingTime
parameter in config.toml for displaying the reading time of the posts?
[params]
# Shown in the home page
dateFormat = "02 Jan 2006, 15:04"
# Show estimated reading time for posts?
readingTime = true
The above configuration is not working.
PS: The issue has already mentioned on StackOverflow.
Linking screenshots in the README with relative paths might work on GitHub, but the theme site can't find the screenshot under this path. Consider to use an absolute one instead.
Yoshiharu, can you check https://nonumeros.github.io
This XML file does not appear to have any style information associated with it. The document tree is shown below
Hi!
I would like customize dates on Blackburn theme based on tutorial form Hugo official site (Tutorial/Multilingual Site -> http://gohugo.io/tutorials/create-a-multilingual-site/) Where I'm find in Blackburn part of the code responsible for displaying the date post?
Sorry for silly question, but I'm noob on HTML world
Thanks for great theme!
I have in config.toml: baseurl = "https://ronsmits.org"
the generated code in footer.html tries to load https://ronsmits.orgjs/ui.js
.
changed <script src="{{ .Site.BaseURL }}js/ui.js"></script>
into <script src="{{ .Site.BaseURL }}/js/ui.js"></script>
I added this to the head of my md:
+++
title = "Hi"
date = 2017-09-05T22:46:02+08:00
tqgs = ["tag1","tag2"]
categories = ["golang","github"]
draft = true
+++
Apparently a scammer has registered the default base url genreated by hugo ("http://replace-this-with-your-hugo-site.com") and has some malware, ads, etc on it. See: gohugoio/hugoThemes#171.
To avoid such abuse in the future I would recommend to switch to a base url like "https://www.example.com".
Thanks
in layouts/partials/head.html, the Pure-CSS refs as HTTP:
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
but on some browser, likes firefox, blocks it by default.
I'm attempting to add a Donate Main Menu option to the sidebar.
[[menu.main]]
name = "Donate"
pre = "<i class='fa fa-btc fa-fw'></i>"
weight = 6
identifier = "bitcoin"
url = "bitcoin:1FkKq8MSLuBMcE6NfvZ4qLhAYK6auTthTM"
Unfortunately, this seems to be parsed down to:
<a class="pure-menu-link" href="#ZgotmplZ"><i class="fa fa-btc fa-fw"></i>Donate</a>
Instead of something valid like:
<a class="pure-menu-link" href="bitcoin:1FkKq8MSLuBMcE6NfvZ4qLhAYK6auTthTM"><i class="fa fa-btc fa-fw"></i>Donate</a>
Any tips here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.