Skip to content

dwy6626/dw-favored-blackburn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DW-Favored-Blackburn

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:

The full changelog is too long (and I don't remember... sorry) to list.

a clear and responsive theme for Hugo.

Overview

  • Based on Yahoo's Pure CSS (v2.0.5)

  • Social links: (I delete a lot link lol)

    • LinkedIn
    • LeetCode
    • GitHub
  • Client-side syntax highlighting by Highlight.js

  • Web analytics by Google Analytics

  • Comments by Disqus

  • Icons by Font Awesome

Demo

screenshot

SEO of my website

SEO 100

Installation

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.

Configuration

Refers to https://github.com/dwy6626/dw-favored-blackburn-example/blob/master/config.toml

Usage

  • 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

Shortcodes

pure_table

{{< 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

{{< 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.

License

Packages

No packages published

Languages

  • HTML 53.4%
  • CSS 24.2%
  • JavaScript 22.4%