thegeeklab / hugo-geekblog Goto Github PK
View Code? Open in Web Editor NEWHugo theme made for blogs
Home Page: https://hugo-geekblog.geekdocs.de
License: MIT License
Hugo theme made for blogs
Home Page: https://hugo-geekblog.geekdocs.de
License: MIT License
Hi,
Is it possible to render math in {{ <figure> }}
elements? Or is this a limitation of Hugo?
{{< figure src="cmos_inv.svg" caption="<span class=\"figure-number\">Figure 1: </span>CMOS Inverter schematic. The $C_L$ capacitor is charged or discharged when \\(V\_{in}\\) switches its logical value." width="1000" >}}
output:
Hi,
Yes a page that links to the tags page. I have this setting enabled geekblogTagsToMenu = false. I want a static navigation menu and a separate page for the tags. I have too many tags for the bar to work for me.
Regards
Originally posted by @Xhanti in #167 (reply in thread)
Hi! I'm trying to add your theme to Hugo, and that's a success! But, when I setup the Makefile to deploy on Netlify I fail.. The error message is
> make doc
Makefile:9: *** missing separator. Stop.
I use the Makefile in the readme
THEME_VERSION := v0.8.2
THEME := hugo-geekblog
BASEDIR := docs
THEMEDIR := $(BASEDIR)/themes
.PHONY: doc
doc: doc-assets doc-build
.PHONY: doc-assets
doc-assets:
mkdir -p $(THEMEDIR)/$(THEME)/ ; \
curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1
.PHONY: doc-build
doc-build:
cd $(BASEDIR); hugo
.PHONY: clean
clean:
rm -rf $(THEMEDIR) && \
rm -rf $(BASEDIR)/public
I think this can be incorporated into geekdocs as one of the items, document mode, blog mode, etc.
Currently there is no way to add a custom link somewhere from the main page.
This can be solved by using the same menu bundle you have in geekdocs.
I use geekdocs as well, and would like to link to it from my geekblog.
Would be nice :)
But make it toggleable please in config.yaml, not sure all users would want it.
Hi,
Are they any plans to add a comments section to this project?
Very good blog theme I'm enjoying it so far.
Regards
I'm using theme version v0.2.6.1 and it does not work with horizontal scroll in code blocks
My blog is at https://nerd-geek.com/blog/2020/build-ubuntu-vm-with-packer-on-vsphere/
I'm using these settings in my hugo.toml file
# Geekblog required configuration
pygmentsUseClasses = true
pygmentsCodeFences = true
disablePathToLower = true
# Needed for mermaid shortcodes
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.tableOfContents]
startLevel = 1
endLevel = 9
I can't get the "img" shortcode to diplay my images, and I don't get any build errors/warnings.
What I've tried:
Also, I see in the exampleSite there are two related files:
Should I have them in my project? Anyway, I tried this and didn't work too.
Thanks
Edit: Sorry. Dumb me had too many tabs open and accidentally posted on the wrong repo. ๐
See, thegeeklab/hugo-geekdoc#119. Needs rewrite to CSS vars first.
Setting the variable 'geekblogAuthor' to any value (other than the default) results in the following error (when starting the live server via hugo server
):
Start building sites โฆ
ERROR 2021/06/03 15:59:06 render of "taxonomy" failed: execute of template failed: template: _default/list.html:5:7: executing "_default/list.html" at <partial "head/meta" .>: error calling partial: "/home/isho/Dev/Website/themes/hugo-geekblog/layouts/partials/head/meta.html:18:26": execute of template failed: template: partials/head/meta.html:18:26: executing "partials/head/meta.html" at <index $.Site.Data.authors .>: error calling index: index of untyped nil
ERROR 2021/06/03 15:59:06 render of "taxonomy" failed: execute of template failed: template: _default/list.html:5:7: executing "_default/list.html" at <partial "head/meta" .>: error calling partial: "/home/isho/Dev/Website/themes/hugo-geekblog/layouts/partials/head/meta.html:18:26": execute of template failed: template: partials/head/meta.html:18:26: executing "partials/head/meta.html" at <index $.Site.Data.authors .>: error calling index: index of untyped nil
Built in 92 ms
Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: _default/list.html:5:7: executing "_default/list.html" at <partial "head/meta" .>: error calling partial: "/home/isho/Dev/Website/themes/hugo-geekblog/layouts/partials/head/meta.html:18:26": execute of template failed: template: partials/head/meta.html:18:26: executing "partials/head/meta.html" at <index $.Site.Data.authors .>: error calling index: index of untyped nil
Overriding the site.webmanifest in static doesn't seem to affect the build.
Putting the image in the params section only references it in the meta data, doens't actually replace the icon?
Hello, I've been testing this theme and I noticed clipboard.js was being unconditionally loaded on every single page. Ideally I would like to avoid downloading it (and clipboard-loader) at all on pages that doesn't have the "copy to clipboard" buttons to minimize js usage, is this something feasible to implement?
Is it possible to add google analytics?
Hi, I'm in trouble to get geeklab theme running in hugo.
First, I created a new hugo site using hugo new site mbz
command on Linux.
Then, I made a clone of geeklab theme in themes folder of my site with that command git clone https://github.com/thegeeklab/hugo-geekblog.git
.
After that, I copied
baseURL = "http://localhost"
title = "Geekblog"
theme = "hugo-geekblog"
# Geekblog required configuration
pygmentsUseClasses = true
pygmentsCodeFences = true
disablePathToLower = true
# Needed for mermaid shortcodes
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.tableOfContents]
startLevel = 1
endLevel = 9
[taxonomies]
author = "authors"
tag = "tags"
[mediaTypes]
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats]
[outputFormats.Atom]
name = "Atom"
mediaType = "application/atom+xml"
baseName = "atom"
isPlainText = false
rel = "alternate"
isHTML = false
noUgly = true
permalinkable = false
[outputFormats.outputs]
home = ["HTML", "ATOM"]
page = ["HTML"]
section = ["HTML"]
taxonomy = ["HTML"]
term = ["HTML", "ATOM"]
to config.toml in my site as you mentioned here : https://hugo-geekblog.geekdocs.de/posts/getting-started/
so this is my website then
and when I run "hugo server -D" command, I get that error !
Please, could anyone help me, how to get that theme running without errors ? Thanks.
when using hugo server -D
,get error /config.toml:23:1": unmarshal failed: Near line 23 (last key parsed 'taxonomies.author'): expected value but found "authors" instead
all config is(copy from your web site https://hugo-geekblog.geekdocs.de/posts/getting-started/):
baseURL = "http://example.org/"
languageCode = "en-us"
title = "rogers post"
theme = "hugo-geekblog"
# Geekblog required configuration
pygmentsUseClasses = true
pygmentsCodeFences = true
disablePathToLower = true
enableGitInfo=true
# Needed for mermaid shortcodes
[markup]
[markup.goldmark.renderer]
unsafe = true
[markup.tableOfContents]
startLevel = 1
endLevel = 9
[taxonomies]
author = authors
tag = tags
[mediaTypes]
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats]
[outputFormats.Atom]
# https://validator.w3.org/feed/docs/atom.html#whatIsAtom
name = "Atom"
mediaType = "application/atom+xml"
# generated file = <baseName>.<mediaType."application/atom+xml".suffixes[0]> = atom.xml
baseName = "atom"
isPlainText = false
rel = "alternate"
isHTML = false
noUgly = true
permalinkable = false
[outputFormats.outputs]
home = ["HTML", "ATOM"]
page = ["HTML"]
section = ["HTML"]
taxonomy = ["HTML"]
term = ["HTML", "ATOM"]
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @eloquent/git-version-webpack-plugin |
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
package.json
clipboard 2.0.11
katex 0.16.11
mermaid 10.9.1
store2 2.14.3
@babel/eslint-parser 7.25.1
@eloquent/git-version-webpack-plugin 5.0.1
autoprefixer 10.4.20
copy-webpack-plugin 12.0.2
css-loader 7.1.2
eslint 8.57.0
eslint-config-prettier 9.1.0
eslint-plugin-prettier 5.2.1
favicons 7.2.0
favicons-webpack-plugin 6.0.1
html-validate 8.21.0
npm-run-all2 6.2.2
postcss-loader 8.1.1
prettier 3.3.3
sass 1.77.8
sass-loader 16.0.0
shx 0.3.4
svg-sprite 2.0.4
svgtofont 5.0.2
uuid 10.0.0
webpack 5.93.0
webpack-cli 5.1.4
webpack-manifest-plugin 5.0.0
webpack-remove-empty-scripts 1.0.4
node >=18 <=20
colors 1.4.0
.woodpecker/build-package.yml
.woodpecker/docs.yml
quay.io/thegeeklab/hugo 0.127.0
.woodpecker/notify.yml
.woodpecker/test.yml
quay.io/thegeeklab/hugo 0.127.0
quay.io/thegeeklab/lhci 0.13
The example Geekblog site includes the upload date and approximate article duration metadata in both the table of contents view (in the footer) and the post view (in the header).
My implementation of Geekblog is only showing this metadata on the table of contents and not in the gblog-post__header div which is missing a nested gblog-post__meta div.
Can you help me understand how I can include this metadata on the post itself?
I am having an issue when trying to build after using the authors tag in the markdown header. I included the markdown header and the corresponding error. If I exclude the authors tag altogether I can build without problems.
This is not a critical feature because I will be the sole contributor on my blog but thought the feedback might be nice to have.
C:\Hugo\Sites\colinbledsoe>hugo server -D Start building sites โฆ ERROR 2020/11/26 14:57:05 render of "page" failed: execute of template failed: template: _default/single.html:5:7: executing "_default/single.html" at <partial "head/meta" .>: error calling partial: "C:\Hugo\Sites\colinbledsoe\themes\hugo-geekblog\layouts\partials\head\meta.html:18:26": execute of template failed: template: partials/head/meta.html:18:26: executing "partials/head/meta.html" at <index $.Site.Data.authors .>: error calling index: index of untyped nil ERROR 2020/11/26 14:57:05 render of "term" failed: "C:\Hugo\Sites\colinbledsoe\themes\hugo-geekblog\layouts\_default\list.html:51:30": execute of template failed: template: _default/list.html:51:30: executing "main" at <index $.Site.Data.authors .>: error calling index: index of untyped nil ERROR 2020/11/26 14:57:05 render of "home" failed: "C:\Hugo\Sites\colinbledsoe\themes\hugo-geekblog\layouts\_default\list.html:51:30": execute of template failed: template: _default/list.html:51:30: executing "main" at <index $.Site.Data.authors .>: error calling index: index of untyped nil ERROR 2020/11/26 14:57:05 render of "term" failed: "C:\Hugo\Sites\colinbledsoe\themes\hugo-geekblog\layouts\_default\list.html:51:30": execute of template failed: template: _default/list.html:51:30: executing "main" at <index $.Site.Data.authors .>: error calling index: index of untyped nil Built in 99 ms Error: Error building site: failed to render pages: render of "section" failed: "C:\Hugo\Sites\colinbledsoe\themes\hugo-geekblog\layouts\_default\list.html:51:30": execute of template failed: template: _default/list.html:51:30: executing "main" at <index $.Site.Data.authors .>: error calling index: index of untyped nil
Hi there. I see that in your demo there is a Feed link at the bottom.
I can't find this in the docs, and won't show in my blog:
What am I missing?
thanks a lot
hi there! I just installed the theme on my blog, and it's been working great so far. While testing, I noticed a small issue on iOS Safari:
steps to reproduce: open https://hugo-geekblog.geekdocs.de/ in Safari iOS. I used iOS version 15.1.1, iPhone 12.
expected behavior: single button is displayed for dark mode, tapping it toggles between auto/light/dark mode
actual behavior: all three buttons are displayed (see screenshot below), and tapping them appears to do nothing.
This is working perfectly on Safari on my macbook air (big sur). I'm only able to reproduce the issue on iOS.
Hi, I was wondering if there was a plan for implementing multilingual support in the theme. I thnk it should be fairly straightfoward to implement it. If you like the idea I can fork the repository and submit a pull request.
I was thinking the following:
{{ range .Site.Home.Translations }}}
in the main menu{{ .Permalink }}
on every page and using relLangURL
or absLangURL
on every link<link rel="alternate" href="......" hreflang="..."/>
in HTML HeadLet me know.
Thanks
Pablo
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
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.