Skip to content

Commit c0824c4

Browse files
committed
Add theme as a folder instead of a submodule
1 parent 69a205e commit c0824c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3097
-4
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "themes/hello_friend"]
2-
path = themes/hello_friend
3-
url = https://github.com/panr/hugo-theme-hello-friend.git

themes/hello_friend

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/hello_friend/.eslintrc.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
3+
env:
4+
es6: true
5+
6+
extends:
7+
# https://github.com/airbnb/javascript
8+
- airbnb
9+
- eslint:recommended
10+
- prettier
11+
12+
parser: babel-eslint
13+
14+
rules:
15+
# best practices
16+
arrow-parens:
17+
- 2
18+
- as-needed
19+
semi:
20+
- 2
21+
- never
22+
class-methods-use-this: 0
23+
comma-dangle:
24+
- 2
25+
- always-multiline
26+
no-console:
27+
- 2
28+
no-unused-expressions: 0
29+
no-param-reassign:
30+
- 2
31+
- props: false
32+
no-useless-escape: 0
33+
func-names: 0
34+
quotes:
35+
- 2
36+
- single
37+
- allowTemplateLiterals: true
38+
no-underscore-dangle: 0
39+
object-curly-newline: 0
40+
function-paren-newline: 0
41+
operator-linebreak:
42+
- 2
43+
- after
44+
no-unused-vars:
45+
- 2
46+
- argsIgnorePattern: "^_"
47+
48+
globals:
49+
document: true
50+
requestAnimationFrame: true
51+
window: true
52+
self: true
53+
fetch: true
54+
Headers: true

themes/hello_friend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
public
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn build && git add . && git commit --amend --no-edit

themes/hello_friend/.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parser": "babel",
3+
"printWidth": 100,
4+
"trailingComma": "all",
5+
"overrides": [{
6+
"files": ["*.html"],
7+
"options": {
8+
"parser": "go-template"
9+
}
10+
}]
11+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Community features
2+
3+
<!--
4+
Did a cool thing with the theme and want to share it with rest of the Hello Friend theme users? Jump in!
5+
6+
Please follow the template:
7+
8+
- **NAME_OF_THE_FEATURE** (LINK TO YOUR FORK)
9+
- SHORT DESCRIPTION
10+
- SOMETHING ABOUT YOU (name and who you are / what you do / etc.)
11+
12+
eg:
13+
14+
- **Social media icons** (https://github.com/...)
15+
- This was a big missing feature of the theme. It will help your audience reach you over the internet.
16+
- John, a javascript developer.
17+
-->

themes/hello_friend/LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 panr
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)