Skip to content

Commit

Permalink
Merge commit 'e66c1740611b15eee0069811d10b5a22b0dc4332'
Browse files Browse the repository at this point in the history
* commit 'e66c1740611b15eee0069811d10b5a22b0dc4332': (66 commits)
  Remove hugow (luizdepra#146)
  Add missing built css files
  Fix pagination style (luizdepra#145)
  Add pt-br i18n (luizdepra#144)
  Add external link feature for posts (luizdepra#141)
  Fix hidden nav button on inverted (luizdepra#140)
  Easy customize (luizdepra#138)
  Add simple figure style for content class (luizdepra#130)
  Add Twitter Cards to each page (luizdepra#133)
  Fix multilingual home page avatar (luizdepra#134)
  Fix homepage main content section vertical align (luizdepra#118)
  Add missing pages
  Add HUGO_BIN into Makefile
  bug(base-url): change from site url to page url (luizdepra#131)
  Improve icons accessibility (luizdepra#127)
  Upgrade Hugo to v0.52/extended (luizdepra#124)
  Update PR template (luizdepra#125)
  Fix code indent (luizdepra#123)
  Revert flex on body
  Change copyright year to be current (luizdepra#121)
  ...

# Conflicts:
#	archetypes/posts.md
#	layouts/_default/baseof.html
#	layouts/partials/home.html
#	layouts/partials/post.html
#	static/css/style.min.css
#	static/less/colors.less
#	static/less/style.less
  • Loading branch information
agileup committed Feb 25, 2019
2 parents cbb52e3 + e66c174 commit cb58e1f
Show file tree
Hide file tree
Showing 71 changed files with 1,360 additions and 396 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trim_trailing_whitespace = false
indent_size = 2

# web files
[*.{html,css,less}]
[*.{html,css,scss}]
indent_size = 2

[Makefile]
Expand Down
33 changes: 33 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
### Prerequisites

Put an `x` into the box(es) that apply:

- [ ] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

Describe what this pull request achieves.

### Issues Resolved

List any existing issues this pull request resolves.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [ ] Describe what changes are being made
- [ ] Explain why and how the changes were necessary and implemented respectively
- [ ] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [ ] If you have changed any SCSS code, run `make release` to regenerate all CSS files

#### Contributors

- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/themes/
demo/
.hugo/*
!.hugo/version
32 changes: 32 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Contributors

- [Chip Senkbeil](https://github.com/chipsenkbeil)
- [Dale Noe](https://github.com/dalenoe)
- [Gabor Nagy](https://github.com/Aigeruth)
- [Harry Khanna](https://github.com/hkhanna)
- [Ihor Dvoretskyi](https://github.com/idvoretskyi)
- [Jacob Wood](https://github.com/jacoblukewood)
- [Jan Baudisch](https://github.com/flyingP0tat0)
- [Jiri Hubacek](https://github.com/qeef)
- [Khosrow Moossavi](https://github.com/khos2ow)
- [Maikel](https://github.com/mbollemeijer)
- [Myles Johnson](https://github.com/MylesJohnson)
- [Niels Reijn](https://github.com/reijnn)
- [Padraic Renaghan](https://github.com/prenagha)
- [peterrus](https://github.com/peterrus)
- [Philipp Rintz](https://github.com/p-rintz)
- [Ralf Junghanns](https://github.com/rabbl)
- [rdhox](https://rdhox.io)
- [tobaloidee](https://github.com/Tobaloidee)
- [Tomasz Wąsiński](https://github.com/wasinski)
- [Vinícius dos Santos Oliveira](https://github.com/vinipsmaker)
- [Vlad Ionescu](https://github.com/Vlaaaaaaad)
- [Joseph Ting](https://github.com/josephting)
- [Abner Campanha](https://github.com/abnerpc)
- [Martin Kiesel](https://github.com/Kyslik)
- [John Tobin](https://www.johntobin.ie/)
- [Thomas Nys](https://thomasnys.com)
- [Piotr Januszewski](https://piojanu.github.io)
- [Artem Khvastunov](https://artspb.me)
- [Gabriel Nepomuceno] (https://blog.nepomuceno.me)
- [Salvatore Giordano] (https://salvatore-giordano.github.io)
40 changes: 12 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,20 @@
# LESS params
LESS_DIR = ./static/less
LESS_FILE = style.less
LESS_RTL_FILE = style-rtl.less
HUGO_BIN=hugo

# CSS params
CSS_DIR = ./static/css
CSS_FILE = style.min.css
CSS_RTL_FILE = style-rtl.min.css
CSS_TMP_FILE = tmp.css
.PHONY: prepare release build demo clean

define build_less
lessc $(LESS_DIR)/$(1) > $(CSS_DIR)/$(CSS_TMP_FILE)
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(2)
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
endef
build: prepare
$(HUGO_BIN) --source demo

.PHONY: clean demo build build-ltr build-rtl
demo: prepare
$(HUGO_BIN) server --buildDrafts --source demo

build: clean build-ltr build-rtl
release: build
rm -rf ./resources && cp -r ./demo/resources ./resources

build-ltr:
$(call build_less,$(LESS_FILE),$(CSS_FILE))

build-rtl:
$(call build_less,$(LESS_RTL_FILE),$(CSS_RTL_FILE))

demo: build
mkdir -p demo/themes/coder
rsync -av exampleSite/* demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/coder
cd demo && hugo serve -D
prepare: clean
mkdir -p demo/themes/hugo-coder
rsync -av exampleSite/ demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder

clean:
rm -f $(CSS_DIR)/*.css
rm -rf demo
129 changes: 9 additions & 120 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,137 +1,26 @@
![Hugo Coder Logotype](https://github.com/luizdepra/hugo-coder/blob/master/images/logos/logotype-a.png)

A simple and clean blog theme for Hugo.
A simple and clean blog theme for [Hugo](https://gohugo.io/).

![](https://github.com/luizdepra/hugo-coder/blob/master/images/screenshot.png)

## How to use this theme
## Quick Start

To use `hugo-coder` go through the following steps.
1. Add the repository into your Hugo Project repository as a submodule, `git submodule add https://github.com/luizdepra/hugo-coder.git themes/hugo-coder`.
2. Configure your `config.toml`. You can either use the [this minimal configuration](https://github.com/luizdepra/hugo-coder/wiki/Configurations#complete-example) as a base, or look for a complete explanation about all configurations [here](https://github.com/luizdepra/hugo-coder/wiki/Configurations). The [`config.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/config.toml) inside the [`exampleSite`](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) is also a good reference.
3. Build your site with `hugo serve` and see the result at `http://localhost:1313/`.

### Download
## Extra Guides

Clone this repository into your Hugo project.

```
git clone https://github.com/luizdepra/hugo-coder.git themes/coder
```

### Configuration

Add the following lines to your `config.toml`.

```toml
baseurl = "http://www.example.com" # Hostname (and path) to the root.
title = "johndoe" # Site title.
theme = "coder" # Set the theme.
languagecode = "en" # The site’s language code.

paginate = 20 # Default number of pages per page in pagination.
canonifyurls = true # Enable to turn relative URLs into absolute.

pygmentsstyle = "b2" # Color-theme or style for syntax highlighting.
pygmentscodefences = true # Enable code fence background highlighting.
pygmentscodefencesguesssyntax = true # Enable syntax guessing for code fences without specified language.

[params] # theme parameters
author = "John Doe" # Author's name.
info = "Full Stack DevOps and Magician" # Author's job title or info.
description = "John Doe's personal website" # Site description.
keywords = "blog,developer,personal" # Site keywords.

disqusShortname = "yourdiscussshortname" # Enable or disable Disqus

# Whether you want to hide copyright and credits in the footer.
hideCredits = false
hideCopyright = false

# Custom CSS
custom_css = []

# RTL support
rtl = false

# Social links
[[params.social]]
name = "Github"
weight = 1
url = "https://github.com/johndoe/"
[[params.social]]
name = "Twitter"
weight = 2
url = "https://twitter.com/johndoe/"
[[params.social]]
name = "LinkedIn"
weight = 3
url = "https://www.linkedin.com/in/johndoe/"

# Menu links
[[menu.main]]
name = "Blog"
weight = 1
url = "/posts/"
[[menu.main]]
name = "About"
weight = 2
url = "/about/"
```




You can look at full working [`config.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/config.toml) inside the [exampleSite](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) folder.

### Build & Test

To update or generate the minified CSS file:

```
make build
```

To build your site and test, run:

```
hugo server
```
To preview the exampleSite, run
```
make demo
```
The above command copies current state of the theme to exampleSite/themes and starts hugo with hugo serve -D (Go does not support Symlink directories)

### Disqus
Add the following line to your config,
```disqusShortname = "yourdiscussshortname"``` When this is set, all posts are disqus enabled
You can disable comments for a post by adding the following to your page meta data.
```disable_comments: true```


## To Do
- Tags, Categories and Series
* [Multilingual Mode](https://github.com/luizdepra/hugo-coder/wiki/Multilingual-Mode)

## License

Coder is licensed under the [MIT license](https://github.com/luizdepra/hugo-coder/blob/master/LICENSE.md).

## Author

[Luiz de Prá](https://github.com/luizdepra)

## Contributors
## Maintenance

- [Gabor Nagy](https://github.com/Aigeruth)
- [Ihor Dvoretskyi](https://github.com/idvoretskyi)
- [Jan Baudisch](https://github.com/flyingP0tat0)
- [Jiri Hubacek](https://github.com/qeef)
- [Khosrow Moossavi](https://github.com/khos2ow)
- [Maikel](https://github.com/mbollemeijer)
- [peterrus](https://github.com/peterrus)
- [Ralf Junghanns](https://github.com/rabbl)
- [tobaloidee](https://github.com/Tobaloidee)
- [Vlad Ionescu](https://github.com/Vlaaaaaaad)
- [Niels Reijn](https://github.com/reijnn)
- [Harry Khanna](https://github.com/hkhanna)
This theme is maintained by its author [Luiz de Prá](https://github.com/luizdepra) with the help from these awesome [contributors](CONTRIBUTORS.md).

## Special Thanks

Expand Down
4 changes: 3 additions & 1 deletion archetypes/posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
draft = true
date = {{ .Date }}
title = ""
description = ""
slug = ""
tags = []
categories = []
layout = ""
+++
externalLink = ""
+++
Loading

0 comments on commit cb58e1f

Please sign in to comment.