Compare commits

...

406 Commits

Author SHA1 Message Date
Radek Kozieł
aa69b5504c
Merge pull request #316 from mbrgm/inline-code-size-in-em
Make inline code font size relative to parent
2023-01-07 23:52:12 +01:00
Marius Bergmann
0840d5a6db Make inline code font size relative to parent
Previously, `rem` was used, which sets the font-size irrespective of its
surrounding context. Changing this to `em` makes it possible to e.g. use inline
code in headings without rendering them much smaller than the surrounding font.
2023-01-07 17:16:11 +01:00
panr
e412efb718 minor updates 2023-01-03 00:15:59 +01:00
panr
7e806ce13e update footer links 2023-01-02 23:22:17 +01:00
Radek Kozieł
95a746521a
Merge pull request #313 from walmyrcarvalho/patch-1
Adding Walmyr Carvalho as an user
2022-12-16 22:37:56 +01:00
Walmyr Carvalho
901ad231a4
lol 2022-12-16 19:07:37 +01:00
Walmyr Carvalho
0a8bc88ef7
Adding Walmyr Carvalho as an user
Thanks for the amazing theme!
2022-12-16 18:08:35 +01:00
Radek Kozieł
3846874544
Merge pull request #308 from cornelk/update_users
Update USERS.md
2022-10-31 08:22:03 +01:00
cornelk
caa2a92867 Update USERS.md 2022-10-30 22:38:10 -06:00
Radek Kozieł
5cb89a1647
Update README.md 2022-10-30 08:21:21 +01:00
Radek Kozieł
242efdb428
Update README.md 2022-10-29 23:01:43 +02:00
panr
eb7d5dc383 Fix quotes 2022-10-27 16:37:11 +02:00
Radek Kozieł
890b2919ce
Merge pull request #306 from 4nm1tsu/master
fix scss variables for media queries
2022-10-27 16:34:32 +02:00
Hibiki Okada
095e194998 fix scss variables for media queries 2022-10-27 19:00:58 +09:00
panr
89dbf19123 Update README 2022-10-23 11:23:53 +02:00
panr
476ec66e57 Update README 2022-10-23 11:17:48 +02:00
panr
54a137aaad Init Hugo Module 2022-10-23 11:16:46 +02:00
Radek Kozieł
b91e898982
Merge pull request #300 from iancustoica/master
Update USERS.md
2022-09-11 13:28:03 +02:00
iancustoica
aa67b64721
Update USERS.md
Switching domain, still using this theme and loving it!
2022-09-11 12:36:12 +03:00
Radek Kozieł
e2f8ab1267
Merge pull request #296 from panr/dependabot/npm_and_yarn/terser-5.14.2
Bump terser from 5.9.0 to 5.14.2
2022-07-20 08:01:01 +02:00
dependabot[bot]
ad9d2c9457
Bump terser from 5.9.0 to 5.14.2
Bumps [terser](https://github.com/terser/terser) from 5.9.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 01:51:26 +00:00
Radek Kozieł
26cacd17c9
Update README.md 2022-07-04 09:05:36 +02:00
Radek Kozieł
1345d3cbd4
Update README.md 2022-06-04 09:03:39 +02:00
panr
e99e832d94 Allow OS theme when no theme has been set 2022-06-04 01:15:05 +02:00
Radek Kozieł
3ffa8121a0
Merge pull request #280 from IvanVas/patch-1
Update USERS.md
2022-03-30 18:47:54 +02:00
Radek Kozieł
3159e2d1f7
Merge branch 'master' into patch-1 2022-03-30 18:47:35 +02:00
Radek Kozieł
d977890c7a
Merge pull request #285 from panr/dependabot/npm_and_yarn/nanoid-3.3.2
Bump nanoid from 3.1.30 to 3.3.2
2022-03-30 18:46:59 +02:00
Radek Kozieł
eee051760b
Merge pull request #282 from p0jst/patch-1
Update USERS.md
2022-03-30 18:46:51 +02:00
dependabot[bot]
584882b161
Bump nanoid from 3.1.30 to 3.3.2
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.2.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.3.2)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-30 16:46:51 +00:00
Radek Kozieł
00e8578a71
Merge pull request #284 from panr/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-03-30 18:46:14 +02:00
dependabot[bot]
65e081f40a
Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-27 16:49:59 +00:00
p0jst
e75416d6d0
Update USERS.md 2022-03-06 23:04:02 +01:00
Ivan Vaskevych
390e0579f9
Update USERS.md 2022-02-16 14:47:51 +01:00
panr
f7d48e5db4 update anchor styling 2022-01-24 17:30:31 +01:00
Radek Kozieł
303616c5a8
Merge pull request #273 from KenHV/master
Add anchors to headings
2022-01-24 17:24:54 +01:00
KenHV
ded5b87db1 Hide anchor in index
Signed-off-by: KenHV <yo@kenharris.xyz>
2022-01-24 20:02:45 +05:30
KenHV
d32455142d Add anchors to headings
Signed-off-by: KenHV <yo@kenharris.xyz>
2022-01-24 20:02:45 +05:30
Radek Kozieł
c37f1b6591
Merge pull request #278 from taquero-programador/patch-1
add my site to list
2022-01-23 11:40:50 +01:00
Don taco
c1098b2751
add my site to list, update 2022-01-23 04:38:41 -06:00
Don taco
37d0fea9a5
add my site to list update 2022-01-23 04:38:09 -06:00
Don taco
9d8d794901
add my site to list 2022-01-23 04:32:27 -06:00
panr
34ce1500ec make font working with latest css-loader and webpack 5 asset modules 2021-11-07 23:58:55 +01:00
panr
d9d893ff0e fix font loading by downgrading css-loader 2021-11-07 18:49:02 +01:00
panr
2ecdda62ef update README 2021-11-01 19:16:46 +01:00
panr
fa808517f2 make it easier to copy code from README 2021-11-01 19:15:37 +01:00
panr
df780f1256 remove dependabot 2021-11-01 16:26:18 +01:00
panr
7f39a46444 fix assets handling 2021-11-01 15:54:13 +01:00
Radek Kozieł
8e5ef7b6d0
Merge pull request #266 from panr/dependabot/npm_and_yarn/style-loader-3.3.1
Bump style-loader from 1.3.0 to 3.3.1
2021-11-01 15:19:02 +01:00
Radek Kozieł
16775f2fb5
Merge pull request #265 from panr/dependabot/npm_and_yarn/mini-css-extract-plugin-2.4.3
Bump mini-css-extract-plugin from 1.6.2 to 2.4.3
2021-11-01 15:18:54 +01:00
Radek Kozieł
011734fc83
Merge pull request #262 from panr/dependabot/npm_and_yarn/css-loader-6.5.0
Bump css-loader from 5.2.7 to 6.5.0
2021-11-01 15:18:34 +01:00
Radek Kozieł
dccdef9d77
Merge pull request #261 from panr/dependabot/npm_and_yarn/clean-webpack-plugin-4.0.0
Bump clean-webpack-plugin from 3.0.0 to 4.0.0
2021-11-01 15:18:15 +01:00
Radek Kozieł
5adf3db0f1
Merge pull request #260 from panr/dependabot/npm_and_yarn/postcss-loader-6.2.0
Bump postcss-loader from 5.3.0 to 6.2.0
2021-11-01 15:18:05 +01:00
dependabot[bot]
14da438553
Bump style-loader from 1.3.0 to 3.3.1
Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 1.3.0 to 3.3.1.
- [Release notes](https://github.com/webpack-contrib/style-loader/releases)
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/style-loader/compare/v1.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: style-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 14:07:04 +00:00
dependabot[bot]
0e757204b0
Bump mini-css-extract-plugin from 1.6.2 to 2.4.3
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 1.6.2 to 2.4.3.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v1.6.2...v2.4.3)

---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 14:06:53 +00:00
dependabot[bot]
6e9829feeb
Bump css-loader from 5.2.7 to 6.5.0
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.7 to 6.5.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.7...v6.5.0)

---
updated-dependencies:
- dependency-name: css-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 14:06:26 +00:00
dependabot[bot]
e8b9b478ed
Bump clean-webpack-plugin from 3.0.0 to 4.0.0
Bumps [clean-webpack-plugin](https://github.com/johnagan/clean-webpack-plugin) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/johnagan/clean-webpack-plugin/releases)
- [Commits](https://github.com/johnagan/clean-webpack-plugin/compare/v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: clean-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 14:06:16 +00:00
dependabot[bot]
ef78736003
Bump postcss-loader from 5.3.0 to 6.2.0
Bumps [postcss-loader](https://github.com/webpack-contrib/postcss-loader) from 5.3.0 to 6.2.0.
- [Release notes](https://github.com/webpack-contrib/postcss-loader/releases)
- [Changelog](https://github.com/webpack-contrib/postcss-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/postcss-loader/compare/v5.3.0...v6.2.0)

---
updated-dependencies:
- dependency-name: postcss-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 14:06:07 +00:00
panr
6fece0ab15 update dependabot 2021-11-01 15:04:13 +01:00
panr
803d667fcd add dependabot config 2021-11-01 15:03:06 +01:00
Radek Kozieł
e6504a8bd7
Merge pull request #225 from thomasjsn/master
Move post cover to partial
2021-11-01 14:44:26 +01:00
Radek Kozieł
074b49d296
Merge pull request #230 from JonnyDaenen/patch-1
Fix gist rendering
2021-11-01 14:43:48 +01:00
Radek Kozieł
4988517bcd
Merge pull request #244 from franciscoyira/master
Fix tags links in multilingual
2021-11-01 14:42:37 +01:00
Radek Kozieł
e0e014eaff
Merge pull request #248 from nickali/patch-1
adding site
2021-11-01 14:41:54 +01:00
Radek Kozieł
4e534dd5a1
Merge branch 'master' into patch-1 2021-11-01 14:41:48 +01:00
Radek Kozieł
98ec613bd8
Merge pull request #255 from abhinav031/patch-1
Update USERS.md
2021-11-01 14:40:58 +01:00
Radek Kozieł
e6685730d3
Merge branch 'master' into patch-1 2021-11-01 14:40:52 +01:00
Radek Kozieł
b5cff7a503
Merge pull request #256 from schnerring/add-myself
Update USERS.md
2021-11-01 14:40:29 +01:00
panr
15b173ead8 add pre-push hook 2021-11-01 14:37:54 +01:00
panr
de5d80ad37 init husky 2021-11-01 14:36:46 +01:00
panr
c5b71eddba bump webpack version adn config 2021-11-01 14:33:13 +01:00
panr
b5b8d2931a fix code upper case letters. closes #251 2021-11-01 09:03:42 +01:00
Michael Schnerring
a76c819912 Update USERS.md 2021-10-15 02:33:52 +02:00
M31 Andromeda
c833622a64
Update USERS.md 2021-09-30 14:20:23 +00:00
Nick Ali
9642203bea
adding site 2021-08-16 20:34:50 -04:00
Francisco Albornoz
c7bf511567 Fix tags links in multilingual
When using multiple languages the tags links on the blogposts header use always the main language base URL (even when you're on post on other language). This PR fixes that
2021-08-01 00:25:23 -04:00
Radek Kozieł
84bd33a038
Merge pull request #243 from panr/fix-uppercased-code
Add `font-feature-settings: normal` to `code` and `pre`
2021-07-17 23:12:17 +02:00
Radek Kozieł
a9a3e1a8f4 add font-feature-settings: normal to code and pre 2021-07-17 23:11:34 +02:00
Radek Kozieł
3e62106bc9
Merge pull request #231 from sofixa/toc
add the ability to disable table of contents per-page/post
2021-05-12 23:50:33 +02:00
Radek Kozieł
5d778ddcfc
Merge pull request #211 from opfanswyx/master
Update USERS.md
2021-05-12 23:44:11 +02:00
Radek Kozieł
c8dcbbf027
Merge branch 'master' into master 2021-05-12 23:44:03 +02:00
Radek Kozieł
a91bfdc1a5
Merge pull request #217 from miroslavbucek/patch-1
Update USERS.md
2021-05-12 23:43:23 +02:00
Radek Kozieł
4db9c50f41
Merge branch 'master' into patch-1 2021-05-12 23:43:18 +02:00
Radek Kozieł
2861dc8fb3
Merge pull request #238 from finnmglas/patch-1
Update USERS.md
2021-05-12 23:42:46 +02:00
Radek Kozieł
89fb283d4c
Merge pull request #240 from panr/dependabot/npm_and_yarn/postcss-8.2.10
Bump postcss from 7.0.32 to 8.2.10
2021-05-12 23:39:01 +02:00
Radek Kozieł
1c66842e67
Merge pull request #239 from panr/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-05-12 23:38:51 +02:00
Radek Kozieł
249a41befd
Merge pull request #237 from panr/dependabot/npm_and_yarn/ssri-6.0.2
Bump ssri from 6.0.1 to 6.0.2
2021-05-12 23:38:43 +02:00
Radek Kozieł
432303d6df
Merge pull request #236 from panr/dependabot/npm_and_yarn/elliptic-6.5.4
Bump elliptic from 6.5.3 to 6.5.4
2021-05-12 23:38:34 +02:00
dependabot[bot]
2357702601
Bump postcss from 7.0.32 to 8.2.10
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.32 to 8.2.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.32...8.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 09:43:55 +00:00
dependabot[bot]
c04fdb34e0
Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 22:13:34 +00:00
Finn M Glas
1b4905cc03
Update USERS.md
Append FMG3D.com, which is a site I built based on the hugo-hello-friend theme.
2021-05-05 16:16:42 +02:00
dependabot[bot]
60109622e9
Bump ssri from 6.0.1 to 6.0.2
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 19:49:39 +00:00
dependabot[bot]
d863b57792
Bump elliptic from 6.5.3 to 6.5.4
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 17:49:58 +00:00
Radek Kozieł
44c977c9fa
Merge pull request #222 from panr/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-04-30 19:48:37 +02:00
Radek Kozieł
8c2303431d
Merge pull request #234 from farhamdani/patch-1
Update USERS.md
2021-04-30 19:48:27 +02:00
Radek Kozieł
ccbc6e1aa2
Merge pull request #233 from panr/dependabot/npm_and_yarn/y18n-4.0.1
Bump y18n from 4.0.0 to 4.0.1
2021-04-30 19:48:16 +02:00
Farhamdani
a5782cca4e
Update USERS.md 2021-04-01 19:23:22 +08:00
dependabot[bot]
5fa8e2fb05
Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-01 07:00:31 +00:00
Adrian Todorov
48d9246368 add the ability to disable table of contents per-page/post 2021-03-10 18:11:09 +01:00
Jonny Daenen
6f42c9ba30
Fix gist rendering
Hugo gist shortcodes make use of GitHub Gist embedding. As the gist uses a table, it renders wrongly due to the global addressing in the general theme's css. This is a non-elegant fix, but solves the issue.
2021-02-28 13:07:36 +01:00
02105f748b move post cover to partial 2021-01-09 22:58:50 +01:00
dependabot[bot]
ec7bdec6ac
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 05:27:08 +00:00
Miroslav Buček
8741141c9f
Update USERS.md 2020-11-05 21:32:16 +01:00
Radek Kozieł
2c2588d1c6
Merge pull request #214 from gregbair/patch-1
Update USERS.md
2020-10-21 10:02:48 +02:00
Greg
8540a1ee0e
Update USERS.md 2020-10-21 02:44:31 -04:00
Radek Kozieł
881c972d56
Merge pull request #212 from patrickhener/patch-1
Update USERS.md
2020-10-02 23:11:39 +02:00
Patrick Hener
5fbdfbc9bf
Update USERS.md
Add: - https://hesec.de - **Patrick Hener** (Security Researcher, Pentester and Coder)
2020-10-02 13:29:42 +02:00
Atticus
f2190ca758 Update USERS.md 2020-09-23 19:40:37 +08:00
panr
d82855b227 Update Webpack config. 2020-09-13 10:22:25 +02:00
Radek Kozieł
3c32c8648a
Merge pull request #204 from cmlnet/fix-summary
Fix .Summary
2020-09-12 00:46:27 +02:00
Christian Humm
7ce166690f Fix .Summary
Fixes the display of .Summary by removing markdownify from it.
2020-09-11 16:12:28 +02:00
panr
c9cc01c603 Fixes. 2020-09-10 00:22:33 +02:00
panr
83c6d7a5e6 Refactor code & install prettier-plugin-go-template 2020-09-10 00:19:52 +02:00
Radek Kozieł
785e09c45d
Update USERS.md 2020-09-09 08:40:09 +02:00
Radek Kozieł
2e9d54fb77
Merge pull request #201 from shinytoyrobots/improved-cover-alt-text
Added custom alt text functionality to post cover images
2020-09-09 08:36:05 +02:00
shinytoyrobots
4c9276c71d Added custom alt text functionality to post cover images 2020-09-09 00:32:46 -05:00
Radek Kozieł
c9e482ffe3
Merge pull request #200 from shinytoyrobots/patch-1
Update USERS.md
2020-09-09 00:14:56 +02:00
Robin Cannon
a121f15d9b
Update USERS.md
Moved my own personal site to Hugo recently and using this theme
2020-09-08 15:54:18 -05:00
panr
ea9fa9c43d Bump theme version 2020-09-06 01:00:03 +02:00
Radek Kozieł
f566a7b101
Merge pull request #180 from simeononsecurity/patch-1
Update USERS.md
2020-09-05 23:11:07 +02:00
Radek Kozieł
ca2c51710a
Merge branch 'master' into patch-1 2020-09-05 23:10:57 +02:00
Radek Kozieł
de73b74c4b
Merge pull request #188 from korovamilk/patch-1
Update USERS.md
2020-09-05 23:08:17 +02:00
panr
cab65cfcf3 Update dependencies and webpack config. 2020-09-05 19:51:56 +02:00
panr
2382c7531b Update README. 2020-09-05 18:24:20 +02:00
panr
46a294805b Update README. 2020-09-05 17:56:40 +02:00
panr
2a2122f81c Webpack is back! 2020-09-05 17:46:08 +02:00
Radek Kozieł
246ec48738
Update README.md 2020-08-24 16:14:39 +02:00
Marco Agate
124f3464ac
Update USERS.md 2020-08-17 14:22:40 +02:00
Radek Kozieł
75f212bf2d
Update README.md 2020-08-12 08:45:05 +02:00
Radek Kozieł
12cdcc58ad
Update COMMUNITY-FEATURES.md 2020-08-09 00:54:09 +02:00
panr
0be313316f Init version 2
- Switch to the Hugo Pipes (bye bye Webpack)
- Use Inter from Google Fonts
- Update README
2020-08-09 00:43:49 +02:00
simeononsecurity
71fe8a8c39
Update USERS.md
Added SimeonOnSecurity and Alphabetized the list
2020-08-02 04:13:48 -05:00
Radek Kozieł
005e78d86c
Merge pull request #178 from panr/dependabot/npm_and_yarn/elliptic-6.5.3
Bump elliptic from 6.5.2 to 6.5.3
2020-07-30 18:03:57 +02:00
dependabot[bot]
9c13d2a216
Bump elliptic from 6.5.2 to 6.5.3
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-30 15:53:10 +00:00
Radek Kozieł
0ec84e0005
Merge pull request #168 from Toluwalemi/patch-1
Update users,md
2020-07-26 17:33:28 +02:00
Radek Kozieł
e79acb96e0
Merge pull request #172 from farrelmahaztra/patch-1
Remove maximum-scale=1 from viewport meta tag
2020-07-26 17:32:55 +02:00
panr
e58ccef1f2 Another fix for husky config. 2020-07-20 01:44:52 +02:00
panr
fe75305436 Fix husky config. 2020-07-20 01:43:17 +02:00
panr
68cabcbb44 Make assets production ready. 2020-07-20 01:41:20 +02:00
panr
69b41ab230 Stop making language name uppercased in the collapsable code shortcode. 2020-07-20 01:41:09 +02:00
panr
89662e440d Fix husky config syntax. 2020-07-20 01:38:41 +02:00
panr
efb93ebda6 Add husky package and config. 2020-07-20 01:23:33 +02:00
Radek Kozieł
a25b208daa
Merge pull request #174 from panr/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-19 17:46:12 +02:00
panr
4c4eb24f15 Minimize the assets because someone yelled at me... 2020-07-17 08:49:33 +02:00
dependabot[bot]
961b323fec
Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 02:28:31 +00:00
Farrel Mahaztra
ced6be1505
Remove maximum-scale=1 from viewport meta tag
The maximum-scale=1 attribute prevents low-vision users from magnifying the page in some browsers. This isn't applicable to browsers like Safari in iOS 10+, but it would still be ideal to accommodate the aforementioned users for other browsers. Also, this results in a Lighthouse score penalty for accessibility. Alternatively, we could increase maximum-scale to 5 or above if removing it results in a known UI/UX regression I haven't looked into.

Some further reading:
* https://a11yproject.com/posts/never-use-maximum-scale/
* https://web.dev/meta-viewport
* https://www.w3.org/TR/WCAG21/#resize-text
2020-07-10 17:51:52 +07:00
panr
c08fe10125 Update cover styling and show the cover caption also on the list of contents 2020-07-07 18:56:33 +02:00
Zachary Porter
d4d477e3b6 Add coverCaption param to post frontmatter 2020-07-07 18:43:02 +02:00
Toluwalemi Oluwadare
e34720eb12
Update users,md
Added my blog to the file.
2020-07-02 13:52:50 +01:00
panr
149fb37220 Refactor styling code 2020-06-20 00:07:59 +02:00
panr
409741f42c Add collapsable code shortcode 2020-06-19 23:49:21 +02:00
Radek Kozieł
d5b7eefa20
Merge pull request #166 from etra0/patch-1
add a site using the template
2020-06-18 23:10:35 +02:00
Sebastián A
1524ba90ff
Update USERS.md 2020-06-18 16:03:37 -04:00
Radek Kozieł
0d80e241f7
Update README.md 2020-06-17 17:08:07 +02:00
panr
125d85cfbb Update templates 2020-06-17 17:04:46 +02:00
Radek Kozieł
746a015088
Merge pull request #165 from guilhermesteves/feature/guilhermesteves.dev
add guilhermesteves.dev
2020-06-16 23:13:48 +02:00
Guilherme Esteves
b8e2f47429
add guilhermesteves.dev 2020-06-16 14:47:09 -03:00
Radek Kozieł
8f7ced3470
Update README.md 2020-06-13 15:57:51 +02:00
Radek Kozieł
670dc85b07
Merge pull request #159 from eallion/master
add me to USERS.md
2020-05-28 10:30:58 +02:00
Radek Kozieł
d72593b1b1
Merge pull request #148 from aormsby/PR-rss
RSS Enhancements
2020-05-27 23:22:06 +02:00
Radek Kozieł
ee2a55ad0b
Merge branch 'master' into PR-rss 2020-05-27 17:00:25 +02:00
Charles Chin
6c1dc81be4
Update USERS.md 2020-05-27 14:57:34 +08:00
Charles Chin
479935e602
Merge pull request #1 from panr/master
pull
2020-05-27 14:55:08 +08:00
Radek Kozieł
ecf77d7031
Merge pull request #141 from aormsby/PR-toc
Add basic Table of Contents for posts
2020-05-27 08:26:11 +02:00
Adam Ormsby
0aad509a70 Merge branch 'PR-rss' of https://github.com/aormsby/FORKED-hugo-theme-hello-friend into PR-rss 2020-05-26 18:51:44 -05:00
Adam Ormsby
b1305f42fa add site param check 2020-05-26 18:48:26 -05:00
Adam Ormsby
005e9fca71 better printf style 2020-05-26 18:38:15 -05:00
Radek Kozieł
5fa9d1589f
Merge branch 'master' into PR-rss 2020-05-27 00:55:30 +02:00
Radek Kozieł
4083e16784
Merge pull request #132 from aormsby/PR-imgproc-pos
Add position param to imgproc shortcode
2020-05-27 00:41:00 +02:00
Radek Kozieł
8b08502c29
Merge pull request #151 from aormsby/PR-404
Add 404 page with tag list
2020-05-26 23:31:20 +02:00
Adam Ormsby
c046067538 move 404 to layouts/ 2020-05-26 14:02:11 -05:00
Radek Kozieł
6ce7aed131
Add Kartini Teknologi team to the user list 2020-05-26 20:14:00 +02:00
Radek Kozieł
f7e0d53340
Merge pull request #156 from guilhermesteves/feature/clickable-li
Make "more" submenu entire li clickable
2020-05-26 20:04:09 +02:00
Guilherme Esteves
82db432dbc
update source/css/menu.css
Co-authored-by: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-05-20 18:59:18 -03:00
Adam Ormsby
f35a6c88a1 add rss image 2020-05-20 13:59:33 -05:00
Adam Ormsby
b4504b35b2 fix img tags 2020-05-20 12:43:00 -05:00
Guilherme Esteves
2be3c241d5
make "more" entire li clickable 2020-05-16 21:41:26 -03:00
Adam Ormsby
c964eb8ea7 add 404 page with tag list 2020-05-02 17:14:01 -05:00
Adam Ormsby
05c034a966 fix rss top to match hugo internal 2020-04-29 15:13:15 -05:00
Adam Ormsby
043852e387 fix minor typo 2020-04-28 23:25:13 -05:00
Adam Ormsby
f62c476876 update readme with RSS enhancements 2020-04-28 23:21:49 -05:00
Adam Ormsby
9cce3e783e check rssFullText param (new),
display either full content, description, or summary in feed
2020-04-28 23:08:33 -05:00
Adam Ormsby
2583a1c4bf add cover image from front matter,
set auto cover grab as backup following similar hugo standard
2020-04-28 23:08:28 -05:00
Adam Ormsby
b52428a2cf copy internal hugo rss for customization 2020-04-28 23:08:21 -05:00
Radek Kozieł
cf5e597491
Merge pull request #144 from hiteshjasani/fix-post-title-h1
Post title should be an H1 element for semantic and search rankings.
2020-04-14 01:36:16 +02:00
Hitesh Jasani
f45b762566 Post title should be an H1 element for semantic and search rankings. 2020-04-11 11:03:39 -04:00
panr
5cf4ca6c2d Fix dependecies 2020-04-01 19:45:18 +02:00
Radek Kozieł
251e3c8eda
Merge pull request #142 from aormsby/add-me
add self to users
2020-03-17 17:41:29 +01:00
Adam Ormsby
4086baba28 add self to users 2020-03-17 22:49:23 +07:00
Adam Ormsby
dab37f7e53 udpate readme 2020-03-12 23:28:53 +07:00
Adam Ormsby
f9e72c9d4c add basic table of contents 2020-03-12 23:16:33 +07:00
Adam Ormsby
fa979be419 merge master 2020-02-11 18:13:29 +07:00
panr
4be09e7180 Fix link in README 2020-02-05 16:33:03 +01:00
panr
9b5783aa11 Add param to hide ReadMore button for a single post 2020-02-05 16:30:19 +01:00
Adam Ormsby
1717d887b6 clean merge files 2020-01-31 15:32:40 +07:00
Adam Ormsby
9598012a77 update README 2020-01-31 15:22:29 +07:00
Radek Kozieł
184a74ceb2
Merge pull request #134 from ilya-lesikov/patch-1
Add site to USERS.md
2020-01-30 08:17:08 +01:00
Ilya Lesikov
b61855c3e8
Add site to USERS.md 2020-01-29 21:37:56 +03:00
Adam Ormsby
b7a187917b add local position var 2020-01-29 12:45:05 +07:00
panr
7a69ffcdf8 Small fixes to lastMod feature 2020-01-27 18:29:31 +01:00
panr
853c16dac3 Update dependencies and prettier config 2020-01-27 18:26:12 +01:00
Radek Kozieł
a50ce744bd
Merge pull request #107 from aormsby/PR-Improve-LastModDate
Improvement - Add last modified date display to list/single layouts
2020-01-27 18:20:05 +01:00
Radek Kozieł
9ace883447
Merge pull request #124 from narvalotech/patch-1
Add my website
2020-01-27 18:10:02 +01:00
Radek Kozieł
ca1dde6a92
Merge branch 'master' into patch-1 2020-01-27 18:09:48 +01:00
Radek Kozieł
6029625356
Merge pull request #128 from mritd/master
docs(users): add mritd.com
2020-01-27 18:09:14 +01:00
Adam Ormsby
51d17bbce6 add position param to imgproc just like image and figure 2020-01-23 16:15:18 +07:00
mritd
4c0832e2df
docs(users): add mritd.com
add mritd.com

Signed-off-by: mritd <mritd@linux.com>
2020-01-21 13:05:29 +08:00
Radek Kozieł
42fc5564ca
Add buymeacoffee button in README 2020-01-18 20:14:44 +01:00
narvalotech
9cea1423cf
Add my website 2020-01-04 21:44:13 +01:00
Radek Kozieł
5b4c773554
Merge pull request #122 from aormsby/disable-page-comments
PR - Add condition to show *comments* only in defined contentType pages
2019-12-29 19:07:18 +01:00
Adam Ormsby
28b6f11618 add comments=false check 2019-12-27 14:51:52 +07:00
Adam Ormsby
d9ade4410a add check for comments param 2019-12-27 14:32:20 +07:00
Adam Ormsby
91ca408bdd disable comments on non-specific page types 2019-12-24 09:32:31 +07:00
panr
95906d6405 Add condition to show pagination only in defined contentType pages 2019-12-18 18:00:08 +01:00
Adam Ormsby
b3f87e60ce yarn build 2019-12-17 11:51:48 +07:00
Adam Ormsby
ef213c620d remove trailing brace 2019-12-17 11:44:22 +07:00
Adam Ormsby
285e9e879a add time threshold (1 hr) for last mod display 2019-12-17 11:20:41 +07:00
Radek Kozieł
779d78a810
Merge pull request #117 from imgalone/patch-1
Added my site to the list
2019-12-14 17:45:20 +01:00
imgalone
4fce64d2b5
Added my site to the list
Thanks for the theme.
2019-12-13 20:53:18 +02:00
Adam Ormsby
211e002ab6 removed float css, readme mod, aligned users with upstream repo master 2019-12-01 23:28:21 +07:00
Adam Ormsby
3b9ad17e22 Integrating panr's changes to use partial for lastmod date display, also checks if lastmoddate > date 2019-12-01 22:49:18 +07:00
Adam Ormsby
3b3903afd3 Revert "Merge branch 'Working' into PR-Improve-LastModDate"
This reverts commit 59634fd0d3d5ffebd263e3c795cd679d6c3877b4, reversing
changes made to 4cfe93ec296d7b387e99c9488a26ab768d741fc0.
2019-12-01 22:21:21 +07:00
Adam Ormsby
59634fd0d3 Merge branch 'Working' into PR-Improve-LastModDate
(maintaining parallel branch status)
2019-11-30 13:51:05 +07:00
Adam Ormsby
b56e0d5640 Merge branch 'master' into Working
# Conflicts:
#	layouts/_default/list.html

accepting incoming master change to lessen divergent chunks
2019-11-30 13:49:23 +07:00
Adam Ormsby
cbbacd5b5e add panr mods 2019-11-30 13:18:09 +07:00
Radek Kozieł
0a4824c145
Merge pull request #109 from cobalto/patch-1
New user using hello-friend theme
2019-11-20 09:51:05 +01:00
Daniel Pessoa
559766c143
New user using hello-friend theme 2019-11-19 20:32:13 -03:00
Radek Kozieł
c19a664063
Merge pull request #108 from felleg/patch-1
Proud new hello-friend user signing in!
2019-11-18 22:45:21 +01:00
Félix Léger
723aed210d
Proud new hello-friend user signing in! 2019-11-18 14:57:39 -05:00
Adam Ormsby
4cfe93ec29 update ReadMe 2019-11-10 16:43:05 +07:00
Adam Ormsby
dfbb8dab18 add CSS for last mod date (float right), yarn build (unsure about this) 2019-11-10 16:42:55 +07:00
Adam Ormsby
348fcf849c pulled upstream 2019-11-10 16:40:16 +07:00
Radek Kozieł
fb3a5f08db
Merge pull request #104 from panr/dependabot/npm_and_yarn/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2
2019-11-10 09:22:47 +01:00
Radek Kozieł
73b4c48dcc
Merge pull request #106 from aormsby/PR-BugFix-RemoveEmptyListDateDisplay
Bug Fix to prevent incorrect default Date display in List layout
2019-11-10 09:20:58 +01:00
Adam Ormsby
d12d24411e single and list - add last mod date display, float right
params - add .LastModDisplay string to enable/disable
2019-11-10 14:54:22 +07:00
Adam Ormsby
1dd80e76b5 list layout - check for .Date 2019-11-10 14:53:09 +07:00
Adam Ormsby
45740f99c1 encapsulated the date display in a conditional check to see if there is .Date data to display 2019-11-10 14:40:46 +07:00
Adam Ormsby
a8037bfbe8 New feature - Display last modified date on post content in both list and single layouts if it exists.
config param added - LastModDisplay - empty string = nothing displayed, string w/ value = display the value and then the date.
Example - lastModDisplay = "Updated: " - displayed as "Updated: [lastmod date]"
2019-11-10 13:47:07 +07:00
Adam Ormsby
8759dd6b38 Added conditional check - if there is no date, do not display content date in the list view. 2019-11-10 13:42:29 +07:00
dependabot[bot]
0713ca3910
Bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-03 14:49:49 +00:00
Radek Kozieł
ca2e314c6e
Merge pull request #102 from subinsv/improvement/fontDisplayProperty
[Improvement] Avoid Invisible text during loading (FOIT)
2019-11-03 15:48:38 +01:00
subin sv
19482cc3d9 webpack build 2019-11-03 16:30:58 +05:30
subin sv
edf40ac5db Avoid Invisible text during loading (FOIT) 2019-11-03 15:44:58 +05:30
Adam Ormsby
e5ff39d0de moved head bit for Formspree to prepended head file (proper place) 2019-11-02 17:32:57 +07:00
Adam Ormsby
b03f844e1c added 'referer' to 'head' partial to make formspree work properly 2019-10-29 21:53:00 +07:00
Adam Ormsby
588036687e Added vertical bar to footer partial 2019-10-21 21:10:55 +07:00
Radek Kozieł
654bee2f24
Merge pull request #96 from AsterYujano/add-site-to-users-list
Add François to Users-list
2019-09-24 09:34:39 +02:00
Radek Kozieł
96f355cb9a
Merge branch 'master' into add-site-to-users-list 2019-09-24 09:34:32 +02:00
Radek Kozieł
6924c1ce4a
Merge pull request #97 from Jyny/upstream
New user using hello-friend theme.
2019-09-24 09:34:07 +02:00
Jyny Chen
0c75155aac New user using hello-friend theme. 2019-09-16 19:03:48 +08:00
Francois
945ff66e80 Add François to Users-list 2019-09-11 18:32:41 +02:00
panr
03d4390fa9 Change terms page 2019-09-10 10:01:55 +02:00
Radek Kozieł
d85cdb04b3
Merge pull request #93 from thomasjsn/master
Add terms index
2019-09-10 09:35:21 +02:00
Radek Kozieł
55b907163d
Merge pull request #94 from jcalabres/master
New user using hello-friend theme.
2019-09-06 14:25:44 +02:00
jcalabres
bc27213999 New user using hello-friend theme. 2019-09-06 11:56:52 +02:00
47cf967ba8 Add terms index 2019-09-04 22:14:43 +02:00
Radek Kozieł
40b5b2b887
Update theme.toml 2019-08-30 09:06:51 +02:00
panr
819b0dc373 Fix list.html #87 2019-08-25 09:34:00 +02:00
Radek Kozieł
7427cfa3b4
Fix list template for Hugo 0.57 2019-08-14 23:05:55 +02:00
panr
840dbe0dc4 Add keywords support for a single page 2019-08-08 12:58:13 +02:00
Radek Kozieł
715c7e5c5a
Merge pull request #82 from gabrielacaesar/patch-3
Update USERS.md
2019-08-08 08:27:52 +02:00
gabrielacaesar
fa853b1c68
Update USERS.md 2019-08-08 00:44:31 -03:00
Radek Kozieł
e23decb32a
Update README.md 2019-08-03 18:47:54 +02:00
Radek Kozieł
221bd8cc96
Merge pull request #73 from Pizzacus/master
SVG optimisation, Netlify fix, font-related improvements, and header background customisation
2019-08-03 18:43:37 +02:00
panr
88b0b179a0 Add imgproc shortcode 2019-08-03 18:25:45 +02:00
Radek Kozieł
5c33ea94d9
Merge pull request #77 from gregtczap/master
Added a prepended_head.html partial hook
2019-08-03 17:43:59 +02:00
Radek Kozieł
e96a627082
Merge pull request #81 from fazi1058/patch-1
add myself to users of hello-friend theme
2019-08-03 17:43:16 +02:00
Faezeh Roeinfard
6dd879a781
add myself to users of hello-friend theme 2019-07-29 16:52:08 +04:30
Greg Tzar
d633533752 Merge branch 'master' of github.com:gregtczap/hugo-theme-hello-friend 2019-07-15 20:42:06 -04:00
Greg Tzar
286af113f0 Added a prepended_head.html partial to allow custom insertion of scripts and links to be declared before the templates. 2019-07-15 20:38:33 -04:00
Radek Kozieł
f0064cbc70
Merge pull request #76 from panr/dependabot/npm_and_yarn/lodash-4.17.14
Bump lodash from 4.17.11 to 4.17.14
2019-07-15 08:00:05 +02:00
Radek Kozieł
f83581dfb9
Merge pull request #75 from panr/dependabot/npm_and_yarn/lodash.template-4.5.0
Bump lodash.template from 4.4.0 to 4.5.0
2019-07-15 07:59:55 +02:00
Pizzacus
5f61f576b9
Allow Markdown in figure captions 2019-07-11 14:21:22 +02:00
dependabot[bot]
a42348d2cf
Bump lodash from 4.17.11 to 4.17.14
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 10:34:07 +00:00
dependabot[bot]
3ce5930fb0
Bump lodash.template from 4.4.0 to 4.5.0
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 10:33:59 +00:00
Radek Kozieł
8c9ecd8268
Merge pull request #74 from panr/dependabot/npm_and_yarn/lodash.merge-4.6.2
Bump lodash.merge from 4.6.1 to 4.6.2
2019-07-11 08:28:52 +02:00
dependabot[bot]
d199520f88
Bump lodash.merge from 4.6.1 to 4.6.2
Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 06:24:16 +00:00
Pizzacus
23233fd39b
Make the footer use the secondary text colour 2019-07-09 14:54:52 +02:00
Pizzacus
025069ab90
Add a CSS variable for header colour 2019-07-09 14:17:15 +02:00
Pizzacus
2f1f2d3f23
Set font-feature-settings in @font-face instead 2019-07-09 14:14:19 +02:00
Pizzacus
f8f2c3492b
Optimise an SVG icon 2019-07-09 14:12:56 +02:00
Radek Kozieł
864ec100d5
Merge pull request #71 from musq/upstream-dev
docs(users): Add musq to USERS.md
2019-07-08 17:00:38 +02:00
Ashish Ranjan
7950dc9c4a
docs(users): Add musq to USERS.md 2019-06-29 21:58:51 +05:30
Radek Kozieł
8af25b8493
Merge pull request #69 from mfaishal19/patch-1
Add myself to users list
2019-06-20 09:10:23 +02:00
Faishal Irawan
a6910271e6
Add myself to users list 2019-06-20 08:24:44 +07:00
panr
4a1b70019b Add internal templates for OG, Twitter Cards and GA 2019-06-14 18:59:51 +02:00
panr
3eb56a3ce0 Update packages 2019-06-08 12:42:37 +02:00
Radek Kozieł
37fa3de4e3
Merge pull request #63 from musq/upstream-dev
[example] Correct cover image link
2019-06-05 19:45:00 +02:00
Radek Kozieł
82073aa51b
Merge pull request #58 from MyIgel/fix-cover-image
Removed urlize from cover links
2019-06-05 00:29:35 +02:00
Radek Kozieł
6378c52822
Merge pull request #59 from arubacao/patch-1
Open gohugo and twitter in new tab
2019-06-05 00:28:01 +02:00
Radek Kozieł
df46099968
Merge pull request #65 from arubacao/patch-2
Update USERS.md
2019-06-05 00:24:35 +02:00
arubacao
aec82d2a96
Update USERS.md 2019-05-31 17:30:23 +02:00
Radek Kozieł
e689746014
Merge pull request #60 from arubacao/patch-2
Update RSS link in head
2019-05-28 08:11:17 +02:00
Ashish Ranjan
da04d638f9
[example] Correct img link of cover 2019-05-25 23:55:15 +05:30
arubacao
23249f1d6d
Update layouts/partials/head.html
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2019-05-24 12:10:27 +02:00
Radek Kozieł
c46c903fd1
Merge pull request #61 from Protoc0d/patch-1
Update USERS.md
2019-05-24 09:52:46 +02:00
Maximilien DI DIO
0e3ddeee54
Update USERS.md 2019-05-22 00:22:52 +02:00
arubacao
1590dac974
Update RSS link in head 2019-05-12 21:29:34 +02:00
arubacao
7d0c88abd5
Open gohugo and twitter in new tab 2019-05-12 20:08:06 +02:00
Igor Scheller
9940c34fba Removed urlize from cover links
closes #57 (Bug: Using urlize in cover image URL's replaces uppercase characters with lowercase ones)
2019-05-12 01:25:46 +02:00
panr
e0c1777296 Add Archive page template 2019-04-16 17:00:46 +02:00
panr
b25bff002f Add Archive page 2019-04-16 16:55:53 +02:00
Radek Kozieł
bad287c4be
Merge pull request #48 from bangau1/avoid-301-redirection
Append trailing '/' to avoid 301 redirection
2019-04-16 11:46:24 +02:00
Radek Kozieł
e6e72ae4a9
Merge pull request #47 from hexandcube/patch-1
Fix typo in layouts/partials/comments.html
2019-04-10 14:50:01 +02:00
Radek Kozieł
b0de125a1a
Merge pull request #49 from bangau1/remove-unsecure-http-link
Use https for the gohugo link
2019-04-10 14:41:21 +02:00
Radek Kozieł
b1ad8e92ea
Merge pull request #51 from bangau1/patch-1
Add list of user to include mine
2019-04-10 14:40:39 +02:00
Agung Pratama
2eed6cf192
Add list of user to include mine 2019-04-08 17:37:00 +07:00
Agung Pratama
71907ce12d Use https for the gohugo link 2019-04-08 15:19:11 +07:00
Agung Pratama
73cae8888e Append trailing '/' to avoid 301 redirection 2019-04-08 15:14:32 +07:00
Mikołaj Zaremba
5a7c7bf0a3
Fix typo in layouts/partials/comments.html 2019-04-07 22:31:15 +02:00
Radek Kozieł
a9bdc4def1
Update README.md 2019-03-31 18:38:02 +02:00
Radek Kozieł
fa532c6bfb
Update README.md 2019-03-31 18:37:18 +02:00
Radek Kozieł
1306fcbcaf
Merge pull request #43 from bangau1/blog.agung.io
Add head and footer custom partial
2019-03-31 18:32:53 +02:00
Radek Kozieł
017f61b323
Update README.md 2019-03-25 07:06:31 +01:00
Agung Pratama
d38b1d9e97
Change the comment to reflect the correct file name
Signed-off-by: Agung Pratama <agp.csui08@gmail.com>
2019-03-25 09:40:35 +07:00
Agung Pratama
c8c495d003
Rename it to extended_(head|footer).html 2019-03-25 09:36:56 +07:00
Radek Kozieł
af6f549dd9
Merge pull request #44 from mpaepper/master
Implemented the possibility to use a relative cover image as well
2019-03-24 18:27:26 +01:00
Radek Kozieł
e03d210eb9
Merge pull request #45 from pard68/patch-1
Added self to USERS.md
2019-03-24 18:24:41 +01:00
Ian S. Pringle
915a0acadf
Added self to USERS.md 2019-03-23 21:46:36 -04:00
Marc Päpper
e9aae285a6 Improved code by using UseRelativeCover flag to post rather than having cover and relcover to avoid code duplication 2019-03-19 17:47:05 +01:00
Marc Päpper
7bf862d9d3
Update README.md 2019-03-19 17:28:41 +01:00
Marc Päpper
eefc6368dc
Update README.md 2019-03-19 17:23:48 +01:00
Marc Päpper
608fe3bbe9 Added the possibility to add relative cover images 2019-03-19 17:22:40 +01:00
Marc Päpper
fdd6736e1d
Merge pull request #1 from panr/master
Update from fork master
2019-03-19 17:12:04 +01:00
panr
0c812c9fa1 Fix menuMore null error 2019-03-17 17:43:05 +01:00
Agung Pratama
2acd964d45
Add head/footer custom 2019-03-16 23:35:06 +07:00
Radek Kozieł
1cfec04653
Merge pull request #40 from da-moo/master
Add configuration option to change date format
2019-03-11 18:54:26 +01:00
DaMoo
ab1714b799 Add configuration option to change date format 2019-03-11 08:06:48 -04:00
Radek Kozieł
d7b27c55c2
Update README.md 2019-03-06 01:18:18 +01:00
Radek Kozieł
740dfa22ab
Create USERS.md 2019-03-06 01:17:22 +01:00
Radek Kozieł
be730d5c28
Update README.md 2019-03-06 01:16:57 +01:00
Radek Kozieł
f7e16f680f
Update README.md 2019-02-26 00:21:30 +01:00
panr
ca807c2ad6 Small fixes to reading time feature 2019-02-22 10:06:03 +01:00
Radek Kozieł
f234269325
Merge pull request #36 from mpaepper/master
Added ReadingTime indication to give the reader an idea of the read t…
2019-02-22 09:59:11 +01:00
Marc Päpper
ace5be049f Introduced boolean variable showReadingTime to activate reading time feature. Added translation for 'min read'. Changed hyphen to em dash. 2019-02-21 08:21:47 +01:00
Marc Päpper
32ea5dc5cf Added ReadingTime indication to give the reader an idea of the read time in minutes 2019-02-15 09:35:16 +01:00
panr
7d484b27a2 Fixes 2019-02-09 09:11:20 +01:00
panr
abdf01a5c9 Recompile files 2019-02-09 00:10:21 +01:00
panr
e1b01b9b24 Update dependencies 2019-02-09 00:09:44 +01:00
Radek Kozieł
e2039dc8e1
Merge pull request #34 from MyIgel/fix-cover-img
Removed `img/` prefix from cover page params
2019-02-08 19:00:09 +01:00
Igor Scheller
b295b14830 Removed img/ prefix from cover page params
closes #33 (Don't prepend `img/` on cover links)
2019-02-08 06:23:49 +01:00
panr
32409a7012 Update Inter font 2019-02-06 12:52:43 +01:00
panr
8d86361f8c Update README 2019-02-05 19:12:52 +01:00
panr
1cf1b67856 Fix code font-size 2019-02-05 19:11:06 +01:00
Radek Kozieł
25ec8673b2
Merge pull request #30 from MyIgel/master
Make "Older/Newer posts" texts configurable and allow empty config file
2019-02-05 18:46:37 +01:00
Igor Scheller
a0d73cd693 Allow empty config file 2019-02-05 18:40:54 +01:00
Igor Scheller
d2c8066861 Make "Older/Newer posts" texts configurable 2019-02-05 18:39:18 +01:00
Radek Kozieł
ff891dad96
Merge pull request #32 from MyIgel/fix-single-page-date
Hide date on single pages if not set
2019-02-05 18:35:28 +01:00
Igor Scheller
0162c21fb3 Hide date on single pages if not set
closes #31 (Hide date on single pages when not set)
2019-02-05 15:41:22 +01:00
panr
20599a8119 Fix post styles 2019-02-02 01:01:02 +01:00
panr
ab9bb3b3fb Fix menu 2019-02-01 15:53:23 +01:00
panr
8402237a8d Fix menu and font-weight 2019-02-01 15:35:13 +01:00
panr
ebceb6857c Add comment section option 2019-02-01 15:06:59 +01:00
panr
d398ce4163 Compile files 2019-02-01 10:13:10 +01:00
panr
c88ad052ac Add table support 2019-02-01 10:11:48 +01:00
panr
2f7bdc728c Add submenu 2019-02-01 10:06:44 +01:00
panr
08f0f2fb0a Add homepage to theme.toml 2019-01-30 10:33:43 +01:00
panr
15dbbc51ee Fix layout 2019-01-29 19:24:36 +01:00
Radek Kozieł
a98590b0ba
Update README.md 2019-01-29 18:16:17 +01:00
Radek Kozieł
f5a9f16a98
Update theme.toml 2019-01-29 18:13:00 +01:00
Radek Kozieł
9de4dfd60e
Update theme.toml 2019-01-29 18:12:25 +01:00
Radek Kozieł
018f087a1f
Update LICENSE.md 2019-01-29 18:11:40 +01:00
Radek Kozieł
1f6bc9afc3
Update theme.toml 2019-01-29 18:11:15 +01:00
panr
18cb6103bb Move hello.jpg to exampleSite 2019-01-29 14:54:56 +01:00
panr
80b1f0ddeb Fix typos 2019-01-29 11:12:46 +01:00
Radek Kozieł
d9db5c5b8e
Merge pull request #24 from ppmx/ppmxbugassets
fix path to assets
2019-01-29 09:37:37 +01:00
mx
7794814b45 fix paths of assets 2019-01-29 09:26:05 +01:00
panr
f48f16c850 FIx examplePage config 2019-01-29 08:54:54 +01:00
mx
c8e49f331f fix path to assets 2019-01-28 22:51:51 +01:00
panr
bf0f5f5bce Fix Webpack config 2019-01-28 17:23:52 +01:00
panr
6be1e1f8b1 Fixes 2019-01-28 17:20:40 +01:00
panr
bb6fdc2493 Fix Head meta 2019-01-25 18:54:07 +01:00
panr
72e85173cf Change theme config 2019-01-25 18:30:24 +01:00
panr
5cfc6e4f29 Update meta for Hugo themes base 2019-01-25 16:49:30 +01:00
panr
b0dfb769d1 Add contentTypeName to config 2019-01-25 10:21:14 +01:00
Radek Kozieł
27a013b809
Update README.md 2019-01-21 08:54:54 +01:00
panr
e0787f1e1d Add multilanguage support 2019-01-20 17:55:51 +01:00
panr
62709b7219 Update README 2019-01-06 17:41:44 +01:00
panr
fbeb2cdb8d Update README 2019-01-06 17:26:27 +01:00
panr
8a8961d965 Update readme 2019-01-06 12:01:12 +01:00
panr
2f3956252a Update screens 2019-01-06 11:59:15 +01:00
panr
6768efe286 Rebuild theme 2019-01-06 11:45:48 +01:00
panr
4a173c6320 Update and customize prism 2019-01-06 11:44:38 +01:00
panr
2ff92d6fdf Update theme for 2019 2019-01-06 11:23:25 +01:00
panr
563972fe5f Fix theme config 2019-01-06 10:25:03 +01:00
panr
4e00c93b25 Add bash/shell, toml and actionscript to highlighter 2018-12-29 17:05:55 +01:00
Radek Kozieł
0be2ed1438
Update README.md 2018-12-22 09:49:54 +01:00
panr
9532cb8285 Set default theme in config toml 2018-12-21 19:07:58 +01:00
Radek Kozieł
1974d30be0
Update README.md 2018-12-13 16:18:29 +01:00
panr
aa1abb8fcd Add figure shortcode 2018-12-13 08:37:46 +01:00
panr
4845a3db96 Update font 2018-12-12 19:56:24 +01:00
panr
0a4730452c Add image shortcode 2018-12-12 19:55:37 +01:00
panr
7a9b33a9b1 Update Inter UI font to version 3.0 2018-11-16 12:39:16 +01:00
Radek Kozieł
e0238c2510
Merge pull request #10 from manuhortet/patch-1
Fix bug in apple touch icon path
2018-11-12 16:35:46 +01:00
Manu Hortet
afea4aa256
Fix bug in apple touch icon path
Same correction was already done for the favicon.png path
2018-10-02 12:09:38 +02:00
Radek Kozieł
ac82c83a64
Merge pull request #9 from juicemia/fix-favicon-path
Fix bug in favicon path
2018-09-18 00:44:37 +02:00
Hugo Torres
781a8f21d6 Fix bug in favicon path 2018-09-09 19:56:43 -04:00
panr
1f96e0f3d9 Add Haskel and other languages & fix menu item margin 2018-09-07 23:05:49 +02:00
panr
6a65821ab8 Merge 2018-09-04 09:18:53 +02:00
panr
12684791f8 Fix code copy button styling 2018-09-04 09:16:52 +02:00
Radek Kozieł
839f1ded1c
Merge pull request #8 from marioblokland/fix_code_uppercase
Prevent uppercase transformation of code
2018-09-04 09:05:00 +02:00
Mario Blokland
37e6fba1bd Prevent code with Ubuntu or Ubuntu Mono font from being uppercased
* Ubuntu or Ubuntu Mono fonts were being uppercased when in combination
  with a font-feature-setting called 'case'.

* Set the font feature settings to for <code> tags to 'normal' so
  that the Ubuntu Mono font is not being uppercased

* Put back in the 'case' font-feature setting for the body
2018-09-04 08:51:27 +02:00
Mario Blokland
c974919076 Prevent uppercase transformation of code 2018-09-03 21:14:57 +02:00
panr
f9f276852e Fix logoText variable & prevent code text transform 2018-09-03 09:10:12 +02:00
Radek Kozieł
3864783204
Update README.md 2018-09-02 11:49:36 +02:00
panr
327234163d Fix code highlighting & allow to edit hello-friend logo text fron config file 2018-08-30 23:28:52 +02:00
panr
046a3940f1 Add compiled files 2018-08-24 09:42:15 +02:00
133 changed files with 2518 additions and 17141 deletions

View File

@ -44,12 +44,6 @@ rules:
no-unused-vars:
- 2
- argsIgnorePattern: "^_"
# jsx a11y
jsx-a11y/no-static-element-interactions: 0
jsx-a11y/anchor-is-valid:
- 2
- specialLink:
- to
globals:
document: true

3
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules
node_modules
public

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-push Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn build && git add . && git commit --amend --no-edit

View File

@ -1,5 +1,11 @@
{
"parser": "babylon",
"parser": "babel",
"printWidth": 100,
"trailingComma": "all"
"trailingComma": "all",
"overrides": [{
"files": ["*.html"],
"options": {
"parser": "go-template"
}
}]
}

17
COMMUNITY-FEATURES.md Normal file
View File

@ -0,0 +1,17 @@
# Community features
<!--
Did a cool thing with the theme and want to share it with rest of the Hello Friend theme users? Jump in!
Please follow the template:
- **NAME_OF_THE_FEATURE** (LINK TO YOUR FORK)
- SHORT DESCRIPTION
- SOMETHING ABOUT YOU (name and who you are / what you do / etc.)
eg:
- **Social media icons** (https://github.com/...)
- This was a big missing feature of the theme. It will help your audience reach you over the internet.
- John, a javascript developer.
-->

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2018 panr
Copyright (c) 2019 panr
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

311
README.md
View File

@ -2,98 +2,301 @@
![Hello Friend](https://github.com/panr/hugo-theme-hello-friend/blob/master/images/screenshot.png?raw=true)
This theme was made to help you present your ideas easier. We all know how hard is to start something on the web, especially these days. You need to prepare a bunch of stuff, configure them and when thats done — create the content.
### DEMO - https://hugo-hello-friend.now.sh/ <a id="demo" />
This theme is pretty basic and covers all of the essentials. All you have to do is start typing!
---
- [Hello Friend](#hello-friend)
- [DEMO - https://hugo-hello-friend.now.sh/](#demo)
- [Features](#features)
- [Built-in shortcodes](#built-in-shortcodes)
- [Code highlighting](#code-highlighting)
- [Improved RSS Feed](#improved-rss-feed)
- [How to start](#how-to-start)
- [How to run your site](#how-to-run-your-site)
- [How to configure](#how-to-configure)
- [How to add a cover image to your posts](#how-to-add-a-cover-image-to-your-posts)
- [How to display the Last Modified Date in your posts](#how-to-display-the-last-modified-date-in-your-posts)
- [How to hide "Read more" button](#how-to-hide-read-more-button)
- [Add-ons](#add-ons)
- [How to edit the theme](#how-to-edit)
- [Found a bug?](#bug)
- [New cool idea or feature](#feature)
- [`Hello Friend` theme user?](#hello-friend-theme-user)
- [License](#license)
## Features
- **light/dark mode**, depending on your preferences
- great reading experience thanks to [**Inter UI font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)
- **dark/light mode**, depending on your preferences (the theme of your operating system is default, but you can change it)
- great reading experience thanks to [**Inter font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)
- nice code highlighting thanks to [**PrismJS**](https://prismjs.com)
- an easy way to modify the theme (**Webpack, NodeJS, PostCSS** — initial setup created by [Marcin Dziewulski](http://www.mobily.pl))
- fully responsive
#### Built-in shortcodes
- **`image`** (prop required: **`src`**; props optional: **`alt`**, **`position`** (**left** is default | center | right), **`style`**)
- eg: `{{< image src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" >}}`
- **`figure`** (same as `image`, plus few optional props: **`caption`**, **`captionPosition`** (left | **center** is default | right), **`captionStyle`**
- eg: `{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}}`
- **`imgproc`** Hugo shortcode for image processing, plus additional **`position`** param [ left | center | right ] (optional).
- eg: `{{< imgproc "img/hello.png" Resize "250x" center />}}`
- More detailed info on processing commands at [https://gohugo.io/content-management/image-processing/](https://gohugo.io/content-management/image-processing/)
- **`code`** (prop required: **`language`**; props optional: **`title`**, **`id`**, **`expand`** (default "△"), **`collapse`** (default "▽"), **`isCollapsed`**)
- eg:
```go
{{< code language="css" title="Really cool snippet" id="1" expand="Show" collapse="Hide" isCollapsed="true" >}}
pre {
background: #1a1a1d;
padding: 20px;
border-radius: 8px;
font-size: 1rem;
overflow: auto;
@media ($phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
background: none !important;
color: #ccc;
padding: 0;
font-size: inherit;
}
}
{{< /code >}}
```
#### Code highlighting
By default the theme is using PrismJS to color your code syntax. All you need to do is to wrap you code like this:
<pre>
```html
// your code here
```
</pre>
**Supported languages**: bash/shell, css, clike, javascript, apacheconf, actionscript, applescript, c, csharp, cpp, coffeescript, ruby, csp, css-extras, diff, django, docker, elixir, elm, markup-templating, erlang, fsharp, flow, git, go, graphql, less, handlebars, haskell, http, java, json, kotlin, latex, markdown, makefile, objectivec, ocaml, perl, php, php-extras, r, sql, processing, scss, python, jsx, typescript, toml, reason, textile, rust, sass, stylus, scheme, pug, swift, yaml, haml, twig, tsx, vim, visual-basic, wasm.
#### Improved RSS Feed
Some enhancements have been made to Hugo's [internal RSS](https://github.com/gohugoio/hugo/blob/25a6b33693992e8c6d9c35bc1e781ce3e2bca4be/tpl/tplimpl/embedded/templates/_default/rss.xml) generation code.
**A page's cover image now appears at the top of its feed display**. This image is set manually using [the cover params](#how-to-add-a-cover-image-to-your-posts). If unset, the RSS generator searches for the first image file in the page bundle whose name includes 'featured', 'cover', or 'thumbnail'.
**You can optionally display the full page content in your RSS feed** (default is Description or Summary data from Front Matter). Set `rssFullText = true` in your `config.toml` file to enable this option.
**You can choose a site image to be displayed when searching for your RSS feed.** Set `rssImage = "image/url/here"` in your `config.toml` file to enable this option.
## How to start
You can download the theme manually by going to [https://github.com/panr/hugo-theme-hello-friend.git](https://github.com/panr/hugo-theme-hello-friend.git) and pasting it to `themes/hello-friend` in your root directory.
You can also clone it directly to your Hugo folder:
You can also choose **one of the 3 possibilities** to install the theme:
```
$ git clone https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend
1. as Hugo Module
2. as a standalone local directory
3. as a git submodule
⚠️ **The theme needs at least Hugo **Extended** v0.90.x**.
### Install theme as Hugo Module
```bash
# If this is the first time you're using Hugo Modules
# in your project. You have to initiate your own module before
# you fetch the theme module.
#
# hugo mod init [your website/module name]
hugo mod get github.com/panr/hugo-theme-hello-friend
```
If you don't want to make any radical changes, it's the best option, because you can get new updates when they are available. To do so, include it as a git submodule:
and in your config file add:
```
$ git submodule add https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend
```toml
[module]
# this is needed when you fetch the theme as a submodule to your repo.
# replacements = "github.com/panr/hugo-theme-hello-friend -> themes/hello-friend"
[[module.imports]]
path = 'github.com/panr/hugo-theme-hello-friend'
```
## How to configure
Keep in mind that the theme by default won't show up in the `themes` directory. This means that you are using the theme as it was on the repository at the moment you fetched it. Your local `go.sum` file keeps all the references. Read more about Hugo Modules in the [official documentation](https://gohugo.io/hugo-modules/).
The theme doesn't require any advanced configuration. Just copy:
⚠️ If you encounter any issues with:
```
baseUrl = "https://example.com/"
languageCode = "en-us"
title = "Your site title"
theme = "hello-friend"
copyright = ""
paginate = 5
[params]
subtitle = "Your site subtitle"
# [params.logo]
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "/contact"
```bash
Error: module "hello-friend" not found; either add it as a Hugo Module or store it in "[...your custom path]/themes".: module does not exist
```
to `config.toml` file in your Hugo root directory and change params fields.
then please try to remove `theme = "hello-friend"` from your config file.
### Install theme locally
```bash
git clone https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend
```
This will clone the repository directly to the `themes/hello-friend` directory.
### Install theme as a submodule
```bash
git submodule add -f https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend
```
This will install the repository as a sumbodule in the `themes/hello-friend` directory.
## How to run your site
From your Hugo root directory run:
```
$ hugo server -t hello-friend
hugo server -t hello-friend
```
and go to `localhost:1313` in your browser. From now on all the changes you make will go live, so you don't need to refresh your browser every single time.
## How to edit the theme
## How to configure
If you really want to edit the theme, you need to install Node dependencies. To do this, go to the theme directory (from your Hugo root directory):
The theme doesn't require any advanced configuration. Just copy:
```
$ cd themes/hello-friend
```toml
baseurl = "/"
languageCode = "en-us"
# Add it only if you keep the theme in the `themes` directory.
# Remove it if you use the theme as a remote Hugo Module.
theme = "hello-friend"
paginate = 5
[params]
# dir name of your blog content (default is `content/posts`).
# the list of set content will show up on your index page (baseurl).
contentTypeName = "posts"
# OS theme is default when not provided, but you can force it to "light" or "dark"
defaultTheme = "dark"
# if you set this to 0, only submenu trigger will be visible
showMenuItems = 2
# Show reading time in minutes for posts
showReadingTime = false
# Show table of contents at the top of your posts (defaults to false)
# Alternatively, add this param to post front matter for specific posts
# toc = true
# Show full page content in RSS feed items
#(default is Description or Summary metadata in the front matter)
# rssFullText = true
[languages]
[languages.en]
title = "Hello Friend"
subtitle = "A simple theme for Hugo"
keywords = ""
copyright = ""
menuMore = "Show more"
writtenBy = "Written by"
readMore = "Read more"
readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
minuteReadingTime = "min read"
dateFormatSingle = "2006-01-02"
dateFormatList = "2006-01-02"
# leave empty to disable, enter display text to enable
# lastModDisplay = ""
[languages.en.params.logo]
logoText = "hello friend"
logoHomeLink = "/"
# or
#
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"
[languages.en.menu]
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[languages.en.menu.main]]
identifier = "showcase"
name = "Showcase"
url = "/showcase"
```
and then run:
to `config.toml` file in your Hugo root directory and change params fields. In case you need, here's [a YAML version](https://gist.github.com/panr/8f9b363e358aaa33f6d353c77feee959).
```
$ npm install
$ npm i yarn
$ yarn
```
**NOTE:** Please keep in mind that currently main menu doesn't support nesting.
## How to contribute
## How to add a cover image to your posts
If you spot any bugs, please use [Issue Tracker](https://github.com/panr/hugo-theme-hello-friend/issues) or if you want to add a new feature directly please create a new [Pull Request](https://github.com/panr/hugo-theme-hello-friend/pulls).
Adding a cover image to your post is simple and there are two options when you edit your `index.md` file in `content/posts/blog-entry-xy/index.md`:
## Licence
* Use `cover = "/path/to/absolute/img.jpg"` to link an absolute image
* Resulting in `https://www.yourpage.com/path/to/absolute/img.jpg`
* Use `cover = "img.jpg"` and `useRelativeCover = true` to link the image relative to the blog post folder
* Resulting in `https://www.yourpage.com/posts/blog-entry-xy/img.jpg`
* Use `coverAlt = "description of image"` to add custom alt text to the cover image (defaults to post or page title as alt text)
* Use `coverCaption = "Image Credit to [Barry Bluejeans](https://unsplash.com/)"` to add a caption for the cover image.
Copyright © 2018 Radosław Kozieł ([@panr](https://twitter.com/panr))
## How to display the Last Modified Date in your posts
The theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-hello-friend.git/blob/master/LICENSE.md) for additional licensing information.
Add `lastModDisplay = "[your display text]"` to `config.toml` to enable last modified date on your posts. Note - an empty string value `""` does not display anything.
Example: `lastModDisplay = "Modified:"` --> "Modified: Jan 01, 0001"
:octocat: Hugo's `enableGitInfo` option is a nice complement to this feature.
## How to hide "Read more" button
In a post's front matter you have to add `hideReadMore` param set to `true`. This will result in that the post won't have "Read more" button in the list view.
## Add-ons
- **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just copy https://github.com/panr/hugo-theme-hello-friend/blob/master/exampleSite/content/archive.md to your `content` dir. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file).
- **Comments** — for adding comments to your blog posts please take a look at `layouts/partials/comments.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/comments.html.
- **Prepended `<head>`** — if you need to add something inside `<head>` element, and before any of the theme's `<script>` and `<link>` tags are declared, please take a look at `layouts/partial/prepended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/prepended_head.html
- **Extended `<head>`** — if you need to add something inside `<head>` element, after all of all of the theme's `<script>` and `<link>` tags are declared, please take a look at `layouts/partial/extended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_head.html
- **Extended `<footer>`** — if you need to add something before end of `<body>` element, please take a look at `layouts/partial/extended_footer.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_footer.html
## How to edit the theme <a id="how-to-edit" />
If you are using as a remote Hugo Module (you don't have the theme files in the `theme/hello-friend`) and you have to override only some of the styles, you can do this easily by adding `static/style.css` in your root directory and point things you want to change.
If you have the theme files in the theme directory, then you can directly edit anything in the theme, you just have to go to `themes/hello-friend` and modify the files. No compilation step needed.
## Found a bug? <a id="bug" />
If you spot any bugs, please use [Issue Tracker](https://github.com/panr/hugo-theme-hello-friend/issues) or create a new [Pull Request](https://github.com/panr/hugo-theme-hello-friend/pulls) to fix the issue.
## New cool idea or feature? <a id="feature" />
The theme is in constant development since 2019 and has got many cool features that helped many of you and made the theme better. But there were also many features that I wasn't sure about because I want to keep the theme as simple as possible.
So, let's say you have an idea of how to extend the theme. That's cool and you're welcome to do that, just follow these steps:
- fork the theme
- implement the feature
- write an instruction how to use the feature
- give a working example of the implementation for other users
- add info about your work to `COMMUNITY-FEATURES.md`
- make a PR with edited `COMMUNITY-FEATURES.md`
This will help keeping the theme close to its roots, and also allow anyone who wishes to improve it and match their needs, to do whatever they want.
Sounds OK? Cool, let's rock! 🤘
## `Hello Friend` theme user?
I'd be happy to know more about you and what you are doing. If you want to share it, please make a contribution and [add your site to the list](https://github.com/panr/hugo-theme-hello-friend/blob/master/USERS.md)! 🤗
## License
Copyright © 2019-2022 Radosław Kozieł ([@panr](https://twitter.com/panr))
The theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-hello-friend/blob/master/LICENSE.md) for additional licensing information.

33
USERS.md Normal file
View File

@ -0,0 +1,33 @@
# Meet the users of Hello Friend theme!
<!--
TEMPLATE:
- https://radoslawkoziel.pl — **Radek Kozieł** (Software designer and developer)
-->
- https://arubacao.com - **Christopher Lass** (Software Engineer and DevOps)
- https://blog.agate.pw/ - **Marco Agate** (System Engineer, DevOps)
- https://blog.lepape.me/ - **François Le Pape** (Student & developer freelance)
- https://etra0.github.io/ - **Sebastián Aedo** (Computer Science student, interested in Game Hacking)
- https://fazi1058.github.io - **Faezeh Roeinfard** (Student)
- https://felixleger.com/ - **Félix Léger** (Sofware Developer and DevOps)
- https://guilhermesteves.dev/ - **Guilherme Esteves** (Software Engineer, Writer, Speaker)
- https://hesec.de - **Patrick Hener** (Security Researcher, Pentester and Coder)
- https://imsalone.com/ - **Iancu makes stuff alone** (Indie Game Dev)
- https://jonathan.rico.live/ - **Jonathan Rico** (Electronics Engineer)
- https://kartiniteknologi.id/ - **Kartini Teknologi team** (Tech podcast)
- https://tug.ro/ - **Ashish Ranjan** (Software Engineer)
- https://protocod.gitlab.io/blog/ - **protocod** (Web Developer)
- https://shinytoyrobots.com - **shinytoyrobots** (Eclectic journaling and essays)
- https://simeononsecurity.ch/ - **SimeonOnSecurity** (Security and Automation Blog)
- https://www.miroslavbucek.cz - **Miroslav Buček** (Product Manager, Smart Home company owner)
- https://fmg3d.com/ - **Finn M Glas** (Aspiring Physicist, Software Developer)
- https://nali.org/ - **Nick Ali** (Marketer)
- https://abhinav031.netlify.app/ - **Abhinav Sriram** (Digital Artist, Hobbyist)
- https://codigonovato.netlify.app - **Javier Rangel** (Dev and notes)
- https://easyitblog.info/ - **Ivan Vaskevych** (Staff engineer)
- https://0days.io - **Frederik Bøgeskov Krogsgaard** (Cyber & Information Security)
- https://codejuggle.dj/ - **cornelk** (Software Engineer and DevOps)
- https://walmyrcarvalho.com.br/ - **Walmyr Carvalho** (Senior Android Engineer and Google Developer Expert)

72
assets/css/archive.scss Normal file
View File

@ -0,0 +1,72 @@
.archive {
width: 100%;
max-width: 800px;
text-align: left;
padding: 20px;
margin: 0 auto;
&__group {
&-month {
display: flex;
align-items: flex-start;
padding: 10px 0;
@media ($phone) {
flex-direction: column;
}
&:not(:last-of-type) {
border-bottom: 1px solid var(--border-color);
}
}
&-year {
margin-top: 40px;
@media ($phone) {
margin-top: 20px;
}
&:not(:last-of-type) {
border-bottom: 1px solid var(--border-color);
}
&-header {
margin: 10px 0;
}
}
&-month {
&-header {
margin: 25px 0;
width: 200px;
opacity: .5;
@media ($phone) {
margin: 10px 0 0;
}
}
}
&-posts {
width: 100%;
}
}
&__post {
padding: 20px 0;
&:not(:last-of-type) {
border-bottom: 1px solid var(--border-color);
}
&-title {
margin: 5px 0;
a {
display: block;
text-decoration: none;
}
}
}
}

View File

@ -13,7 +13,7 @@ a.button {
justify-content: center;
padding: 8px 18px;
margin-bottom: 5px;
background: var(--light-background-secondary);
background: var(--background-secondary);
text-decoration: none;
text-align: center;
font-weight: 500;
@ -23,24 +23,14 @@ a.button {
cursor: pointer;
outline: none;
.dark-theme & {
background: var(--dark-background-secondary);
color: inherit;
}
/* variants */
&.outline {
background: transparent;
border-color: var(--light-background-secondary);
border-color: var(--background-secondary);
box-shadow: none;
padding: 8px 18px;
.dark-theme & {
border-color: var(--dark-background-secondary);
color: inherit;
}
:hover {
transform: none;
box-shadow: none;
@ -82,8 +72,27 @@ a.read-more:active {
padding: 0;
margin: 20px 0;
font-weight: bold;
}
.dark-theme & {
background: none;
.code-toolbar {
margin-bottom: 20px;
.toolbar-item a {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 3px 8px;
margin-bottom: 5px;
background: var(--background-secondary);
text-decoration: none;
text-align: center;
font-size: 13px;
font-weight: 500;
border-radius: 8px;
border: 1px solid transparent;
appearance: none;
cursor: pointer;
outline: none;
}
}

96
assets/css/code.scss Normal file
View File

@ -0,0 +1,96 @@
.collapsable-code {
position: relative;
width: 100%;
margin: 40px 0;
input[type="checkbox"] {
position: absolute;
visibility: hidden;
}
input[type="checkbox"]:checked {
~ pre,
~ .code-toolbar pre {
height: 0;
padding: 0;
border-top: none;
}
~ .code-toolbar {
padding: 0;
border-top: none;
.toolbar {
display: none;
}
}
~ label {
border-radius: 10px;
}
~ label .collapsable-code__toggle:after {
content: attr(data-label-expand);
}
}
label {
position: relative;
display: flex;
justify-content: space-between;
background: var(--background-secondary);
padding: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
min-width: 30px;
min-height: 30px;
margin: 0;
cursor: pointer;
}
&__title {
flex: 1;
color: var(--color);
padding: 3px 10px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&__language {
background: var(--background);
color: var(--color);
border-radius: 10px;
padding: 3px 10px;
}
&__toggle {
color: var(--color);
font-size: 16px;
padding: 3px 10px;
&:after {
content: attr(data-label-collapse);
}
}
pre {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
&::first-line {
line-height: 0;
}
}
code {
&::first-line {
line-height: 0;
}
}
.code-toolbar {
margin: 0;
}
}

50
assets/css/fonts.scss Normal file
View File

@ -0,0 +1,50 @@
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Regular.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Italic.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Medium.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 600;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-MediumItalic.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 800;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-Bold.woff2") format("woff2");
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 800;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
src: url("../fonts/Inter-BoldItalic.woff2") format("woff2");
font-display: swap;
}

View File

@ -1,7 +1,7 @@
.footer {
padding: 40px 20px;
flex-grow: 0;
color: var(--light-color-secondary);
color: var(--color-secondary);
&__inner {
display: flex;
@ -11,7 +11,7 @@
width: 760px;
max-width: 100%;
@media (--tablet) {
@media ($tablet) {
flex-direction: column;
}
}
@ -25,7 +25,6 @@
flex-direction: row;
align-items: center;
font-size: 1rem;
color: var(--light-color-secondary);
&--user {
margin: auto;
@ -37,17 +36,16 @@
padding-right: 10px;
margin-right: 10px;
@media (--tablet) {
@media ($tablet) {
border: none;
padding: 0;
margin: 0;
}
}
@media (--tablet) {
@media ($tablet) {
flex-direction: column;
margin-top: 10px;
}
}
}

View File

@ -1,39 +1,17 @@
.header {
background: #fafafa;
background: var(--header);
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 20px;
.dark-theme & {
background: #252627;
}
.bulb {
&-on {
display: none;
.dark-theme & {
display: block;
}
}
&-off {
display: block;
.dark-theme & {
display: none;
}
}
}
&__right {
display: flex;
flex-direction: row;
align-items: center;
@media (--phone) {
@media ($phone) {
flex-direction: row-reverse;
}
}
@ -47,3 +25,15 @@
max-width: 100%;
}
}
.theme-toggle {
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
cursor: pointer;
}
.theme-toggler {
fill: currentColor;
}

View File

@ -1,23 +1,33 @@
.logo {
display: flex;
align-items: center;
flex: 0 0 auto;
text-decoration: none;
font-weight: bold;
img {
height: 44px;
}
&__mark {
display: inline-flex;
align-items: center;
margin-right: 5px;
@include greater-icon(8px);
}
&__text {
font-size: 1.125rem;
}
&__cursor {
display: inline-block;
width: 2px;
width: 10px;
height: 1rem;
background: #fe5186;
margin-left: 5px;
border-radius: 2px;
border-radius: 1px;
animation: cursor 1s infinite;
}
}
@ -26,4 +36,4 @@
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
}

304
assets/css/main.scss Normal file
View File

@ -0,0 +1,304 @@
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 1rem;
font-weight: 500;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
line-height: 1.54;
background-color: var(--background);
color: var(--color);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
@media ($phone) {
font-size: 1rem;
}
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.3;
}
h1 {
font-size: 2.625rem;
}
h2 {
font-size: 1.625rem;
}
h3 {
font-size: 1.375rem;
}
h4 {
font-size: 1.125rem;
}
@media ($phone) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.4rem;
}
h3 {
font-size: 1.15rem;
}
h4 {
font-size: 1.125rem;
}
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
&.left {
margin-right: auto;
}
&.center {
margin-left: auto;
margin-right: auto;
}
&.right {
margin-left: auto;
}
}
figure {
display: table;
max-width: 100%;
margin: 25px 0;
&.left {
margin-right: auto;
}
&.center {
margin-left: auto;
margin-right: auto;
}
&.right {
margin-left: auto;
}
figcaption {
font-size: .9rem;
margin-top: 5px;
opacity: .8;
&.left {
text-align: left;
}
&.center {
text-align: center;
}
&.right {
text-align: right;
}
}
}
code, kbd {
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
background: var(--background-secondary);
padding: 1px 6px;
margin: 0 2px;
border-radius: 5px;
font-size: .9em;
font-weight: normal;
font-feature-settings: normal;
code, kbd {
background: transparent;
padding: 0;
margin: 0;
}
}
pre {
font-feature-settings: normal;
background: #212020;
padding: 20px;
border-radius: 8px;
font-size: .9rem;
overflow: auto;
@media ($phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
font-feature-settings: normal;
background: none !important;
color: #ccc;
margin: 0;
padding: 0;
font-size: inherit;
}
}
blockquote {
border-left: 2px solid;
margin: 40px;
padding: 10px 20px;
@media ($phone) {
margin: 10px;
padding: 10px;
}
&:before {
content: '';
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
p:first-of-type {
margin-top: 0;
}
p:last-of-type {
margin-bottom: 0;
}
}
/* Fix for gist integration */
table:not(.js-file-line-container) {
table-layout: fixed;
border-collapse: collapse;
width: 100%;
margin: 40px 0;
border-radius: 5px;
}
/* Fix for gist integration */
table, th, td:not(.js-line-number) {
border: 1px solid;
padding: 10px;
}
th {
background: var(--background-secondary);
}
ul, ol {
margin-left: 40px;
padding: 0;
@media ($phone) {
margin-left: 20px;
}
}
ol ol {
list-style-type: lower-alpha;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
}
.content {
display: flex;
flex-direction: column;
flex: 1 auto;
align-items: center;
justify-content: center;
margin: 50px 0;
@media ($phone) {
margin-top: 0;
}
}
hr {
width: 100%;
border: none;
background: var(--border-color);
height: 1px;
}
.hidden {
display: none;
}
.framed {
padding: 50px;
margin: 0 -50px 40px;
border-radius: 10px;
border: 1px solid var(--border-color);
width: 100%;
max-width: 860px;
@media ($tablet) {
width: auto;
max-width: 680px;
margin: 20px 20px 40px;
padding: 30px;
}
}
blockquote.twitter-tweet {
background: hsla(206deg, 62%, 45%, 0.1);
border: none;
padding: 30px;
color: inherit;
font-size: inherit;
line-height: inherit;
border-radius: 8px;
}
.h-anchor {
margin-left: 1px;
color: var(--color-secondary);
text-decoration: none;
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 0.1s, opacity 0.1s linear;
}
h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a {
visibility: visible;
opacity: 1;
transition-delay: 0s;
}
.framed .h-anchor {
visibility: hidden;
}

136
assets/css/menu.scss Normal file
View File

@ -0,0 +1,136 @@
@mixin menu {
position: absolute;
background: var(--header);
box-shadow: var(--shadow);
margin: 0;
padding: 5px;
list-style: none;
border-radius: 5px;
z-index: 99;
}
.menu {
--color: rgba(0, 0, 0, .12);
--shadow: 0 8px 20px var(--color);
border-right: 1px solid;
margin-right: 18px;
padding-right: 24px;
font-weight: 500;
@media ($phone) {
@include menu;
border: none;
top: 50px;
right: 10px;
}
a {
text-decoration: none;
}
&__inner {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
&--desktop {
@media ($phone) {
display: none;
}
}
&--mobile {
display: none;
@media ($phone) {
display: block;
}
}
li {
text-align: left;
flex: 0 0 auto;
&:not(:first-of-type) {
margin-left: 20px;
}
}
@media ($phone) {
flex-direction: column;
align-items: flex-start;
padding: 0;
li {
margin-left: 0 !important;
padding: 10px;
}
}
}
&__sub-inner {
position: relative;
list-style: none;
padding: 0;
margin: 0;
&:not(:only-child) {
margin-left: 20px;
}
&-more {
@include menu;
top: 35px;
left: 0;
&-trigger {
display: inline-flex;
align-items: center;
user-select: none;
cursor: pointer;
&-icon {
display: inline-flex;
align-items: center;
margin-left: 3px;
transform: rotate(90deg);
line-height: 1;
@include greater-icon(5px);
}
}
li {
.menu__inner & {
margin-left: 0;
white-space: nowrap;
&:hover {
background: rgba(0, 0, 0, 0.05);
border-radius: 3px;
cursor: pointer;
}
}
}
li a {
width: 100%;
display: inline-block;
padding: 10px;
}
}
}
&-trigger {
width: 24px;
height: 24px;
fill: currentColor;
margin-left: 10px;
cursor: pointer;
}
}

View File

@ -0,0 +1,85 @@
.pagination {
margin-top: 50px;
&__title {
display: flex;
text-align: center;
position: relative;
margin: 100px 0 20px;
&-h {
text-align: center;
margin: 0 auto;
padding: 5px 10px;
background: var(--background);
color: var(--color-secondary);
font-size: .8rem;
text-transform: uppercase;
text-decoration: none;
letter-spacing: .1em;
z-index: 1;
}
hr {
position: absolute;
left: 0;
right: 0;
width: 100%;
margin-top: 15px;
z-index: 0;
}
}
&__buttons {
display: flex;
align-items: center;
justify-content: center;
a {
text-decoration: none;
font-weight: bold;
}
}
}
.button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--background-secondary);
font-size: 1rem;
font-weight: 500;
border-radius: 8px;
max-width: 40%;
padding: 0;
cursor: pointer;
appearance: none;
+ .button {
margin-left: 10px;
}
a {
display: flex;
padding: 8px 16px;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&__text {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&.next .button__icon {
margin-left: 8px;
}
&.previous .button__icon {
margin-right: 8px;
}
}

View File

@ -5,38 +5,28 @@
padding: 20px;
margin: 20px auto;
@media (--tablet) {
@media ($tablet) {
max-width: 660px;
}
&:not(:last-of-type) {
border-bottom: 1px solid var(--light-border-color);
.dark-theme & {
border-color: var(--dark-border-color);
}
border-bottom: 1px solid var(--border-color);
}
&-meta {
font-size: 1rem;
margin-bottom: 10px;
@media (--phone) {
@media ($phone) {
font-size: .85rem;
}
}
&-date {
&:after {
content: '';
}
}
&-title {
font-size: 2.625rem;
margin: 0 0 20px;
@media (--phone) {
@media ($phone) {
font-size: 2rem;
}
@ -61,12 +51,17 @@
}
&-cover {
border-radius: 8px;
margin: 40px -50px;
width: 860px;
max-width: 860px;
@media (--tablet) {
img {
margin: 0 auto;
border-radius: 8px;
box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}
@media ($tablet) {
margin: 20px 0;
width: 100%;
}

259
assets/css/prism.scss Normal file
View File

@ -0,0 +1,259 @@
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+c+csharp+bash+cpp+coffeescript+ruby+csp+css-extras+diff+django+docker+elixir+elm+markup-templating+erlang+fsharp+flow+git+go+graphql+less+handlebars+haskell+http+java+json+kotlin+latex+markdown+makefile+objectivec+ocaml+perl+php+php-extras+sql+processing+scss+python+jsx+typescript+reason+textile+rust+sass+stylus+scheme+pug+swift+yaml+haml+toml+twig+tsx+vim+visual-basic+wasm&plugins=line-numbers+toolbar+jsonp-highlight+command-line+copy-to-clipboard */
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/
code[class*="language-"],
pre[class*="language-"] {
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
/* line-height: 1.5; */
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #212020 !important;
color: inherit !important;
border-radius: 8px;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: rgba(255, 255, 255, .4);
}
.token.punctuation {
color: #a9a9b3;
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
}
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
pre[class*="language-"].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
div.code-toolbar {
position: relative;
}
div.code-toolbar > .toolbar {
position: absolute;
top: .3em;
right: .2em;
transition: opacity 0.3s ease-in-out;
opacity: 0;
}
div.code-toolbar:hover > .toolbar {
opacity: 1;
}
div.code-toolbar > .toolbar .toolbar-item {
display: inline-block;
}
div.code-toolbar > .toolbar a {
cursor: pointer;
}
div.code-toolbar > .toolbar button {
background: none;
border: 0;
color: inherit;
font: inherit;
line-height: normal;
overflow: visible;
padding: 0;
-webkit-user-select: none; /* for button */
-moz-user-select: none;
-ms-user-select: none;
}
div.code-toolbar > .toolbar a,
div.code-toolbar > .toolbar button,
div.code-toolbar > .toolbar span {
color: #bbb;
font-size: .8em;
padding: 0 .5em;
background: #f5f2f0;
background: rgba(224, 224, 224, 0.2);
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
border-radius: .5em;
}
div.code-toolbar > .toolbar a:hover,
div.code-toolbar > .toolbar a:focus,
div.code-toolbar > .toolbar button:hover,
div.code-toolbar > .toolbar button:focus,
div.code-toolbar > .toolbar span:hover,
div.code-toolbar > .toolbar span:focus {
color: inherit;
text-decoration: none;
}
.command-line-prompt {
border-right: 1px solid #999;
display: block;
float: left;
font-size: 100%;
letter-spacing: -1px;
margin-right: 1em;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.command-line-prompt > span:before {
color: #999;
content: ' ';
display: block;
padding-right: 0.8em;
}
.command-line-prompt > span[data-user]:before {
content: "[" attr(data-user) "@" attr(data-host) "] $";
}
.command-line-prompt > span[data-user="root"]:before {
content: "[" attr(data-user) "@" attr(data-host) "] #";
}
.command-line-prompt > span[data-prompt]:before {
content: attr(data-prompt);
}

View File

@ -1,13 +1,18 @@
@import 'variables';
@import 'inter-ui';
@import 'fonts';
@import 'buttons';
@import 'header';
@import 'logo';
@import 'menu';
@import 'main';
@import 'list';
@import 'post';
@import 'pagination';
@import 'footer';
@import 'terms';
@import 'archive';
@import 'prism';
@import 'code';

30
assets/css/terms.scss Normal file
View File

@ -0,0 +1,30 @@
.terms {
width: 100%;
max-width: 800px;
text-align: left;
padding: 20px;
margin: 0 auto;
&__list {
padding: 0;
padding-left: 20px;
margin: 0;
a {
text-decoration: none;
}
}
&__term {
margin-bottom: 15px;
&-count {
background: var(--background-secondary);
font-size: 12px;
margin-left: 5px;
padding: 2px 10px;
border-radius: 5px;
text-decoration: none;
}
}
}

69
assets/css/variables.scss Normal file
View File

@ -0,0 +1,69 @@
body.light-theme, :root {
/* light theme color */
--background: #fff;
--background-secondary: #eaeaea;
--header: #fafafa;
--color: #222;
--color-secondary: #999;
--border-color: #dcdcdc;
/* variables for js, must be the same as these in @custom-media queries */
--phoneWidth: (max-width: 684px);
--tabletWidth: (max-width: 900px);
}
body.dark-theme {
/* dark theme colors */
--background: #292a2d;
--background-secondary: #3b3d42;
--header: #252627;
--color: #a9a9b3;
--color-secondary: #73747b;
--border-color: #4a4b50;
}
@media (prefers-color-scheme: light) {
body:not(.dark-theme) {
/* light theme color */
--background: #fff;
--background-secondary: #eaeaea;
--header: #fafafa;
--color: #222;
--color-secondary: #999;
--border-color: #dcdcdc;
}
}
@media (prefers-color-scheme: dark) {
body:not(.light-theme) {
/* dark theme colors */
--background: #292a2d;
--background-secondary: #3b3d42;
--header: #252627;
--color: #a9a9b3;
--color-secondary: #73747b;
--border-color: #4a4b50;
}
}
/* MEDIA QUERIES */
$phone: "max-width: 684px";
$tablet: "max-width: 900px";
@mixin greater-icon($stroke-width: 3px, $width: .95rem, $height: 100%) {
.greater-icon {
width: $width;
height: $height;
path {
stroke: currentColor;
stroke-width: $stroke-width;
}
}
}
/* HOW TO USE */
/*@media ($phone) {*/
/*margin-top: 0;*/
/*}*/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

54
assets/js/menu.js Normal file
View File

@ -0,0 +1,54 @@
const container = document.querySelector(".container");
const menu = document.querySelector(".menu");
const mobileMenuTrigger = document.querySelector(".menu-trigger");
const desktopMenu = document.querySelector(".menu__inner--desktop");
const desktopMenuTrigger = document.querySelector(".menu__sub-inner-more-trigger");
const menuMore = document.querySelector(".menu__sub-inner-more");
const mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth");
const isMobile = () => window.matchMedia(mobileQuery).matches;
const isMobileMenu = () => {
mobileMenuTrigger && mobileMenuTrigger.classList.toggle("hidden", !isMobile());
menu && menu.classList.toggle("hidden", isMobile());
menuMore && menuMore.classList.toggle("hidden", !isMobile());
};
// Common
menu && menu.addEventListener("click", e => e.stopPropagation());
menuMore && menuMore.addEventListener("click", e => e.stopPropagation());
isMobileMenu();
document.body.addEventListener("click", () => {
if (!isMobile() && menuMore && !menuMore.classList.contains("hidden")) {
menuMore.classList.add("hidden");
} else if (isMobile() && !menu.classList.contains("hidden")) {
menu.classList.add("hidden");
}
});
window.addEventListener("resize", isMobileMenu);
// Mobile menu
mobileMenuTrigger &&
mobileMenuTrigger.addEventListener("click", e => {
e.stopPropagation();
menu && menu.classList.toggle("hidden");
});
// Desktop menu
desktopMenuTrigger &&
desktopMenuTrigger.addEventListener("click", e => {
e.stopPropagation();
menuMore && menuMore.classList.toggle("hidden");
if (
menuMore &&
menuMore.getBoundingClientRect().right > container.getBoundingClientRect().right
) {
menuMore.style.left = "auto";
menuMore.style.right = 0;
}
});

80
assets/js/prism.js Normal file

File diff suppressed because one or more lines are too long

31
assets/js/theme.js Normal file
View File

@ -0,0 +1,31 @@
// Toggle theme
const localTheme = window.localStorage && window.localStorage.getItem("theme");
const themeToggle = document.querySelector(".theme-toggle");
if (localTheme) {
document.body.classList.remove("light-theme", "dark-theme");
document.body.classList.add(localTheme);
}
themeToggle.addEventListener("click", () => {
const themeUndefined = !new RegExp("(dark|light)-theme").test(document.body.className);
const isOSDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
if (themeUndefined) {
if (isOSDark) {
document.body.classList.add("light-theme");
} else {
document.body.classList.add("dark-theme");
}
} else {
document.body.classList.toggle("light-theme");
document.body.classList.toggle("dark-theme");
}
window.localStorage &&
window.localStorage.setItem(
"theme",
document.body.classList.contains("dark-theme") ? "dark-theme" : "light-theme",
);
});

18
babel.config.js Normal file
View File

@ -0,0 +1,18 @@
module.exports = function(api) {
api.cache(true);
const presets = [
[
"@babel/preset-env",
{
targets: "last 2 versions, >1%, not dead",
},
],
];
const plugins = [];
return {
presets,
plugins,
};
};

0
config.toml Normal file
View File

View File

@ -1,19 +1,48 @@
baseurl = "https://example.org/"
baseurl = "/"
languageCode = "en-us"
title = "Hello Friend"
theme = "hugo-theme-hello-friend"
copyright = ""
paginate = 5
[params]
subtitle = "A simple theme for Hugo"
# dir name of your blog content (default is `content/posts`)
contentTypeName = "post"
# "light" or "dark"
defaultTheme = "dark"
# if you set this to 0, only submenu trigger will be visible
showMenuItems = 2
# Enable to show reading time in minutes for posts
showReadingTime = false
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[menu.main]]
identifier = "showcase"
name = "Showcase"
url = "/showcase"
[languages]
[languages.en]
title = "Hello Friend"
subtitle = "A simple theme for Hugo"
keywords = ""
copyright = ""
menuMore = "Show more"
writtenBy = "Written by"
readMore = "Read more"
readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
minuteReadingTime = "min read"
dateFormatSingle = "2006-01-02"
dateFormatList = "2006-01-02"
[languages.en.params.logo]
logoText = "hello friend"
logoHomeLink = "/"
# or
#
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"
[languages.en.menu]
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[languages.en.menu.main]]
identifier = "showcase"
name = "Showcase"
url = "/showcase"

View File

@ -1,22 +1,21 @@
+++
title = "About"
date = "2018-07-18"
date = "2019-01-25"
author = "Radek"
+++
<h2>> Hi there<span class="logo__cursor" style="width: 3px; height: 1.625rem;"></span></h2>
# Hi there
My name is Radek and I'm the author of this theme. I made it to help you present your ideas easier.
We all know how hard is to start something on the web, especially these days. You need to prepare a bunch of stuff, configure them and when thats done — create the content.
This theme is pretty basic and covers all of the essentials. All you have to do is start typing!
The theme includes:
- **light/dark mode**, depending on your preferences
- great reading experience thanks to [**Inter UI font**](https://rsms.me/inter/), made by [Rasmus Andersson](https://rsms.me/about/)
- nice code highlighting thanks to [**PrismJS**](https://prismjs.com)
- an easy way to modify the theme (**Webpack, NodeJS, PostCSS** — initial setup created by [Marcin Dziewulski](http://www.mobily.pl))
So, there you have it... enjoy!
So, there you have it... enjoy!

View File

@ -0,0 +1,6 @@
+++
title = "Archive"
layout = "list"
url = "/archive"
type = "archive"
+++

View File

@ -2,17 +2,17 @@
title = "Hello Friend"
date = "1986-09-17"
author = "Elliot"
cover = "hello.jpg"
cover = "img/hello.jpg"
description = "\"Hello, friend?\" That's lame. Maybe I should give you a name?"
+++
> "Hello, friend?" That's lame.
> Maybe I should give you a name...
> But that's a slippery slope.
> You're only in my head.
> We have to remember that...
> Shit.
> It's actually happened.
> Maybe I should give you a name...
> But that's a slippery slope.
> You're only in my head.
> We have to remember that...
> Shit.
> It's actually happened.
> I'm talking to an imaginary person.
>
> **— Mr. Robot S01E01**

View File

@ -1,94 +1,84 @@
+++
title = "Showcase"
date = "2018-07-18"
author = "Hello Robot"
+++
---
title: "Showcase"
date: "2019-01-18"
author: "Lorem Ipsum"
---
## Header 2
Backup two-step verification breach, anonymous terminal traffic worm virus reboot fsociety dat file. Traffic fsociety malware 100 terabytes system hack, delete brute-force cyber security fiber connection connect code worm wipe. Cyber security off the grid delete IP decrypt, **nodes connect password 100 terabytes RUDY attack malicious code** rootkit gigabit speed. Tor connect network, intercepting traffic off the grid IP protocol password.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec interdum metus. Aenean rutrum ligula sodales ex auctor, sed tempus dui mollis. Curabitur ipsum dui, aliquet nec commodo at, tristique eget ante. **Donec quis dolor nec nunc mollis interdum vel in purus**. Sed vitae leo scelerisque, sollicitudin elit sed, congue ante. In augue nisl, vestibulum commodo est a, tristique porttitor est. Proin laoreet iaculis ornare. Nullam ut neque quam.
> Backup DDoS attack rootkit nodes disconnect website. Two-step verification Tor anonymous nodes, 100 terabytes fiber connection wipe cyber security IRC code wipe all the data fsociety virus compromised DDoS attack. Sys admin data center gigabit speed breach, worm DDoS attack AFK nodes.
> Fusce pharetra suscipit orci nec tempor. Quisque vitae sem sit amet sem mollis consequat. Sed at imperdiet lorem. Vestibulum pharetra faucibus odio, ac feugiat tellus sollicitudin at. Pellentesque varius tristique mi imperdiet dapibus. Duis orci odio, sodales lacinia venenatis sit amet, feugiat et diam.
### Header 3
Brute-force intercepting traffic fiber connection system boot up fsociety reboot AFK sys admin. Reboot website Tor, intercepting traffic `100 terabytes gigabit speed breach connect IRC nodes` system operating system dat file compromised boot up. Data center decrypt password network disconnect. Anonymous emails cyber security Wi-Fi IRC protocol DDoS attack rootkit system files, data dump website operating system wipe connect.
Nulla libero turpis, lacinia vitae cursus ut, auctor dictum nisl. Fusce varius felis nec sem ullamcorper, at convallis nisi vestibulum. Duis risus odio, porta sit amet placerat mollis, tincidunt non mauris. Suspendisse fringilla, `odio a dignissim pharetra`, est urna sollicitudin urna, eu scelerisque magna ex vitae tellus.
<pre>
<code class="language-css">
/* PostCSS code by PrismJS */
```css
/* PostCSS code */
pre {
background: #1a1a1d;
padding: 20px;
border-radius: 8px;
font-size: 1rem;
overflow: auto;
pre {
background: #1a1a1d;
padding: 20px;
border-radius: 8px;
font-size: 1rem;
overflow: auto;
@media (--phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
background: none !important;
color: #ccc;
padding: 0;
font-size: inherit;
.dark-theme & {
color: inherit;
}
}
}
</code>
</pre>
<pre>
<code class="language-js">
// JS code by PrismJS
const menuTrigger = document.querySelector('.menu-trigger')
const menu = document.querySelector('.menu')
const mobileQuery = getComputedStyle(document.body).getPropertyValue('--phoneWidth')
const isMobile = () => window.matchMedia(mobileQuery).matches
const isMobileMenu = () => {
menuTrigger.classList.toggle('hidden', !isMobile())
menu.classList.toggle('hidden', isMobile())
@media ($phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
isMobileMenu()
code {
background: none !important;
color: #ccc;
padding: 0;
font-size: inherit;
}
}
```
menuTrigger.addEventListener('click', () => menu.classList.toggle('hidden'))
```js
// JS code
window.addEventListener('resize', isMobileMenu)
</code>
</pre>
const menuTrigger = document.querySelector('.menu-trigger')
const menu = document.querySelector('.menu')
const mobileQuery = getComputedStyle(document.body).getPropertyValue('--phoneWidth')
const isMobile = () => window.matchMedia(mobileQuery).matches
const isMobileMenu = () => {
menuTrigger.classList.toggle('hidden', !isMobile())
menu.classList.toggle('hidden', isMobile())
}
{{< highlight html >}}
<!-- HTML code by Chroma (built-in highlighter in Hugo ) -->
isMobileMenu()
menuTrigger.addEventListener('click', () => menu.classList.toggle('hidden'))
window.addEventListener('resize', isMobileMenu)
```
```html
<!-- HTML code -->
<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>
{{ range .Pages }}
{{ .Render "summary"}}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
{{< /highlight >}}
```
#### Header 4
Traffic RUDY attack nodes anonymous IP network code two-step verification system files data center bonsoir terminal. Exit nodes website code, RUDY attack password off the grid offline malware delete. Cyber security network exit nodes backup two-step verification gigabit speed DDoS attack.
Curabitur scelerisque felis viverra varius scelerisque. Ut enim libero, molestie gravida blandit at, mollis ornare tellus. Cras arcu mi, ultrices vel pulvinar vel, volutpat eu tortor. Nullam nec eros quis massa ultrices iaculis sed in metus. Praesent sollicitudin sem sit amet orci tempor gravida.
- Fsociety delete malicious code nodes.
- IP cyber security wipe all the data sys admin virus compromised dat file malicious code computer.
- Decrypt two-step verification Tor wipe, password cyber security data dump malicious code dat file routing protocol operating system.
- Anonymous boot up website AFK.
- Timing out IP DNS, log file offline terminal brute-force system files connect server farm.
- Reboot sys admin worm log file wipe.
- Maecenas elementum vitae nibh vitae porttitor.
- Aenean consequat, risus ut cursus placerat, arcu nulla sodales risus, ut molestie tellus tellus et dui.
- Integer imperdiet turpis vitae lacus imperdiet, ut ornare ligula auctor. Integer in mi eu velit vehicula suscipit eget vulputate nulla.
- Etiam vitae enim quis velit lobortis placerat a ut sem.
- Curabitur lobortis ante sit amet orci pulvinar, sollicitudin viverra nunc accumsan.
- Praesent fermentum orci quis leo facilisis posuere.
{{< youtube id="xIBiJ_SzJTA" >}}
Tor boot up backup anonymous bonsoir IRC website. Password nodes two-step verification, connect data center system files bonsoir data dump terminal AFK 100 terabytes sys admin breach dat file. Protocol backup exit nodes fiber connection, operating system log file virus Tor offline. Password data center two-step verification disconnect IRC terminal. Tor IRC cyber security AFK protocol traffic disconnect. Code exit nodes IRC cyber security nodes worm.
Aliquam erat volutpat. In hac habitasse platea dictumst. Nunc ut tincidunt mauris. Sed at gravida risus, id semper magna. Nullam vitae enim mattis, sodales neque non, pharetra elit. Cras sit amet sagittis augue, et finibus turpis. Ut tempus tincidunt diam vel pharetra. Nulla porttitor odio sit amet nulla scelerisque, quis aliquam mi imperdiet. Sed tincidunt dui vel tellus vestibulum rhoncus. Donec tempus ultrices velit.

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/panr/hugo-theme-hello-friend
go 1.19

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 KiB

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 KiB

After

Width:  |  Height:  |  Size: 224 KiB

29
layouts/404.html Normal file
View File

@ -0,0 +1,29 @@
{{ define "main" }}
<div class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
<div class="post-content">
<p>
{{ "Hmm... Sorry, this page seems to be missing." | markdownify }}
</p>
{{ if .Site.Taxonomies.tags }}
<p>
{{ "Maybe these tags will help you find what you're looking for." | markdownify }}
</p>
<h2>Tags</h2>
<div class="terms">
<ul class="terms__list">
{{ range .Site.Taxonomies.tags }}
<li class="terms__term">
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a
><span class="terms__term-count">{{ .Count }}</span>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</div>
{{ end }}

View File

@ -0,0 +1,4 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
<a href="#{{ .Anchor | safeURL }}" class="h-anchor" aria-hidden="true">#</a>
</h{{ .Level }}>

View File

@ -1,24 +1,30 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
{{ block "title" . }}
<title>{{ if .IsHome }}{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ end }}</title>
{{ end }}
{{ partial "head.html" . }}
</head>
<body class="dark-theme">
<div class="container">
{{ partial "header.html" . }}
<div class="content">
{{ block "main" . }}
<html lang="{{ $.Site.Language }}">
<head>
{{ block "title" . }}
<title>
{{ if .IsHome }}{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} —
{{ . }}{{ end }}{{ else }}{{ .Title }} ::
{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ end }}
</title>
{{ end }}
</div>
{{ partial "head.html" . }}
</head>
<body {{ with $.Site.Params.defaultTheme -}} class="{{ printf "%s-theme" . }}" {{- end }}>
<div class="container">
{{ partial "header.html" . }}
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
</div>
<div class="content">
{{ block "main" . }} {{ end }}
</div>
</body>
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
</div>
{{ if $.Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
</body>
</html>

View File

@ -0,0 +1,69 @@
{{ define "main" }}
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
{{ $PageContext := . }}
{{ if .IsHome }}
{{ $PageContext = .Site }}
{{ end }}
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ if .Content }}
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}">
{{ .Content }}
</div>
{{ end }}
<div class="posts">
{{ range $paginator.Pages }}
<article class="post on-list">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
{{ if .Date }}
<time class="post-date">
{{ .Date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
</time>
{{ if $.Site.Params.LastModDisplay }}
{{ partial "lastmod.html" . }}
{{ end }}
{{ end }}
{{ with .Params.Author }}
<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>
{{ end }}
{{ if $.Site.Params.ShowReadingTime }}
<span class="post-read-time">— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
<a href="{{ (urlize (printf "tags/%s" . )) | absLangURL }}/">#{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ if .Params.Cover }}
{{ partial "postcover.html" . }}
{{ end }}
<div class="post-content">
{{ with .Description }}
{{ . | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary }}
{{ end }}
{{ end }}
</div>
{{ if not .Params.hideReadMore }}
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore | default "Read more" }} →</a></div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}

View File

@ -1,39 +1,60 @@
{{ define "main" }}
<div class="posts">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
<div class="post on-list">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
<span class="post-author">Written by {{ .Params.Author }}</span>
</div>
{{ range .Pages }}
<article class="post on-list">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
{{ if .Date }}
<time class="post-date">
{{ .Date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
</time>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
{{ if $.Site.Params.LastModDisplay }}
{{ partial "lastmod.html" . }}
{{ end }}
{{ end }}
</span>
{{ end }}
{{ with .Params.Author }}
<span class="post-author"
>— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span
>{{ end }}
{{ with .Params.Cover }}
<img src="/img/{{ . }}" class="post-cover" />
{{ end }}
<div class="post-content">
{{ with .Description }}
{{ . | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary | markdownify }}
{{ if $.Site.Params.ShowReadingTime }}
<span class="post-read-time"
>— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span
>
{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
<a href="{{ (urlize (printf "tags/%s" . )) | absLangURL }}/">#{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
</div>
<div><a class="read-more button" href="{{.RelPermalink}}">Read more →</a></div>
</div>
{{ if .Params.Cover }}
{{ partial "postcover.html" . }}
{{ end }}
<div class="post-content">
{{ with .Description }}
{{ . | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary }}
{{ end }}
{{ end }}
</div>
{{ if not .Params.hideReadMore }}
<div>
<a class="read-more button" href="{{ .RelPermalink }}"
>{{ $.Site.Params.ReadMore | default "Read more" }} →</a
>
</div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>

64
layouts/_default/rss.xml Normal file
View File

@ -0,0 +1,64 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
{{ if .Site.Params.RssImage }}<image>
<url>{{ printf "%s%s" .Permalink .Site.Params.RssImage }}</url>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
</image>
{{ end }}
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>
{{ if .Params.Cover }}
{{ if .Params.UseRelativeCover }}{{ printf "<img src=\"%s%s\"/>" .Permalink .Params.Cover }}
{{ else }}{{ printf "<img src=\"%s\"/>" (.Params.Cover | absURL) }}
{{ end }}
{{ else }}
{{ $images := .Resources.ByType "image" }}
{{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }}
{{ with $featured }}{{ printf "<img src=\"%s\"/>" $featured.Permalink }}{{ end }}
{{ end }}
{{ if .Site.Params.RssFullText }}{{ .Content | html }}
{{ else }}
{{ with .Description }}{{ . | html }}
{{ else }}{{ .Summary | html }}
{{ end }}
{{ end }}
</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -1,43 +1,91 @@
{{ define "main" }}
<div class="post">
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
<article class="post">
<h1 class="post-title">{{ .Title | markdownify }}</h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
</span>
<span class="post-author">Written by {{ .Params.Author }}</span>
{{ if .Date | default nil }}
<time class="post-date">
{{ .Date.Format ($.Site.Params.DateFormatSingle | default "2006-01-02") }}
</time>
{{ if eq .Type $contentTypeName }}
{{ if $.Site.Params.LastModDisplay }}
{{ partial "lastmod.html" . }}
{{ end }}
{{ end }}
{{ end }}
{{ with .Params.Author }}
<span class="post-author"
>— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span
>{{ end }}
{{ if $.Site.Params.ShowReadingTime }}
<span class="post-read-time"
>— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span
>
{{ end }}
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
<a href="{{ (urlize (printf "tags/%s" . )) | absLangURL }}/">#{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ with .Params.Cover }}
<img src="/img/{{ . }}" class="post-cover" />
{{ if .Params.Cover }}
{{ partial "postcover.html" . }}
{{ end }}
<div class="post-content">
{{ if or .Params.Toc $.Site.Params.Toc }}
{{ if ne .Params.Toc false }}
<h2>Table of Contents</h2>
<aside class="table-of-contents">{{ .TableOfContents }}</aside>
{{ end }}
{{ end }}
{{ .Content }}
</div>
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">Read other posts</span>
<hr />
{{ if eq .Type $.Site.Params.contentTypeName }}
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h"
>{{ $.Site.Params.ReadOtherPosts | default "Read other posts" }}</span
>
<hr />
</div>
<div class="pagination__buttons">
{{ if .NextInSection }}
<span class="button previous">
<a href="{{ .NextInSection.Permalink }}">
<span class="button__icon"></span>
<span class="button__text">{{ .NextInSection.Title }}</span>
</a>
</span>
{{ end }}
{{ if .PrevInSection }}
<span class="button next">
<a href="{{ .PrevInSection.Permalink }}">
<span class="button__text">{{ .PrevInSection.Title }}</span>
<span class="button__icon"></span>
</a>
</span>
{{ end }}
</div>
</div>
<div class="pagination__buttons">
{{ if .NextInSection }}
<a class="btn next" href="{{ .NextInSection.Permalink }}">← {{ .NextInSection.Title }}</a>
{{ end }}
{{ if .PrevInSection }}
<a class="btn previous" href="{{ .PrevInSection.Permalink }}">{{ .PrevInSection.Title }} →</a>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
</div>
{{ if not (eq .Params.Comments "false") }}
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
{{ partial "comments.html" . }}
{{ end }}
{{ end }}
</article>
{{ end }}

View File

@ -0,0 +1,19 @@
{{ define "main" }}
<div class="terms">
<h1>{{ .Title }}</h1>
<ul class="terms__list">
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li class="terms__term">
<a href="{{ .Permalink }}"
>#{{ .Name }} <span class="terms__term-count">{{ $count }}</span></a
>
</li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}

49
layouts/archive/list.html Normal file
View File

@ -0,0 +1,49 @@
{{ define "main" }}
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
<div class="archive">
<h1>{{ .Title }}</h1>
{{ range .Site.RegularPages.GroupByPublishDate "2006" }}
{{ if ne .Key "0001" }}
<div class="archive__group-year">
<h2 class="archive__group-year-header">{{ replace .Key "0001" "" }}</h2>
{{ range .Pages.GroupByDate "January" }}
<div class="archive__group-month">
<h3 class="archive__group-month-header">{{ .Key }}</h3>
<div class="archive__group-posts">
{{ range where .Pages "Type" $contentTypeName }}
{{ if eq .Kind "page" }}
<article class="archive__post">
<h3 class="archive__post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h3>
<div class="archive__post-meta">
<time class="archive__post-date">
{{ .Date.Format ($.Site.Params.DateFormatList | default "2006-01-02") }}
</time>
{{ with .Params.Author }}
<span class="archive__post-author"
>—
{{ $.Site.Params.WrittenBy | default "Written by" }}
{{ . }}
</span>
{{ end }}
{{ if $.Site.Params.ShowReadingTime }}
<span class="archive__post-read-time"
>— {{ .ReadingTime }}
{{ $.Site.Params.MinuteReadingTime | default "min read" }}</span
>
{{ end }}
</div>
</article>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}

View File

@ -4,7 +4,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{.}}', 'auto');
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
</script>

View File

@ -1,11 +0,0 @@
<svg class="bulb-off" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24"/>
<path d="M4 19C4 19.55 4.45 20 5 20H9C9.55 20 10 19.55 10 19V18H4V19ZM7 0C3.14 0 0 3.14 0 7C0 9.38 1.19 11.47 3 12.74V15C3 15.55 3.45 16 4 16H10C10.55 16 11 15.55 11 15V12.74C12.81 11.47 14 9.38 14 7C14 3.14 10.86 0 7 0ZM9.85 11.1L9 11.7V14H5V11.7L4.15 11.1C2.8 10.16 2 8.63 2 7C2 4.24 4.24 2 7 2C9.76 2 12 4.24 12 7C12 8.63 11.2 10.16 9.85 11.1Z" transform="translate(5 2)" fill="black"/>
</svg>
<svg class="bulb-on" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24"/>
<path class="bulb-on__base" d="M4 19C4 19.55 4.45 20 5 20H9C9.55 20 10 19.55 10 19V18H4V19Z" transform="translate(5 2)" fill="#a9a9b3" />
<path class="bulb-on__glass" d="M0 7C0 3.14 3.14 0 7 0C10.86 0 14 3.14 14 7C14 9.38 12.81 11.47 11 12.74V15C11 15.55 10.55 16 10 16H4C3.45 16 3 15.55 3 15V12.74C1.19 11.47 0 9.38 0 7Z" transform="translate(5 2)" fill="#a9a9b3" />
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,7 @@
<!--
To add comments section, please create `layouts/partials/comments.html` in your
Hugo directory and insert:
{{ template "_internal/disqus.html" . }}
or whatever comment engine you want -> https://gohugo.io/content-management/comments/#readout -->

View File

@ -0,0 +1,4 @@
<!--
If you want to include any custom html just before </body>, put it in /layouts/partials/extended_footer.html
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/extended_footer.html doesn't exist.
-->

View File

@ -0,0 +1,4 @@
<!--
If you want to include any custom html just before </head>, put it in /layouts/partials/extended_head.html
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/extended_head.html doesn't exist.
-->

View File

@ -1,15 +1,21 @@
<footer class="footer">
<div class="footer__inner">
{{ if .Site.Copyright }}
<div class="copyright copyright--user">{{ .Site.Copyright| safeHTML }}</div>
{{else}}
{{ if $.Site.Copyright }}
<div class="copyright copyright--user">{{ $.Site.Copyright | safeHTML }}</div>
{{ else }}
{{ partial "logo.html" . }}
<div class="copyright">
<span>Powered by <a href="http://gohugo.io">Hugo</a></span>
<span>Theme created by <a href="https://twitter.com/panr">panr</a> 2018</span>
<span>© {{ now.Year }} Powered by <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a></span>
<span><a href="https://github.com/panr/hugo-theme-hello-friend" target="_blank">Theme</a> made by <a href="https://github.com/panr" target="_blank">panr</a></span>
</div>
{{end}}
{{ end }}
</div>
</footer>
{{ partial "inject.script.html" . }}
{{ $menu := resources.Get "js/menu.js" | js.Build }}
{{ $prism := resources.Get "js/prism.js" | js.Build }}
{{ $theme := resources.Get "js/theme.js" | js.Build }}
{{ $bundle := slice $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify }}
<script type="text/javascript" src="{{ $bundle.RelPermalink }}"></script>
{{- partial "extended_footer.html" . }}

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" class="greater-icon" viewBox="0 0 44 44">
<path fill="none" d="M15 8l14.729 14.382L15 35.367" />
</svg>

After

Width:  |  Height:  |  Size: 146 B

View File

@ -1,46 +1,48 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="{{ if or (.IsHome) (.IsPage) }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}"/>
<meta name="keywords" content="{{ .Site.Params.keywords }}"/>
<meta name="robots" content="noodp"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}"
/>
<meta
name="keywords"
content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"
/>
<meta name="robots" content="noodp" />
<link rel="canonical" href="{{ .Permalink }}" />
<!-- CSS -->
<link rel="stylesheet" href="/assets/style.css">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro' rel='stylesheet' type='text/css'>
{{ partial "inject.stylesheet.html" . }}
<!-- head custom -->
{{- partial "prepended_head.html" . }}
<!-- Theme CSS -->
{{ $res := resources.Get "css/style.scss" }}
{{ $style := $res | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
<!-- Custom CSS to override theme properties (/static/style.css) -->
<link rel="stylesheet" href="{{ "style.css" | absURL }}" />
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="img/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}" />
<link rel="shortcut icon" href="{{ "img/favicon.png" | absURL }}" />
<!-- Fonts -->
<link href="{{ (resources.Get "fonts/Inter-Italic.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<link href="{{ (resources.Get "fonts/Inter-Regular.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<link href="{{ (resources.Get "fonts/Inter-Medium.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<link href="{{ (resources.Get "fonts/Inter-MediumItalic.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<link href="{{ (resources.Get "fonts/Inter-Bold.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<link href="{{ (resources.Get "fonts/Inter-BoldItalic.woff2").RelPermalink }}" rel="preload" type="font/woff2" as="font" crossorigin="">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ if .IsHome }}{{ $.Site.Title }} — {{ $.Site.Params.Subtitle }}{{ else }}{{ .Title }} :: {{ $.Site.Title }} — {{ $.Site.Params.Subtitle }}{{ end }}" />
<meta name="twitter:description" content="{{ if or (.IsHome) }}{{ $.Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="twitter:site" content="{{ $.Site.Params.twitter }}" />
<meta name="twitter:creator" content="{{ $.Site.Params.twitter }}" />
<meta name="twitter:image" content="{{ with .Params.Cover }}{{ $.Site.BaseURL }}img/post/{{ . }}{{ else }}{{ $.Site.BaseURL }}img/default.jpg{{ end }}">
{{ template "_internal/twitter_cards.html" . }}
<!-- OG data -->
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:title" content="{{ if .IsHome }}{{ $.Site.Title }} — {{ $.Site.Params.Subtitle }}{{ else }}{{ .Title }} :: {{ $.Site.Title }} — {{ $.Site.Params.Subtitle }}{{ end }}">
<meta property="og:description" content="{{ if or (.IsHome) (.IsPage) }}{{ $.Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="{{ .Title }}" />
<meta property="og:image" content="{{ with .Params.Cover }}{{ $.Site.BaseURL }}img/post/{{ . }}{{ else }}{{ $.Site.BaseURL }}img/default.jpg{{ end }}">
<meta property="og:image:width" content="2048">
<meta property="og:image:height" content="1024">
{{ range .Params.categories }}<meta property="article:section" content="{{ . }}" />{{ end }}
{{ if isset .Params "date" }}<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
{{ template "_internal/opengraph.html" . }}
<!-- RSS -->
{{ if .RSSLink }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<!-- RSS | JSON -->
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
<!-- JSON Feed -->
{{ if .OutputFormats.Get "json" }}
<link href="{{ if .OutputFormats.Get "json" }}{{ .Site.BaseURL }}feed.json{{ end }}" rel="alternate" type="application/json" title="{{ .Site.Title }}" />
{{ end }}
<!-- head custom -->
{{- partial "extended_head.html" . }}

View File

@ -2,17 +2,17 @@
<span class="header__inner">
{{ partial "logo.html" . }}
<span class="header__right">
{{ if len .Site.Menus }}
{{ if len $.Site.Menus }}
{{ partial "menu.html" . }}
<span class="menu-trigger">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</svg>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" />
</svg>
</span>
{{ end }}
<span class="theme-toggle">
{{ partial "bulb-icon.html" . }}
{{ partial "theme-icon.html" . }}
</span>
</span>
</span>

View File

@ -1,5 +0,0 @@
<script src="/assets/main.js"></script>
<script src="/assets/prism.js"></script>

View File

@ -1,3 +0,0 @@
<link rel="stylesheet" href="/assets/style.css">

View File

@ -0,0 +1,10 @@
{{ $hourInSec := 3600 }}
{{ if gt .Lastmod (add (time .Date).Unix $hourInSec) }}
{{ with .Lastmod }}
<span class="post-moddate">
({{ $.Site.Params.LastModDisplay }}
{{ .Format ($.Site.Params.DateFormatSingle | default "2006-01-02") }})
</span>
{{ end }}
{{ end }}

View File

@ -1,11 +1,15 @@
<a href="{{ .Site.BaseURL }}" style="text-decoration: none;">
<div class="logo">
{{ if .Site.Params.Logo }}
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
<a
href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{ else }}{{ $.Site.BaseURL }}{{ end }}"
class="logo"
style="text-decoration: none;"
>
{{ if $.Site.Params.Logo.path }}
<img src="{{ $.Site.Params.Logo.path }}" alt="{{ $.Site.Params.Logo.alt }}" />
{{ else }}
<span class="logo__mark">></span>
<span class="logo__text">hello friend</span>
<span class="logo__cursor"></span>
{{ end }}
</div>
</a>
<span class="logo__mark">{{ partial "greater-icon.html" . }}</span>
<span class="logo__text"
>{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span
>
<span class="logo__cursor"></span>
{{ end }}
</a>

View File

@ -1,7 +1,42 @@
<nav class="menu">
<ul class="menu__inner">
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
<ul class="menu__inner menu__inner--desktop">
{{ if or $.Site.Params.showMenuItems (eq $.Site.Params.showMenuItems 0) }}
{{ range first $.Site.Params.showMenuItems $.Site.Menus.main }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
<ul class="menu__sub-inner">
<li class="menu__sub-inner-more-trigger">
{{ $.Site.Params.MenuMore | default "Show more" }}
<span class="menu__sub-inner-more-trigger-icon"
>{{ partial "greater-icon.html" . }}</span
>
</li>
<ul class="menu__sub-inner-more hidden">
{{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
</ul>
</ul>
{{ end }}
{{ else }}
{{ range $.Site.Menus.main }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</nav>
<ul class="menu__inner menu__inner--mobile">
{{ range $.Site.Menus.main }}
{{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>

View File

@ -1,10 +1,20 @@
<div class="pagination">
<div class="pagination__buttons">
{{ if .Paginator.HasPrev }}
<a class="button next" href="{{ .Paginator.Prev.URL }}"><span class="button__icon"></span></a>
<span class="button previous">
<a href="{{ .Paginator.Prev.URL }}">
<span class="button__icon"></span>
<span class="button__text">{{ $.Site.Params.NewerPosts | default "Newer posts" }}</span>
</a>
</span>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="button previous" href="{{ .Paginator.Next.URL }}"><span class="button__icon"></span></a>
<span class="button next">
<a href="{{ .Paginator.Next.URL }}">
<span class="button__text">{{ $.Site.Params.OlderPosts | default "Older posts" }}</span>
<span class="button__icon"></span>
</a>
</span>
{{ end }}
</div>
</div>
</div>

View File

@ -0,0 +1,11 @@
<figure class="post-cover">
{{ if .Params.UseRelativeCover }}
<img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" alt="{{ .Params.CoverAlt | plainify | default .Title }}"/>
{{ else }}
<img src="{{ .Params.Cover | absURL }}" alt="{{ .Params.CoverAlt | plainify | default .Title }}"/>
{{ end }}
{{ if .Params.CoverCaption }}
<figcaption class="center">{{ .Params.CoverCaption | markdownify }}</figcaption>
{{ end }}
</figure>

View File

@ -0,0 +1,4 @@
<!--
If you want to include any custom html at the beginning of </head> before scripts or links are declared,
put it in /layouts/partials/prepended_head.html. Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/prepended_head.html doesn't exist.
-->

View File

@ -0,0 +1,14 @@
<svg
class="theme-toggler"
width="24"
height="24"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22
3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7
13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z"
/>
</svg>

After

Width:  |  Height:  |  Size: 337 B

View File

@ -0,0 +1,15 @@
{{ $id := delimit (shuffle (seq 1 9)) "" }}
{{ if .Get "language" }}
<div class="collapsable-code">
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked {{- end }} />
<label for="{{ .Get "id" | default $id }}">
<span class="collapsable-code__language">{{ .Get "language" }}</span>
{{ if .Get "title" }}<span class="collapsable-code__title">{{ .Get "title" | markdownify }}</span>{{ end }}
<span class="collapsable-code__toggle" data-label-expand="{{ .Get "expand" | default "" }}" data-label-collapse="{{ .Get "collapse" | default "" }}"></span>
</label>
<pre {{ if .Get "language" }}class="language-{{ .Get "language" }}" {{ end }}><code>{{ .Inner | string }}</code></pre>
</div>
{{ else }}
{{ errorf "If you want to use the \"collapsable code\" shortcode, you need to pass a mandatory \"language\" param. The issue occured in %q (%q)" .Page.File .Page.Permalink }}
{{ end }}

View File

@ -0,0 +1,8 @@
{{ if .Get "src" }}
<figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" >
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} />
{{ if .Get "caption" }}
<figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}>{{ .Get "caption" | markdownify }}</figcaption>
{{ end }}
</figure>
{{ end }}

View File

@ -0,0 +1,3 @@
{{ if .Get "src" }}
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} />
{{ end }}

View File

@ -0,0 +1,30 @@
{{ $original := .Page.Resources.GetMatch (printf "*%s*" (.Get 0)) }}
{{ $command := .Get 1 }}
{{ $options := .Get 2 }}
{{ $position := .Get 3 }}
{{ if eq $command "Fit" }}
{{ .Scratch.Set "image" ($original.Fit $options) }}
{{ else if eq $command "Resize" }}
{{ .Scratch.Set "image" ($original.Resize $options) }}
{{ else if eq $command "Fill" }}
{{ .Scratch.Set "image" ($original.Fill $options) }}
{{ else }}
{{ errorf "Invalid image processing command: Must be one of Fit, Fill or Resize." }}
{{ end }}
{{ $image := .Scratch.Get "image" }}
<figure class="{{ with $position }}{{ . }}{{ else -}} left {{- end }}">
<img
style="max-width: 100%; width: auto; height: auto; border-radius: 8px;"
src="{{ $image.RelPermalink }}"
width="{{ $image.Width }}"
height="{{ $image.Height }}"
/>
{{ with .Inner }}
<figcaption>
{{ . }}
</figcaption>
{{ end }}
</figure>

10251
package-lock.json generated

File diff suppressed because it is too large Load Diff

44
package.hugo.json Normal file
View File

@ -0,0 +1,44 @@
{
"name": "hello-friend",
"version": "3.0.0",
"main": "index.js",
"author": "Radosław Kozieł <@panr> <radoslaw.koziel@gmail.com>",
"license": "MIT",
"scripts": {
"test": "echo 'Test'"
},
"browserslist": [
"last 2 versions",
">1%",
"not dead"
],
"comments": {
"dependencies": {
"yarn": "project"
},
"devDependencies": {
"browserslist": "project",
"clipboard": "project",
"eslint-config-airbnb": "project",
"eslint-config-prettier": "project",
"eslint-plugin-jsx-a11y": "project",
"husky": "project"
}
},
"dependencies": {
"yarn": "^1.22.10"
},
"devDependencies": {
"browserslist": "^4.16.5",
"clipboard": "^2.0.4",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"husky": "^5.1.3"
},
"husky": {
"hooks": {
"pre-push": "yarn build && git add . && git commit --amend --no-edit"
}
}
}

View File

@ -1,51 +1,44 @@
{
"name": "hello-friend",
"version": "1.0.0",
"version": "3.0.0",
"main": "index.js",
"author": "panr & mobily",
"author": "Radosław Kozieł <@panr> <radoslaw.koziel@gmail.com>",
"license": "MIT",
"scripts": {
"dev": "webpack --mode=development --watch",
"build": "webpack --mode=production"
"test": "echo 'Test'"
},
"browserslist": [
"last 2 versions",
">1%",
"not dead"
],
"comments": {
"dependencies": {
"yarn": "project"
},
"devDependencies": {
"browserslist": "project",
"clipboard": "project",
"eslint-config-airbnb": "project",
"eslint-config-prettier": "project",
"eslint-plugin-jsx-a11y": "project",
"husky": "project"
}
},
"dependencies": {
"yarn": "^1.22.10"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.54",
"@babel/core": "^7.0.0-beta.54",
"@babel/plugin-transform-runtime": "^7.0.0-beta.54",
"@babel/preset-env": "^7.0.0-beta.54",
"@babel/preset-stage-2": "^7.0.0-beta.54",
"babel-eslint": "8.2.1",
"babel-loader": "^8.0.0-beta.0",
"browserslist": "^4.0.1",
"clean-webpack-plugin": "^0.1.16",
"css-loader": "^1.0.0",
"cssnano": "^4.0.3",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^1.1.11",
"html-webpack-plugin": "^3.2.0",
"postcss": "^7.0.0",
"postcss-browser-reporter": "^0.5.0",
"postcss-cli": "^6.0.0",
"postcss-import": "^11.1.0",
"postcss-loader": "^2.0.5",
"postcss-nested": "^3.0.0",
"postcss-preset-env": "^5.2.2",
"postcss-reporter": "^5.0.0",
"postcss-url": "^7.3.2",
"prettier-eslint-cli": "^4.7.1",
"ramda": "^0.25.0",
"style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"webpack": "^4.16.1",
"webpack-cli": "^3.1.0"
"browserslist": "^4.16.5",
"clipboard": "^2.0.4",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"husky": "^5.1.3"
},
"husky": {
"hooks": {
"pre-push": "yarn build && git add . && git commit --amend --no-edit"
}
}
}

View File

@ -1,15 +1,19 @@
const url = require("postcss-url");
const imports = require("postcss-import");
const nested = require("postcss-nested");
const postcssCustomMedia = require("postcss-custom-media");
const postCSSPresetEnv = require("postcss-preset-env");
const browsers = require("browserslist");
const cssnano = require("cssnano");
const mixins = require("postcss-mixins");
module.exports = () => ({
plugins: [
url,
imports,
mixins,
nested,
postcssCustomMedia,
postCSSPresetEnv({
stage: 1,
}),

View File

@ -1,59 +0,0 @@
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-weight: 400;
src: url("../fonts/Inter-UI-Regular.woff2") format("woff2"),
url("../fonts/Inter-UI-Regular.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-weight: 400;
src: url("../fonts/Inter-UI-Italic.woff2") format("woff2"),
url("../fonts/Inter-UI-Italic.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-weight: 500;
src: url("../fonts/Inter-UI-Medium.woff2") format("woff2"),
url("../fonts/Inter-UI-Medium.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-weight: 500;
src: url("../fonts/Inter-UI-MediumItalic.woff2") format("woff2"),
url("../fonts/Inter-UI-MediumItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-weight: 700;
src: url("../fonts/Inter-UI-Bold.woff2") format("woff2"),
url("../fonts/Inter-UI-Bold.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-weight: 700;
src: url("../fonts/Inter-UI-BoldItalic.woff2") format("woff2"),
url("../fonts/Inter-UI-BoldItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: normal;
font-weight: 900;
src: url("../fonts/Inter-UI-Black.woff2") format("woff2"),
url("../fonts/Inter-UI-Black.woff") format("woff");
}
@font-face {
font-family: 'Inter UI';
font-style: italic;
font-weight: 900;
src: url("../fonts/Inter-UI-BlackItalic.woff2") format("woff2"),
url("../fonts/Inter-UI-BlackItalic.woff") format("woff");
}

View File

@ -1,192 +0,0 @@
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 18px;
line-height: 1.54;
background-color: var(--light-background);
color: var(--light-color);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
@media (--phone) {
font-size: 1rem;
}
&.dark-theme {
background-color: var(--dark-background);
color: var(--dark-color);
}
}
h1, h2, h3, h4, h5, h6 {
display: flex;
align-items: center;
line-height: 1.3;
}
h1 {
font-size: 2.625rem;
}
h2 {
font-size: 1.625rem;
}
h3 {
font-size: 1.375rem;
}
h4 {
font-size: 1.125rem;
}
@media (--phone) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.4rem;
}
h3 {
font-size: 1.15rem;
}
h4 {
font-size: 1.125rem;
}
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
}
code {
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
background: var(--light-background-secondary);
padding: 1px 6px;
margin: 0 2px;
border-radius: 5px;
font-size: .95rem;
.dark-theme & {
background: var(--dark-background-secondary);
}
}
pre {
background: #1a1a1d;
padding: 20px;
border-radius: 8px;
font-size: 1rem;
overflow: auto;
@media (--phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
background: none !important;
color: #ccc;
margin: 0;
padding: 0;
font-size: inherit;
}
}
blockquote {
border-left: 2px solid;
margin: 40px;
padding: 10px 20px;
@media (--phone) {
margin: 10px;
padding: 10px;
}
&:before {
content: '”';
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
p:first-of-type {
margin-top: 0;
}
p:last-of-type {
margin-bottom: 0;
}
}
ul, ol {
margin-left: 40px;
padding: 0;
@media (--phone) {
margin-left: 20px;
}
}
ol ol {
list-style-type: lower-alpha;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.content {
display: flex;
flex-direction: column;
flex: 1 auto;
align-items: center;
justify-content: center;
margin: 50px 0;
@media (--phone) {
margin-top: 0;
}
}
hr {
width: 100%;
border: none;
background: var(--light-border-color);
height: 1px;
.dark-theme & {
background: var(--dark-border-color);
}
}
.hidden {
display: none;
}

View File

@ -1,70 +0,0 @@
.menu {
background: #fafafa;
border-right: 1px solid;
margin-right: 10px;
.dark-theme & {
background: #252627;
}
@media (--phone) {
position: absolute;
top: 50px;
right: 0;
border: none;
margin: 0;
padding: 10px;
}
&__inner {
display: flex;
align-items: center;
justify-content: flex-start;
max-width: 100%;
margin: 0 auto;
padding: 0 15px;
font-size: 1rem;
list-style: none;
li {
margin: 0 20px;
&:last-of-type {
margin: 0;
}
}
@media (--phone) {
flex-direction: column;
align-items: flex-start;
padding: 0;
li {
margin: 0;
padding: 5px;
}
}
}
&-trigger {
width: 24px;
height: 24px;
fill: currentColor;
margin-left: 10px;
cursor: pointer;
}
a {
display: inline-block;
margin-right: 15px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
&:last-of-type {
margin-right: 0;
}
}
}

View File

@ -1,47 +0,0 @@
.pagination {
margin-top: 50px;
&__title {
display: flex;
text-align: center;
position: relative;
margin: 100px 0 20px;
&-h {
text-align: center;
margin: 0 auto;
padding: 5px 10px;
background: var(--light-background);
color: var(--light-color-secondary);
font-size: .8rem;
text-transform: uppercase;
text-decoration: none;
letter-spacing: .1em;
z-index: 1;
.dark-theme & {
background: var(--dark-background);
color: var(--dark-color-secondary);
}
}
hr {
position: absolute;
left: 0;
right: 0;
width: 100%;
margin-top: 15px;
z-index: 0;
}
}
&__buttons {
display: flex;
justify-content: space-around;
a {
text-decoration: none;
font-weight: bold;
}
}
}

View File

@ -1,125 +0,0 @@
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+markup-templating+go+handlebars+json+markdown+ocaml+pug+python+jsx+rust+scss */
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/
code[class*="language-"],
pre[class*="language-"] {
color: #a9a9b3;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #1a1a1d !important;
border-radius: 8px;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: var(--light-color-secondary);
}
.token.punctuation {
color: #a9a9b3;
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
}
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}

View File

@ -1,28 +0,0 @@
:root {
/* light theme color */
--light-background: #fff;
--light-background-secondary: #eaeaea;
--light-color: #222;
--light-color-secondary: #999;
--light-border-color: #dcdcdc;
/* dark theme colors */
--dark-background: #292a2d;
--dark-background-secondary: #3b3d42;
--dark-color: #a9a9b3;
--dark-color-secondary: #73747b;
--dark-border-color: #4a4b50;
/* variables for js, must be the same as these in @custom-media queries */
--phoneWidth: (max-width: 684px);
--tabletWidth: (max-width: 900px);
}
@custom-media --phone (width < 684px);
@custom-media --tablet (width < 900px);
/* HOW TO USE */
/*@media (--phone) {*/
/*margin-top: 0;*/
/*}*/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More