colorchestra / smol Goto Github PK
View Code? Open in Web Editor NEWA minimal, monospaced blogging theme for Hugo that respects your privacy and is easy on your bandwidth.
License: MIT License
A minimal, monospaced blogging theme for Hugo that respects your privacy and is easy on your bandwidth.
License: MIT License
First of all, I just want to say that I love your theme, it's simply fantastic.
I am currently using it throughout RStudio IDE using Hugo.
I already completed and developed my page on GitHub pages, but sadly the Dark Mode that I see when I run it locally and on my laptop (I am running in Linux Mint 19.1.) is not present when it is open in Windows 10. Is there any way to force the dark mode on every OS?
Best and thank you!
Álvaro
ps: the site is running here btw https://alvarogutyerrez.github.io/
Type: Bug report
When we create a new site without any post, count of total number of page is 0
, which should be 1
, see below screenshot:
$ hugo new site quickstart
$ cd quickstart
$ git init .
$ git submodule add https://github.com/colorchestra/smol/ themes/smol
$ echo "theme = \"smol\"" >> config.toml
$ hugo server
Count of total number of pages is 0
.
Count of total number of pages should be 1
.
As soon as first post deployed, this issue is fixed.
hugo server -D --bind=192.168.10.10
baseURL = "http://192.168.10.10/"
http://192.168.10.10:1313
takes me to the website hosted on the RPi3. I can navigate most links.
http://192.168.10.10:1313/posts/first_post/
localhost:1313/posts/first_post/
Same issue to any link that displays the "title"
Hi Morph,
I really love this theme -- thanks for creating it! I've noticed an issue with syntax highlighting for code-fenced sections. It seems that the black background inherited from code
in style.css
is overriding the background color rendered by Hugo for highlight
blocks.
Here's an example of a python code-fenced block with the default highlight theme:
It's more obvious when changing to a lighter highlight style, like "friendly" (as opposed to the default "monokai"):
I've tried switching on pygmentsUseClasses=true
and generating corresponding CSS, per the Hugo docs, but no luck. If I comment out the code
line in the CSS, that fixes the issue for the code-fenced blocks, but obviously then I lose the highlighting for all the inline code snippets.
Any ideas? Am I missing something obvious?
The colors in the dark theme were taken directly from the source theme and aren't that great. I could imagine changing them to #FFFFFF on #000000 or something, with the links still in blue if that's not too hard to read
See: https://gohugo.io/templates/internal/
#disqus also needed.
instead of
==========
== smol ==
==========
allow the user to add whatever text they want to show up as a header there. This would be a great place to have your blog title as ascii art.
Images are currently not centered by default. On my own site, I've resorted to writing pure HTML to add images that center, but that is a hack and requires Goldmark to be set to unsafe mode. Automatically centering images should be easy with some CSS.
Hello,
thank you very much for the smol theme.
How do you use this theme in dark mode? (this is not written in the documentation).
Thank you.
Thank you for this great theme! I've made a few modifications to it for my own website (https://sumnerevans.com), and I'd like to know whether you are interested in any of these changes being upstreamed.
Some of the features require JavaScript, which I know is an anti-goal of this theme, so if you do not want me to try and upstream those features, that is fine (I'll continue to maintain them on my fork). However, as I upstream the changes I will make sure that no JavaScript is included by default (users will have to explicitly enable features which require JavaScript).
Other features may be too divergent from the intent of this theme, so I understand if you do not want me to try and upstream them.
Here are a list of the modifications that I have made on my site that could be of interest:
Please let me know if any of these are worth upstreaming and I can work on creating separate issues and/or PRs for them.
Hey!
Could you change the post text align to justify?
Thanks!
Hi,
theme looks really promising 👍
Too bad I can't find a exampleSite
folder in it which could illustrate how my blog posts have to be structured.
Thanks in advance and have a nice week
midzer
edit: somehow it is working now when i put .md
files in posts
folder
Archetypes currently don't work, posts only get the "default" set of variables for the front matter. Separate pages are even more of a PITA. I've played around with this before but it needs to be fixed properly.
At first, thanks for so nice theme! :)
I'm too lazy to make PR, but it would be better to use strings.RuneCount
instead of len
to count length of string, because len
counts bytes instead of symbols.
Why is it important? Just try to use Unicode/not-ASCII symbols in title and all the alignment breaks.
Love this theme
Is this theme abondoned? If so, are there any forks?
Is there any specific reason to hard code Start.
as the main menu?
smol/layouts/partials/header.html
Line 8 in 4129f82
I want to use Home
instead of Start.
in my main menu. We've two approaches here either replace Start
with Home
or remove Start
menu entirely and use range loop to allow users to choose any name they want, by editing theme.toml
.
And also, I think there is no need for a period punctuation at end of each menus, if we want to have separator, we can use a bar just like Evans did.
smol/layouts/partials/header.html
Line 11 in 4129f82
If you're open for these changes, I can make a merge request.
Type: Feature request.
On /posts/
page, datetime format is "2006-01-02", despite parmas.dateFmt
key value being set to different value. This happens because we have hard coded the date format for /posts/
page.
smol/layouts/_default/list.html
Line 16 in 4129f82
It would be nice, if we would respect params.dateFmt
key value.
One solution could be replace:
{{ .Date.Format "2006-01-02" }}
with
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFmt)}}
But there is a one problem with this solution, if .params.dateFmt
key value also contains time
, /posts/
page will also contain time along with date, which I think nobody wants it (i.e. time along with date on /posts/
page).
The menu should generate itself, so that the automatically built site on themes.gohugo.io looks right without having to edit config.toml.
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.