winglim / hugo-tania Goto Github PK
View Code? Open in Web Editor NEWA simple theme for bloggers.
Home Page: https://hugo-tania.netlify.app/
License: MIT License
A simple theme for bloggers.
Home Page: https://hugo-tania.netlify.app/
License: MIT License
Hi,
Is it possible to change the /articles route to /blog ?
I tried changing the toml and the theme and it doesn't do anything.
I used em to emphasize text, and it used to show em instead of applying the emphasis. I solved the issue with some help, and it turned out to be in render-heading.html, and the solution was to edit line 9 to be like this {{ .Text | safeHTML }}
. Hopefully you will solve it so that it doesn't affect more users.
Hi,
when using Utteranc.es as comment provider, it did not render correctly for me. In my case this was caused by this line. The property document.documentElement.dataset.scheme
is undefined for me, I fixed it by changing it to document.documentElement.dataset.userColorScheme
.
How do I add an about page to this theme?
Existing config.yaml
for hugo-tania
menu:
header:
- name: Posts
url: "/posts/"
footer:
- name: RSS
url: "/index.xml"
The below config.yaml
works for me on other themes
menu:
main:
- identifier: about
name: about hugo
url: /about/
weight: -110
I have also tried to add /content/about/_index.md
which works on other themes, but can't figure out how to make it work on this theme.
Any help or direction where to look next would be appreciated. Thank you!
Hi,
I'm trying to make dark mode default but I can't figure it out. I tried using the colorScheme configuration from the hugo-theme-stack
, but it doesn't seem to work. I tried modifying the source, but I can't get it to work? Is there a way to do it ? If so, maybe a configurable option in the config.yml would be a great adding
Is it possible to have a small biography on the front page with options for a small text (for example a small text about yourself), a picture, email address and name?
You can find the new section here:
https://github.com/paskn/hugo-tania/wiki/Custom
I find this hard to figure out for new hugo users. While some themes have documentation on this, I thought that I can contribute for the theme I really like.
Cheers!
I was trying to enable Disqus on my website that uses this theme by adding disqusShortname: "wheleph-gitlab-io"
to my config.yaml
. But I don't see any comment sections at the bottom of my posts.
Can you add support for Disqus?
Here's the source code of my website: https://gitlab.com/wheleph/wheleph.gitlab.io
When hugo server is commanded with example toml,
an error appears with the message
error "./config.toml:30:15": unmarshal failed: toml: incomplete numberunmarshal failed: toml: incomplete number
what is error?
:30:15 is defualt=auto
[params.colorScheme]
# Enable toggle colorScheme
# Default to true
toggle = true
# Default colorScheme
# Default to auto
default = auto
你好,我的网站内容多,想在首页实现分页功能。按照以往成功的经验,在index中加入{{ partial "pagination.html" . }}
在partials加入pagination.html。
虽然首页可以正确显示分页和页码,但是点击后,始终只显示第一页。请问这个是什么原因?怎么解决?
谢谢
Based on this discussion, I recommend adding resources
folder to .gitignore
Utterances - A comments widget
Or is there a way I can find previous articles?
err:
execute of template failed: template: _default/_markup/render-image.html:4:125: executing "_default/_markup/render-image.html" at <imageConfig (printf "static/%s" .Destination)>: error calling imageConfig: open F:\Road\static\1.png: The system cannot find the file specified.
Hi!
First, I added a post.md to "content/posts/." Then, I made "contet/projects" directory with 3 *.md pages describing projects. Now, on the main under the "latest articles" I can see only titles from the "content/pojects/." If I to copy the post to "content/projects," then it will appear uder section "projects" but not under "latest articles."
I am on hugo v0.99.1, and have little expirience with it. Do you have any ideas what might have went wrong?
Hii,
How can I enable the search feature on these themes?
I just want to add a search feature so my visitor can easily search article on my website using keyword,
additionally, I want to add some tags above the search bar.
Thanks!
https://github.com/giscus/giscus
与 utt 的不同之处在于:utt 使用 GitHub Issue 而 giscus 使用 GitHub Discussions
Hello everyone,
There is an example of multimode language with Hugo-tania?
I tried directly from the hugo documentation but without success!
希望作者大佬能把Twikoo评论能添加进去!感谢了~
related Issues: #28
@WingLim Hello, nice to meet you.
I love your hugo theme, it is a pretty simple and beautiful design 😄
Regarding this updates
With 08a430a, hugo will auto search image in post folder or static folder.
It supported images in post folder but still put the error when I update the hugo-tania
theme.
diff --git a/themes/hugo-tania b/themes/hugo-tania
index 0a54b432..99acf147 160000
--- a/themes/hugo-tania
+++ b/themes/hugo-tania
@@ -1 +1 @@
-Subproject commit 0a54b432f9e7318e202760dcd400ab9cefc17882
+Subproject commit 99acf147092a853126c178ffdfaa481ae738d180
Start building sites …
hugo v0.89.0+extended darwin/amd64 BuildDate=unknown
Error: Error building site: "/Users/hurutoriya/code/hurutoriya.github.io/themes/hugo-tania/layouts/_default/_markup/render-image.html:13:15": execute of template failed: template: _default/_markup/render-image.html:13:15: executing "_default/_markup/render-image.html" at <imageConfig (printf "static/%s" (.Destination | safeURL))>: error calling imageConfig: open /Users/hurutoriya/code/hurutoriya.github.io/static/posts/2017-11-13/images/1.gif: no such file or directory
error messages say broken the post directory images rendering images.
https://github.com/WingLim/hugo-tania/blob/main/layouts/_default/_markup/render-image.html#L13
Actual file structure is here.
I guess _markup/render-image.html
build as under /static
path even under posts
directory but it seems failed?
Sorry I don't have a knowledge about hugo theme but I would like to share it 🙇 .
https://github.com/hurutoriya/hurutoriya.github.io/tree/source/content/posts/2017-11-13
Hello there,
I just saw the Hugo introduction page of this theme, there is a link pointing to the wrong.
Currently "Homepage" points to hugo-tanhia.netlify.app, I think it should point to the Github repository.
There is a button itself, but if you press, then nothing happens. Unlike your site.
I tried with a default config from config.example.toml
I also tried to add a line to the config
enablelinenos = true
Launch method:
docker run -it \
--name="hugo" \
-p 1313:1313 \
-v /**my-site**:/src \
--restart unless-stopped \
klakegg/hugo:ext-debian \
server --disableFastRender -D
Hii @WingLim I have an idea.
How about enabling Netifly CMS support?
Hi! 😃 I would like an explanation more detailed of your repository, @WingLim, because I didn't understand at all.
What technologies did you use for markdown files to be recognized as HTML on the web? Perhaps, have you been using Jekyll
?
And where or what use .toml files?
Thank you for your attention!
For the article tags output in the template here
<div class="tags"> {{ range (.GetTerms "tags") }} <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> {{ end }} </div>
Is it possible to alphabetise the output?
I must refresh the website, it can work.
After upgrading to the latest version of the theme (https://gitlab.com/wheleph/wheleph.gitlab.io/-/commit/974e14a48325fda0baa080c082321dfe38e0ad2b), images in one of my posts can no longer be rendered:
Error: Error building site: "/builds/wheleph/wheleph.gitlab.io/content/posts/2015-06-27-on-rabbitmq-automatic-ack-and-reliable-message-processing/index.md:4:125": execute of template failed: template: _default/_markup/render-image.html:4:125: executing "_default/_markup/render-image.html" at <imageConfig (printf "static/%s" .Destination)>: error calling imageConfig: open /builds/wheleph/wheleph.gitlab.io/static/rabbitmq_auto_ack.png: no such file or directory
Here's the relevant markdown piece:
![Management plugin screenshot: auto ack](rabbitmq_auto_ack.png)
Here's the CI build: https://gitlab.com/wheleph/wheleph.gitlab.io/-/jobs/1433218665
Am I missing something?
Is to possible to add 'copy' button to the code blocks?
I found examples here how to implement that
js snippet like
<!-- Cloudflare Web Analytics -->
<script defer
src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "personal token here"}'>
</script>
<!-- End Cloudflare Web Analytics -->
docs here: https://developers.cloudflare.com/analytics/web-analytics/getting-started
Hi, I noticed on the site linked using this theme https://www.reyreece.com/posts/kaomoji-japanese-emoticons-copy-and-paste/ that the posts have an automatically created table of contents. Though, it doesn't seem like you specify how to configure that in the toml file. Is this possible with this theme?
What about adding a toc to the left side? We already have permalink, that would be very useful for browsing big articles and to get a quick look to the main chapters
I am new to hugo so not sure if i am making some silly mistake. But when I try to check it out on localhost, I get the following error
Building sites … ERROR 2022/10/29 09:58:20 render of "taxonomyTerm" failed: execute of template failed: template: _default/terms.html:11:11: executing "_default/terms.html" at <partial "footer/footer" .>: error calling partial: "/path/to/site/something.com/themes/hugo-tania/layouts/partials/footer/footer.html:37:53": execute of template failed: template: partials/footer/footer.html:37:53: executing "partials/footer/footer.html" at <js>: can't evaluate field Build in type string ERROR 2022/10/29 09:58:20 render of "section" failed: execute of template failed: template: _default/list.html:11:11: executing "_default/list.html" at <partial "footer/footer" .>: error calling partial: "/path/to/site/something.com/themes/hugo-tania/layouts/partials/footer/footer.html:37:53": execute of template failed: template: partials/footer/footer.html:37:53: executing "partials/footer/footer.html" at <js>: can't evaluate field Build in type string
Its a brand new hugo directory structure with just a dummy post.
Hi,
According to your documentation - custom icons for social media
I forked your theme to add customs icons.
[hugo-tania](https://github.com/myrepo/hugo-tania)
Public
forked from https://github.com/WingLim/hugo-tania
In my fork, I added the edited SVG for the new icons, assuming the other SVGs were present.
My SVG : threads.svg
The issue occurs during the build of the website :
Error: error building site: render: failed to render pages: render of "home" failed: "/home/runner/work/myrepo.github.io/myrepo.github.io/themes/hugo-tania/layouts/_default/index.html:14:23": execute of template failed: template: _default/index.html:14:23: executing "main" at <partial (print "svgs/social/" $name ".svg") (dict "width" 25 "height" 25)>: error calling partial: partial "svgs/social/threads.svg" not found
I thought my SVG wasn't in a good format, but there was a Mastodon SVG in ...svgs/.
I tried it, but the same issue persists.
Do I have a problem of misunderstanding regarding the theme or the documentation?
I have a blog here: https://dev.murrr.space/articles/
And it shows that there is 1 article for each category, but when you click on it, site doesn't show any articles.
Source code is open: https://github.com/Friedrich42/murrr.space
It'd be really nice to have admonitions shortcodes in hugo
implementation example:
https://boundedinfinity.github.io/2017/09/admonitions-in-css/
Ones in mkdocs can be used as reference
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.