├── archetypes
└── default.md
├── exampleSite
├── content
│ ├── homepage
│ │ ├── index.md
│ │ ├── about.md
│ │ └── work.md
│ ├── archives.md
│ ├── post
│ │ ├── _index.md
│ │ ├── rich-content.md
│ │ ├── emoji-support.md
│ │ ├── math-typesetting.md
│ │ ├── placeholder-text.md
│ │ └── markdown-syntax.md
│ ├── _index.md
│ └── about.md
├── archetypes
│ └── default.md
└── config.toml
├── images
├── dark.png
└── light.png
├── static
├── image.jpeg
├── js
│ ├── nav.js
│ └── dark-mode.js
└── css
│ └── styles.css
├── layouts
├── partials
│ ├── tags.html
│ ├── post.html
│ ├── sidebar.html
│ ├── header.html
│ └── head.html
├── _default
│ ├── single.html
│ ├── list.html
│ └── baseof.html
└── index.html
├── theme.toml
├── LICENSE
└── README.md
/archetypes/default.md:
--------------------------------------------------------------------------------
1 | +++
2 | +++
3 |
--------------------------------------------------------------------------------
/exampleSite/content/homepage/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | headless: true
3 | ---
4 |
--------------------------------------------------------------------------------
/images/dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leigholiver/bulb/master/images/dark.png
--------------------------------------------------------------------------------
/images/light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leigholiver/bulb/master/images/light.png
--------------------------------------------------------------------------------
/static/image.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leigholiver/bulb/master/static/image.jpeg
--------------------------------------------------------------------------------
/exampleSite/content/archives.md:
--------------------------------------------------------------------------------
1 | ---
2 | date: 2019-05-28
3 | type: section
4 | layout: "archives"
5 | ---
6 |
--------------------------------------------------------------------------------
/exampleSite/archetypes/default.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "{{ replace .Name "-" " " | title }}"
3 | date: {{ .Date }}
4 | draft: true
5 | ---
6 |
7 |
--------------------------------------------------------------------------------
/exampleSite/content/post/_index.md:
--------------------------------------------------------------------------------
1 | +++
2 | aliases = ["posts", "articles", "blog", "showcase", "docs"]
3 | title = "Posts"
4 | author = "Hugo Authors"
5 | tags = ["index"]
6 | +++
7 |
--------------------------------------------------------------------------------
/exampleSite/content/homepage/about.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'Our Difference'
3 | button: 'About us'
4 | weight: 2
5 | ---
6 |
7 | Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo.
8 |
--------------------------------------------------------------------------------
/layouts/partials/tags.html:
--------------------------------------------------------------------------------
1 | {{ with .Params.tags }}
2 |
3 | {{ range . }}
4 |
5 | {{ $href := print (absURL "tags/") (urlize .) }}
6 |
7 | {{ . }}
8 |
9 |
10 | {{ end }}
11 |
12 | {{ end }}
13 |
--------------------------------------------------------------------------------
/theme.toml:
--------------------------------------------------------------------------------
1 | name = "Bulb"
2 | license = "MIT"
3 | licenselink = "https://github.com/leigholiver/bulb/blob/master/LICENSE"
4 | description = "A minimal Hugo theme using Bulma"
5 | homepage = "https://github.com/leigholiver/bulb"
6 | tags = []
7 | features = []
8 | min_version = "0.41.0"
9 |
10 | [author]
11 | name = "Leigh Oliver"
12 | homepage = "https://leigholiver.com"
13 |
--------------------------------------------------------------------------------
/exampleSite/content/homepage/work.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'We Help Business Grow'
3 | button: 'Our Work'
4 | weight: 1
5 | ---
6 |
7 | Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.
8 |
--------------------------------------------------------------------------------
/layouts/_default/single.html:
--------------------------------------------------------------------------------
1 | {{ define "main" }}
2 |
3 |
🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:
42 | Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) 43 |
44 | {{ math.inline >}} 45 | 46 | Block math: 47 | $$ 48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 49 | $$ 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bulb 2 | A minimal Hugo theme using [Bulma](https://bulma.io/) 3 | 4 | ## Table of Contents 5 | 6 | - [Screenshots](#screenshots) 7 | - [Installation](#installation) 8 | - [Usage](#usage) 9 | - [Support](#support) 10 | - [Contributing](#contributing) 11 | 12 | ## Screenshots 13 |  14 |  15 | 16 | ## Installation 17 | 18 | From your Hugo site directory, add the theme as a submodule: 19 | 20 | ```sh 21 | git submodule add https://github.com/leigholiver/bulb.git themes/bulb 22 | ``` 23 | 24 | Enable the theme in your `config.toml`: 25 | ```toml 26 | theme = "bulb" 27 | ``` 28 | 29 | ## Usage 30 | 31 | The theme is configured in `config.toml` 32 | 33 | General configuration is in the `[Params]` field: 34 | 35 | | Variable | Description | Required | Default | 36 | | ---------------- | ----------- | -------- | ------- | 37 | | `sidebar_image` | The URL of the image to use in the sidebar | No | `/image.jpeg` | 38 | | `sidebar_text` | The text to use in the sidebar | No | `""` 39 | | `google_analytics` | Google Analytics ID | No | `""` 40 | 41 | 42 | The optional social icons in the sidebar are specified in `[[Params.socials]]`: 43 | 44 | | Variable | Description | Required | 45 | | ---------- | ----------- | -------- | 46 | | `icon` | The name of a [FontAwesome brands](https://fontawesome.com/icons?d=gallery&p=2&s=brands&m=free) icon to use | Yes | 47 | | `url` | The URL to link to | Yes | 48 | 49 | You must also include a menu, as in the example below: 50 | ```toml 51 | [Params] 52 | sidebar_text = "A minimal Hugo theme" 53 | footer_text = "Bulb theme" 54 | 55 | [[Params.socials]] 56 | icon = "github-square" 57 | url = "http://example.com" 58 | [[Params.socials]] 59 | icon = "twitter-square" 60 | url = "http://example.com" 61 | 62 | [menu] 63 | [[menu.main]] 64 | name = "Home" 65 | url = "/" 66 | weight = 1 67 | [[menu.main]] 68 | name = "Posts" 69 | url = "/posts/" 70 | weight = 2 71 | [[menu.main]] 72 | name = "Tags" 73 | url = "/tags/" 74 | weight = 3 75 | ``` 76 | 77 | See the `exampleSite` directory for a full example. 78 | 79 | ## Support 80 | 81 | Please [open an issue](https://github.com/leigholiver/bulb/issues/new) for support. 82 | 83 | ## Contributing 84 | 85 | Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/leigholiver/bulb/compare/). 86 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ $title := print .Title " | " .Site.Title }} 6 | {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} 7 |Test
83 | 84 | 85 | ``` 86 | 87 | #### Code block indented with four spaces 88 | 89 | 90 | 91 | 92 | 93 |Test
97 | 98 | 99 | 100 | #### Code block with Hugo's internal highlight shortcode 101 | {{< highlight html >}} 102 | 103 | 104 | 105 | 106 |Test
110 | 111 | 112 | {{< /highlight >}} 113 | 114 | ## List Types 115 | 116 | #### Ordered List 117 | 118 | 1. First item 119 | 2. Second item 120 | 3. Third item 121 | 122 | #### Unordered List 123 | 124 | * List item 125 | * Another item 126 | * And another item 127 | 128 | #### Nested list 129 | 130 | * Fruit 131 | * Apple 132 | * Orange 133 | * Banana 134 | * Dairy 135 | * Milk 136 | * Cheese 137 | 138 | ## Other Elements — abbr, sub, sup, kbd, mark 139 | 140 | GIF is a bitmap image format. 141 | 142 | H2O 143 | 144 | Xn + Yn = Zn 145 | 146 | Press CTRL+ALT+Delete to end the session. 147 | 148 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 149 | --------------------------------------------------------------------------------