Since the original repo is not updated for a long time, I decide to fork this theme and modify it for my website.
The test version is 0.74.3
Changelog from Blackburn
some important things:
- Adaptive table of contents block
- All images are responsive now! (no need to add
fluid_img
shortcode for every images) - Make the side menu scrollable
- Reading Time
- OG and Twitter card support (for social media sharing)
- Copyright BY-CC-ND 4.0 in each post
- Use Hugo default pagination
- Color customization
- i18n support
404.html
- better w3c
- preconnect to imgur
- aria-label
- better SEO
- Larger texts in menu
- RSS template in
layouts/rss.xml
- New list format (less redundancy)
- Mathjax configuration in
layouts/partials/mathjax.html
The full changelog is too long (and I don't remember... sorry) to list.
a clear and responsive theme for Hugo.
-
Based on Yahoo's Pure CSS (v2.0.5)
-
Social links: (I delete a lot link lol)
- LeetCode
- GitHub
-
Client-side syntax highlighting by Highlight.js
-
Web analytics by Google Analytics
-
Comments by Disqus
-
Icons by Font Awesome
In your Hugo site directory, run:
$ mkdir themes
$ cd themes
$ git submodule add https://github.com/dwy6626/dw-favored-blackburn.git themes/dw-favored-blackburn
See Hugo Quickstart Guide for more information.
Refers to https://github.com/dwy6626/dw-favored-blackburn-example/blob/master/config.toml
- Write Markdown files in
content/post
- Add fixed pages (e.g., about.md) to the side menu by defining them under
[menu]
in the config.toml:
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 2
identifier = "about"
url = "/about/"
- Override the theme by linking to custom CSS files or URLs:
[params]
custom_css = ["css/my.css"]
- Add new behaviours by linking to custom JS files or URLs:
[params]
custom_js = ["js/my.js", "https://cdnjs.cloudflare.com/ajax/libs/zooming/1.4.2/zooming.min.js"]
- Enable table of content:
[params]
toc = true
{{< pure_table
"columnName1|columnName2|...|columnName99"
"dataValue1|dataValue2|...|dataValue99"
"dataValue1|dataValue2|...|dataValue99"
"dataValue1|dataValue2|...|dataValue99"
"... and so on"
>}}
where each positional parameter is separated by the vertical bar (i.e., |). The resulting <table>
is set to have class="pure-table pure-table-striped"
.
{{< fluid_imgs
"class|src|alt"
"class|src|alt"
"... and so on"
>}}
where each positional parameter is separated by the vertical bar (i.e., |).
class
: specifies a Pure CSS unit class name (required)src
: specifies the URL of an image (required)alt
: specifies an alternate text for an image (optional)
See here for examples.