nanxiaobei / hugo-paper Goto Github PK
View Code? Open in Web Editor NEW🪺 A simple, clean, customizable Hugo theme
Home Page: https://hugo-paper.vercel.app
License: MIT License
🪺 A simple, clean, customizable Hugo theme
Home Page: https://hugo-paper.vercel.app
License: MIT License
first, i really like the theme, great job!
There is horizontal scroll when viewed on mobile screen, i wish if you can fix it and make it responsive,
as many people would read on mobile.
Thanks!!
您好,我在使用中发现了几个问题
如题。我没找到详细的配置文档,不知道可以不可以修改页面的宽度以改善在PC上的阅读体验。
Hi, I really love this theme, awesome work 👍
I've found one issue: one mobile and tablet devices, the tapping the menu dropdown (two horizontal lines) doesn't do anything, so the menu cannot be accessed.
I tried this on the demo website, and by using the theme on my own site. Even on desktop when the browser is resized, clicking the =
on the top-right does not show the menu. Like in this screenshot:
Hello Mr Lee, it would be very useful if you could put your hugo-paper demo site in the theme repository as an example site. I opened the issue even though this is a request as I am not sure how else to contact you in this Hugo theme context.
self-assigns
homepage won't show content on the theme "paper" but can show on the default theme "ananke".
能不能加个自动生成目录,毕竟这也是长文的刚需。
还有图片无法单击放大,这也是个人使用下来一个小小的槽点。
感谢作者。
.post-content code {
margin-left: 4px;
margin-right: 4px;
padding: 4px 6px;
font-family: Menlo, Monaco, 'Courier New', Courier, monospace;
font-size: 0.95em;
line-height: 1.5;
background: var(--code-bg);
border-radius: 2px;
white-space: pre;
}
.post-content pre code {
display: block;
margin-left: 0;
margin-right: 0;
padding: var(--gap);
color: rgba(255, 255, 255, 0.8);
/background: transparent;/
background: rgba(40, 44, 52, 1);
border-radius: 0;
white-space: pre;
}
Hello,
I recently started using Hugo Paper and enjoy the theme very much.
I've found a small issue with the mime-type encoding for RSS feeds.
Paper encodes the "+" as an entity, which breaks some RSS readers.
type="application/rss+xml"
I believe this should be:
type="application/rss+xml"
I'm using the latest version of Hugo Paper (c1fe22e) and hugo v0.88.1+extended.
Dear All
I like the list layout that framed on white background like this ->
https://i.postimg.cc/h4X7JTkv/IMG-20190820-113258.jpg
I want to use that layout for single page and single post too ->
https://i.postimg.cc/XYbZDhpB/IMG-20190820-113422.jpg
I changed the article class to "post-entry" but the layout can't be same as list layout?
https://github.com/BayuAngora/paper/blob/master/layouts/_default/single.html
Regards
Would it be possible to bring back the old full menu? Ideally by setting some opt-in flag in the site config.
I personally do not like looking at sites with hamburger menu on my 27" 4K display where there is a lot of free space for the menu.
Hi,
how exactly does dark mode work? I am wondering, because switching appearance on a mac does not seem to have an effect on the website (on other sites I can switch betweeen dark/light and the site changes accordingly immediately). Is it triggered by something else? Best
Hi!
First of all thanks for this theme! It's really straightforward and good looking 👍
I have a question though, is it possible (or how to make it possible) to pin some post to the top of the site? So I can e.g. write my biography and pin it, so it is at the top of the page (like "Create a New Theme" in your demo).
Thanks for help!
Hi @nanxiaobei,
in the demo for your theme I noticed that the tags at the bottom of a blog post are relative to the root of a url. Since the demos are hosted in a subdirectory this means that the links are relative to www.themes.gohugo.io
. Therefore you link www.themes.gohugo.io/tags/TAG
instead of themes.gohugo.io/theme/hugo-paper/tags/TAG
.
When linking pages and assets also make sure that your partial link doesn't start with a /. Otherwise those functions will make it relative to the root (by design).
I have some troubble to get started, because I don't know which params should be set. An example config or documentation would make it easier to get started.
Greets
This way people can better keep up to date.
git submodule add [email protected]:nanxiaobei/hugo-paper.git themes/paper
Demo 里面首页文章卡片只展示了文章第一段,但是我默认的会展示满三行内容。
Hi there!
I have noticed that while highlight.js runs on the site, a code snippet with line numbers (linenos
parameter set to table
) enabled gets displayed wrong. The library doesn't come with line numbering feature thus I think that it's not fully compatible with Hugo and it shouldn't be used with it. Related themes simply don't come with required CSS rules.
Here's a related PR with my suggested changes.
Steps to reproduce:
{{< highlight python "linenos=table" >}}
var = 2
if var is 2:
print("Hello world!")
{{< / highlight >}}
Tested browsers:
I am new to Hugo and I am having problems adding the og tags and twitter cards for this theme. Can you please tell how these can be implemented.
feature request: dark mode.
Today I just applied this theme to my personal website. It works well, and I love it!
I wonder whether it is possible to add taxonomy support to this theme.
Like the following screenshot, if I click on a taxonomy, say "Hugo", I cannot really screen out only the posts with "Hugo" taxonomy. Does it possible to have such function?
Thank you!
二级目录时, 第2级目录没有生成对应list.html
The second level directory does not generate a corresponding directory list.html
mkdir -p content/blog/docker
hugo server --theme=paper
visit localhost:1313/blog/docker
预期显示docker文件下的文档list
实际没有显示
我看了下 config.toml 里没有 RegularPages
我加上了.但是还是报错
Building sites … ERROR 2019/08/22 13:09:38 render of "taxonomyTerm" failed: "/Users/otis.z/xiaoheiah/blog/themes/paper/layouts/_default/list.html:13:39": execute of template failed: template: _default/list.html:13:39: executing "_default/list.html" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.pageState ERROR 2019/08/22 13:09:38 render of "taxonomy" failed: "/Users/otis.z/xiaoheiah/blog/themes/paper/layouts/_default/list.html:13:39": execute of template failed: template: _default/list.html:13:39: executing "_default/list.html" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.pageState ERROR 2019/08/22 13:09:38 render of "taxonomy" failed: "/Users/otis.z/xiaoheiah/blog/themes/paper/layouts/_default/list.html:13:39": execute of template failed: template: _default/list.html:13:39: executing "_default/list.html" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.pageState ERROR 2019/08/22 13:09:38 render of "taxonomy" failed: "/Users/otis.z/xiaoheiah/blog/themes/paper/layouts/_default/list.html:13:39": execute of template failed: template: _default/list.html:13:39: executing "_default/list.html" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.pageState Total in 22 ms Error: Error building site: failed to render pages: render of "taxonomy" failed: "/Users/otis.z/xiaoheiah/blog/themes/paper/layouts/_default/list.html:13:39": execute of template failed: template: _default/list.html:13:39: executing "_default/list.html" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.pageState
Nice theme but has large flaw by using manual link concatenation.
<script src="{{.Site.BaseURL}}js/instantclick.min.js" data-no-instant></script>
would be much better off using absURL
<script src="{{ "js/instantclick.min.js" | absURL }}" data-no-instant></script>
Very good explanation here: https://discourse.gohugo.io/t/how-not-to-specify-url-site/5691/5
Another recommendation by @bep: gohugoio/hugo#3262 (comment)
Cheers!
I was trying to upgrade my blog to the newest hugo-paper and hugo versions (0.82.0) and something weird happened, the front page stopped showing my blog posts. I then tried following the hugo quick start tutorial and adding paper as the theme to check if maybe I was missing something and the same behavior happened when I activated paper:
The structure is identical to the one in the quick start article, just one blog post and a simple configuration file as follows:
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "paper"
I activated another theme to check and the posts appeared:
Is there anything that I'm missing? Or is it related to hugo's version 0.82.0?
In setBodyClass()
in header.html
, the preferred color scheme check seems to be inverted:
function setBodyClass() {
if (window.matchMedia("(prefers-color-scheme: dark)").matches || now > sunrise && now < sunset) return;
document.body.classList.add('dark');
}
If the browser prefers a dark theme, it will return without enabling the dark theme.
I have no experience with media queries, but from some basic testing, I think my theory is correct.
Hello,thank you for create this theme,I really love it.
Can I make some change based on this?
Just for myself,I won't publish it.
exampleSite are very good reference of all the features and things possible with theme.
It will document the theme in very good way. so please add it.
If you take a look at http://static.felipe1982.com you can see that the "next" link at the bottom appears in Chinese. How can I modify this?
The /tags and /categories pages are completely empty. https://preview.devopsish.com/tags/ and https://preview.devopsish.com/categories/ show empty pages.
Is there a workaround? This is a deal breaker for this theme.
Dependabot couldn't find a package.json
Dependabot couldn't find a package.json.
Dependabot requires a package.json to evaluate your JavaScript dependencies. It had expected to find one at the path: /package.json.
Learn more about troubleshooting Dependabot errors.
2 highlight.js vulnerabilities found in highlight.min.js on Nov 25, 2020
Remediation
Upgrade highlight.js to version 10.4.1 or later.
Always verify the validity and compatibility of suggestions with your codebase.
Can I find a backup of version 4.9 somewhere? I browsed through version history, but it keeps downloading 5.1
Checkout my branch https://github.com/felipe1982/hugo-blog/tree/broken-hugo-paper and run "hugo server" and see that the site does not properly load.
As I saw the layout is look very similar with the following theme
See @https://github.com/adityatelange/hugo-PaperMod/
Would like to know any difference or is it just a plagiarism?
@RealA10N
超链接的能否加个颜色? 像github中readme中那样的.
现在加了参考的链接, 很难看出来是链接, 或者能否告诉我
需要修改哪些css? 我可以自己修改.
最后, 非常感谢提供这么简洁好看的主题.
Hello,
I discovered you're theme on the Hugo store and just fall in love with it. It's so clean and simple, just wow 👏
However, I experiment curious behavior with the instantSearch feature.
Scenario to reproduce:
However, when I disable JS (or I reload the post page), everything works fine.
Let me add that I use the $ hugo serve -D
for development purpose :)
Thanks.
In the default setting of the template, we don't have anything in the hidden list by clicking the upper right button, but in the demo site, there's an 'about' page. How to add that?
Thanks!
Hello @nanxiaobei
Please change this line to min_version = "0.57.1"
because 0.57.1
is the minimum Hugo version that your theme can work with since gohugoio/hugoThemes#682 was fixed.
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.