535 Commits

Author SHA1 Message Date
8dee69d6f1 Update README 2022-10-23 11:20:57 +02:00
77db977cbb Update README 2022-10-22 13:32:38 +02:00
21cdda5eab Merge pull request #372 from Seirdy/a11y-fixes
A11y fixes
2022-10-22 11:37:49 +02:00
bc8a948e9e Merge branch 'master' into a11y-fixes 2022-10-22 11:37:43 +02:00
4cfc615c58 Merge pull request #370 from matidfk/patch-1
Allow target="_blank" with .Params.NewTab set to true
2022-10-22 11:36:14 +02:00
630b79d3d3 Merge pull request #369 from undeMalum/master
Update USERS.md
2022-10-22 11:35:17 +02:00
078ea12d61 Merge branch 'master' into master 2022-10-22 11:35:10 +02:00
799ade2a15 Merge pull request #363 from ben-kuhn/patch-1
Update USERS.md
2022-10-22 11:32:53 +02:00
a28d372103 Merge branch 'master' into patch-1 2022-10-22 11:32:47 +02:00
84915ed87c Merge pull request #358 from bg117/patch-1
Add my site onto USERS.md
2022-10-22 11:32:03 +02:00
48a59f7148 Merge branch 'master' into patch-1 2022-10-22 11:31:57 +02:00
5a7235247c Merge pull request #354 from GrumpyMetalGuy/patch-1
Update USERS.md
2022-10-22 11:31:38 +02:00
9cbdf7f76b Merge branch 'master' into patch-1 2022-10-22 11:31:32 +02:00
8ef529a191 Merge pull request #346 from gabe565/list-date-fix
Fix list date shown as 0001-01-01 when not set
2022-10-22 11:31:10 +02:00
578cff2c4a Merge pull request #337 from wilsonehusin/summary-no-markdown
Don't markdownify `.Summary`
2022-10-22 11:30:51 +02:00
cddbfdb6c8 Merge pull request #324 from Jontes-Tech/patch-1
Adding Jontes.Page
2022-10-22 11:30:13 +02:00
52455fceeb Merge branch 'master' into patch-1 2022-10-22 11:30:06 +02:00
ef0ab18dd9 Switch another div to article 2022-10-18 21:02:32 -07:00
788ab99b3d Merge pull request #373 from MichalSkoula/patch-1
Update USERS.md
2022-10-18 23:30:32 +02:00
1e9ebfa7a0 Update USERS.md
added my websites
2022-10-05 22:30:53 +02:00
4a26bc11a8 Semantics: use time element where appropriate
See #371
2022-09-27 14:06:37 -07:00
a44ecc8816 Semantics: use article element where appropriate
See #371
2022-09-27 13:58:45 -07:00
7e552cfc27 Typo: change ariaLabel to aria-label 2022-09-27 13:56:54 -07:00
b824cb3172 Allow target="_blank" with .Params.NewTab set to true
example:
```
[[menu.main]]
identifier = "discord"
name = "Discord"
url = "https://discord.gg/..."
[menu.main.params]
    newTab = true
```
2022-09-25 13:19:32 +01:00
7ebc190fa0 Update USERS.md
Add me and my website
2022-09-24 16:45:10 +02:00
f501aea6c4 Update USERS.md 2022-09-08 11:52:29 -05:00
6978547538 Update USERS.md 2022-08-18 19:15:43 +08:00
1cfe36806b Update USERS.md 2022-08-06 19:59:07 +02:00
a318e42764 Update USERS.md 2022-08-06 19:56:12 +02:00
1610962731 Merge pull request #355 from panr/dependabot/npm_and_yarn/terser-5.14.2
Bump terser from 5.9.0 to 5.14.2
2022-07-20 08:00:51 +02:00
e65726ee5a 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:26:28 +00:00
eb64ae3fd1 Update USERS.md 2022-07-18 13:54:47 +01:00
b868b1d08b remove go.module 2022-07-08 15:44:13 +02:00
d7e289572a Fix list date shown as 0001-01-01 when not set 2022-07-06 12:12:59 -05:00
b257fa2699 Update README.md 2022-07-04 09:05:14 +02:00
aad3300fb5 add hugo module 2022-06-21 10:16:02 +02:00
ce78519623 add form styles 2022-06-16 09:16:23 +02:00
48846331ee Don't markdownify .Summary
When a post defines a custom summary through `<!--more-->` tag,
`markdownify` does not work and result in the post having empty summary.

This fixes the behavior to render it properly
2022-04-26 16:50:17 -07:00
e0213b0d4e Merge pull request #332 from alycklama/feature/hide-comments
Adds flag to hide comments on a page-to-page basis
2022-03-29 23:36:50 +02:00
7b430aaaca Adds flag to hide comments on a page-to-page basis 2022-03-29 20:08:32 +02:00
065f1a9f1e Merge pull request #326 from MikeFoden/master
Update USERS.md to include Mike Foden
2022-03-26 11:33:04 +01:00
c98dfa6452 Merge pull request #331 from panr/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-03-26 11:32:19 +01:00
379dccdabc 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-26 10:20:25 +00:00
6f09541f75 Update USERS.md 2022-03-22 10:34:30 +11:00
60b9f3f4db Merge pull request #320 from tatewilhelm/patch-1
Adding User
2022-03-19 09:14:26 +01:00
32bac37f22 Update USERS.md 2022-03-12 11:18:21 +01:00
55e8a45109 Update USERS.md 2022-02-21 22:32:57 -06:00
9d458d193f Merge pull request #314 from icy-comet/patch-1
document `Toc`, `TocTitle` & `readingTime`
2022-02-07 11:48:35 +01:00
1b3daa8aec add Toc & readingTime to sample config & change example formatting 2022-02-05 16:17:20 +05:30
993f39f58d make Toc a site-wide Param 2022-02-05 15:58:12 +05:30
6ad2d19be8 Merge pull request #297 from alberto-lanfranco/master
fixed post-content logic in index.html and list.html
2022-01-22 09:17:10 +01:00
ded26b695f Merge pull request #302 from faultnote/menu/visual-align
Update menu margin for visual align
2022-01-22 09:10:03 +01:00
26acce9de7 Merge pull request #306 from 2200g/patch-1
Added my blog to the list.
2022-01-22 09:09:16 +01:00
2d6da429ad Merge branch 'master' into patch-1 2022-01-22 09:09:11 +01:00
f90f088661 Merge pull request #308 from cristiioan/master
Added my blog
2022-01-22 09:08:31 +01:00
9ecbdfdb53 Merge branch 'master' into master 2022-01-22 09:08:25 +01:00
53b0ba4b1c Merge pull request #311 from panr/dependabot/npm_and_yarn/nanoid-3.2.0
Bump nanoid from 3.1.30 to 3.2.0
2022-01-22 09:06:58 +01:00
4d31894966 Merge pull request #310 from mintphin/patch-1
Added they.mint.lgbt
2022-01-22 09:06:43 +01:00
f8743050da Bump nanoid from 3.1.30 to 3.2.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [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.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-22 03:09:16 +00:00
2f07661d54 Added they.mint.lgbt 2022-01-21 21:24:07 -03:00
df1fcb5b4e Trim visual align by adding a margin into menu section
- add a 1 pixel left and right margin to .menu selector in header.css file
2022-01-15 14:49:39 +09:00
38b7e2d71a Added my blog 2022-01-12 16:02:51 +02:00
b396c7267f Added my blog to the list.
Added my blog to the list.
2022-01-10 05:16:38 +08:00
71b2d5731d Merge pull request #304 from biplavxyz/patch-1
Add biplav.xyz to USERS list
2022-01-08 09:50:57 +01:00
f07873df21 Merge branch 'master' into patch-1 2022-01-08 09:50:42 +01:00
2c980592fb Merge pull request #301 from santiagon610/master
add santiago.wtf to USERS list
2022-01-08 09:48:25 +01:00
c3cc15b3fb Merge pull request #300 from sethforprivacy/patch-1
Update sethsimmons.me -> blog.sethforprivacy.com
2022-01-08 09:48:15 +01:00
411fade4c6 update font the latest version and fix "font-feature-settings" to enable ligatures 2022-01-07 11:23:56 +01:00
0f3c3ce5a2 Add biplav.xyz to USERS list 2022-01-06 13:32:45 -05:00
757870fc9f add santiago.wtf to USERS list 2021-12-23 02:36:54 -05:00
8c8b04f619 Update sethsimmons.me -> blog.sethforprivacy.com 2021-12-22 19:28:32 +00:00
384671e682 Merge pull request #294 from MCWertGaming/patch-2
Updated blog url
2021-11-10 19:23:36 +01:00
14414168d7 fixed post-content logic in index.html 2021-11-10 09:12:44 +01:00
1eb3288a62 fixed post-content logic in list.html 2021-11-10 09:11:18 +01:00
9facb58364 fix dir name for exampleSite 2021-11-07 17:26:49 +01:00
a3dd8c11f0 set default values for FullWidthTheme and CenterTheme. fixes 278 2021-11-04 23:44:21 +01:00
cc1553f7ff Update USERS.md 2021-11-02 15:25:20 +01:00
b11b5bf012 make it easier to copy code from README 2021-11-01 19:16:12 +01:00
1d8c831af4 update README 2021-11-01 19:00:14 +01:00
e77948f3cd fix autocover partial 2021-11-01 18:58:53 +01:00
a634663b48 Merge pull request #250 from indrora/page-bundles
Use Page Bundles, automatically use cover file if available. Closes #249, #274
2021-11-01 18:49:33 +01:00
bfc300f4c8 remove dependabot 2021-11-01 16:25:39 +01:00
553c9a0616 add dependabot 2021-11-01 16:00:27 +01:00
bf96fb25be Merge pull request #273 from davidhollis/add-scala-support
Add scala support
2021-10-24 23:24:56 +02:00
b41381ea93 update dependencies 2021-10-24 18:37:28 +02:00
8b1529f4bb clean up webpack config 2021-10-24 18:17:16 +02:00
9833384a7b use terset instead of uglify 2021-10-24 17:54:27 +02:00
5737d557f4 fix list styles and re-minify styles. closes #255 2021-10-24 17:41:21 +02:00
466cd49b25 update yarn.lock and re-minify prism.js 2021-10-24 10:53:43 +02:00
a9365185ba Merge pull request #241 from catleeball/dep
Add terser as minifier.
2021-10-24 10:50:34 +02:00
de6a660701 Merge branch 'master' into dep 2021-10-24 10:49:53 +02:00
0b06a56093 Merge pull request #243 from justinnuwin/upstream
Single page website layout feature and add user
2021-10-24 10:47:32 +02:00
be75e724a1 Merge branch 'master' into upstream 2021-10-24 10:47:10 +02:00
0c08f72167 add reading time param 2021-10-24 10:44:15 +02:00
bbaf93ff6f Merge pull request #258 from kllmanu/patch-1
prevent footnotes from affecting line-height
2021-10-24 10:04:58 +02:00
360673bedf Merge pull request #260 from sophiabrandt/fix/paginator
[Bugfix] pagination, close #235
2021-10-24 10:03:55 +02:00
2b0406b7a4 Merge pull request #276 from Nereuxofficial/patch-1
Added my blog to USERS.md
2021-10-24 01:09:17 +02:00
f851fbb769 Merge pull request #277 from sophiabrandt/remove-rockyourcode
Remove rockyourcode
2021-10-24 01:06:57 +02:00
fa5d7a4d42 Remove rockyourcode 2021-10-02 11:54:20 +02:00
49c865aee1 Added my blog to USERS.md 2021-09-29 12:20:22 +02:00
3dd3c40480 Update README 2021-08-29 15:37:30 +00:00
ae9c58f8e1 Add Scala support to prism.js highlighter 2021-08-29 15:32:45 +00:00
cd36a63fd0 Merge pull request #268 from m0xxz/master
markdownify on  .Content not needed
2021-08-24 14:49:42 +02:00
e4b831ac6b Merge pull request #267 from calefrey/patch-1
Make prismjs shortcode CRLF tolerant
2021-08-24 14:46:30 +02:00
c10d0fa757 Merge pull request #263 from n-kremeris/patch-1
Update USERS.md
2021-08-24 14:42:55 +02:00
25bae8dd53 Merge pull request #254 from panr/dependabot/npm_and_yarn/browserslist-4.16.5
Bump browserslist from 4.16.3 to 4.16.5
2021-08-24 14:42:01 +02:00
cf980be3f4 Merge pull request #271 from panr/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-08-24 14:41:51 +02:00
f139a26426 Update README.md 2021-08-24 14:40:59 +02:00
7d58896abd add cmake, llvm and nasm syntax 2021-08-24 14:30:28 +02:00
1752bcca7d Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 22:59:12 +00:00
7773f26830 No need to markdownify .Content, per Hugo project (https://github.com/gohugoio/hugo/issues/2616#issuecomment-255179057). This fixes issues with showFullContent. 2021-07-13 20:28:36 -07:00
9fcd6f2e83 Make prismjs shortcode CRLF tolerant
Checks for extra line in the form of `\r\n` or `\n` so that it's recognized and removed appropriately when edited in a CRLF editor
2021-07-13 17:36:00 -04:00
7eb29c4145 Update USERS.md 2021-07-01 21:33:09 +01:00
d2aba65c9a Close #235
Implements solution proposed in
https://github.com/panr/hugo-theme-terminal/issues/235#issuecomment-817480433
by @Laetgark
Link to documentation: https://gohugo.io/templates/pagination/#list-paginator-pages
2021-06-18 08:54:35 +02:00
ec451ec43e prevent footnotes from affecting line-height
see https://stackoverflow.com/a/6594576
2021-06-16 10:47:46 +02:00
ebf07a9cdd Bump browserslist from 4.16.3 to 4.16.5
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.5.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-25 01:45:20 +00:00
ca1cc0c391 Merge pull request #242 from woosal1337/patch-1
Update USERS.md
2021-05-12 23:33:22 +02:00
b06ead7ef5 Merge pull request #251 from panr/dependabot/npm_and_yarn/postcss-8.2.10
Bump postcss from 8.2.8 to 8.2.10
2021-05-12 23:32:59 +02:00
092dfc0601 Merge pull request #246 from panr/dependabot/npm_and_yarn/ssri-6.0.2
Bump ssri from 6.0.1 to 6.0.2
2021-05-12 23:32:50 +02:00
3dd20f0986 Bump postcss from 8.2.8 to 8.2.10
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.8 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/8.2.8...8.2.10)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 00:38:37 +00:00
ef0c8fef68 fix logic for getting cover information 2021-05-07 23:49:17 -07:00
2383eeb774 Add title from CoverCredit, if availble 2021-05-04 21:37:33 -07:00
67bb5735de Move cover to partial; need to verify that old behavior still works as intended. 2021-05-04 19:33:35 -07:00
61980c49d1 Use Page Bundles, automatically use cover file if available. 2021-05-02 23:53:56 -07:00
988d494e4b 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-19 22:58:19 +00:00
49c8fa1dae Add single page website layout community feature and myself to users list 2021-04-10 04:17:51 -07:00
fe616cce37 Update USERS.md 2021-04-06 01:41:32 +03:00
e12f6caa63 Add terser as minifier. 2021-03-21 20:36:29 -07:00
aaaadafec9 Add default values for the pagination 2021-03-21 10:41:10 +01:00
9dd8459305 Merge pull request #155 from guiguir68/multilingual-improvement
'Newer/Older posts' label is now editable
2021-03-21 10:39:23 +01:00
b4bf3b06c3 Merge pull request #229 from smailzhu/fix-empty-summary
fix summary issue
2021-03-21 10:33:08 +01:00
b4629bfaea Merge pull request #233 from MCWertGaming/desciptionFix
use the defined description instead of the first paragraph in the header when available
2021-03-21 10:20:56 +01:00
89e499b402 Merge pull request #238 from geckopfote/master
Update USERS.md
2021-03-21 10:18:52 +01:00
6e3dff3351 Merge pull request #239 from CMiksche/patch-2
Add rss file with full content
2021-03-21 10:12:21 +01:00
58bfba3985 [chore] update dependencies and modernize postcss config 2021-03-21 10:06:30 +01:00
72673985a1 Add rss file with full content
Add a default RSS file based on the official Hugo file and extend it with a content tag

Fixes #234
2021-02-28 20:03:44 +01:00
dc69c9059c Update USERS.md
Add my website to the list.
2021-02-21 12:54:54 +01:00
30ad59dc69 use the defined description instead of the first paragraph 2021-02-03 16:54:28 +00:00
8564ee33a1 Merge pull request #196 from cindrmon/patch-1
duplicated website and name
2021-01-10 10:27:51 +01:00
175b1a7cb8 Merge branch 'master' into patch-1 2021-01-10 10:27:43 +01:00
53a90e1e09 Merge pull request #195 from bugfix123/patch-1
Update USERS.md
2021-01-10 10:25:19 +01:00
235f2a37ff Merge branch 'master' into patch-1 2021-01-10 10:25:03 +01:00
2363670d7e Merge pull request #212 from kdpuvvadi/master
Update USERS.md
2021-01-10 10:24:01 +01:00
e42dbd57ea Merge pull request #214 from Louisload/feature/add-community-feature-portfolio
Add portfolio fork to COMMUNITY-FEATURES
2021-01-10 10:19:04 +01:00
2c5f161f65 Merge branch 'master' into feature/add-community-feature-portfolio 2021-01-10 10:18:10 +01:00
ec4748863a Merge pull request #215 from MichaelTrip/update-USERS.md
updated USERS.md
2021-01-10 10:13:04 +01:00
de84c9b4c3 Merge branch 'master' into update-USERS.md 2021-01-10 10:12:50 +01:00
3032b81e82 Merge pull request #223 from panr/dependabot/npm_and_yarn/ini-1.3.7
Bump ini from 1.3.5 to 1.3.7
2021-01-10 10:12:08 +01:00
8dc8e95747 Merge pull request #221 from markopolo123/master
Update USERS.md
2021-01-10 10:11:51 +01:00
fef6d938fd Merge branch 'master' into master 2021-01-10 10:11:31 +01:00
5092fa9a01 Merge pull request #226 from MCWertGaming/master
Update USERS.md
2021-01-10 10:10:58 +01:00
603898c30b Merge branch 'master' into master 2021-01-10 10:10:49 +01:00
a09a79ae4c Merge pull request #231 from sethsimmons/patch-1
Add sethsimmons.me to user’s list
2021-01-10 10:06:31 +01:00
3dd5709d70 Merge pull request #225 from robbienohra/feature/gist-syntax-highlighting
initial draft for gist syntax highlighting and table-layout modification
2021-01-10 10:06:15 +01:00
24522eeec5 Add sethsimmons.me to user’s list 2021-01-03 14:59:04 -05:00
ce5fa4c87c Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-31 22:46:35 -05:00
090d7b2f19 additonal cleanup 2020-12-31 22:46:26 -05:00
5f53ba6b43 Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-31 22:36:17 -05:00
3c914ffcf7 Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-31 22:36:06 -05:00
229a3ead62 stripped away gist theme highlighting; including only minor gist formatting fixes 2020-12-31 22:35:54 -05:00
5e218c0b43 Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-25 14:55:46 -05:00
b09f2a4a14 Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-25 14:55:28 -05:00
194a49d39e removed extraneous .idea folder accidentally commited 2020-12-25 14:55:19 -05:00
220f8e590e Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-25 14:51:53 -05:00
3c4a093dbd Merge branch 'feature/gist-syntax-highlighting' of github.com:robbienohra/hugo-theme-terminal into feature/gist-syntax-highlighting 2020-12-25 14:51:09 -05:00
0af87801a2 ran yarn build to update static assets 2020-12-25 14:49:35 -05:00
e446bafe36 ran yarn build to update static assets 2020-12-25 14:49:20 -05:00
e3e310b60d further alignment of gist syntax styling with terminal theme 2020-12-22 21:36:16 -05:00
febf17a03d corrected color of pl-c1 2020-12-22 20:40:32 -05:00
89f88607cc set font-size 1rem to align with theme; disabled font-style italic for comments to align with theme 2020-12-22 20:32:15 -05:00
13aa8e777e specified gist font family as fira code to align with theme 2020-12-22 20:27:17 -05:00
2ff00f859a bumped up gist fontsize 2020-12-22 20:25:26 -05:00
5f2dbe44e3 set gist border radius to zero to align with terminal theme 2020-12-22 18:34:27 -05:00
43a93652dd added gist border styling 2020-12-22 18:29:05 -05:00
58c2d90f94 reverted style.css file to master 2020-12-22 18:20:11 -05:00
547a17a25f reverted static styles.css; added preliminary gist stylesheet; added gist stylesheet import in assets main.css 2020-12-22 18:17:40 -05:00
3882fb160a Update USERS.md 2020-12-21 20:18:49 +00:00
b0a8f3bd43 initial draft for gist syntax highlighting and table-layout modification 2020-12-21 12:42:51 -05:00
f3317dc327 Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 03:53:27 +00:00
feee0b5a1e Update USERS.md
Adding website and name.
2020-12-07 13:04:59 +00:00
58cf550908 fix index preview section issue 2020-11-30 16:07:41 +01:00
30b7219a69 updated USERS.md 2020-11-24 14:42:44 +01:00
f0a5d6859e Add hidden.land to USERS.md 2020-11-20 19:16:12 +00:00
a5ef3ccc8b Add portfolio fork to COMMUNITY-FEATURES.md 2020-11-20 19:15:53 +00:00
c3f51a4c11 fix the viewport variables 2020-11-16 00:25:19 +01:00
60a15e7b38 show language selector only when there is more than one language 2020-11-16 00:12:25 +01:00
1e46e9cdaf fix diff duotone syntax color 2020-11-16 00:00:53 +01:00
29200fe841 Merge pull request #203 from rdnlsmith/pwsh-syntax-highlight
Add highlighting for PowerShell syntax
2020-11-15 23:47:24 +01:00
a6ca60fb7f Merge branch 'master' into pwsh-syntax-highlight 2020-11-15 23:47:11 +01:00
4d71df019b Merge pull request #202 from schoentoon/hide-menu-button-mobile
Hide the menu button on mobile if the menu is empty
2020-11-15 19:16:08 +01:00
480cb60150 fix Webpack config to output standalone languageSelector file 2020-11-15 18:45:23 +01:00
78002c5029 Update USERS.md 2020-11-04 09:28:19 +05:30
4d617361a3 Merge pull request #210 from yujixr/patch-1
Update USERS.md
2020-11-01 23:40:01 +01:00
825fde486a Update USERS.md
Add my site to this list
2020-11-01 23:34:51 +09:00
28c44c93b1 Merge pull request #208 from Mathie-Josh/patch-2
Update USERS.md
2020-11-01 00:26:10 +01:00
9c4f402c4e Update USERS.md
would like to add  my website to the list
2020-10-29 19:25:30 -04:00
12f249fd7c Merge pull request #207 from mpostument/mpostument-website
Added mpostument.com to USERS.MD
2020-10-27 15:28:42 +01:00
42eea54554 added mpostument website 2020-10-27 13:32:37 +00:00
223b7536ce Add highlighting for PowerShell syntax 2020-10-19 20:37:35 -04:00
cb61741202 Hide the menu button on mobile if the menu is empty 2020-10-17 23:06:50 +02:00
1756ef2edc duplicated website and name
sorry for the inconvenience. i just recently changed my github username, and i have noticed that there are already two instances of my own website in this list. i know it is just a small change, and i'm really sorry about it.
2020-09-29 22:30:58 +08:00
d0284fd691 Update USERS.md
My blog's domain(dongzhi.me) has changed to 'zhige.io',Thanks!
2020-09-29 22:07:10 +08:00
30d5681909 Merge pull request #182 from zchrykng/patch-1
Add defaults to post archetype
2020-09-28 10:07:19 +02:00
b572763b1f Merge pull request #194 from hkennyv/fix-typo
fix typo: duetone -> duotone
2020-09-28 08:53:46 +02:00
8e5c8d32dc fix typo: duetone -> duotone 2020-09-27 23:44:03 -07:00
bb344ddad7 update for brain dead copy/paste 2020-09-27 18:01:26 -04:00
08644e95c3 Allow html in figure caption. 2020-09-27 16:25:34 +02:00
6856982e4a Merge pull request #158 from pablodiazgutierrez/patch-1
Adding pablart.com
2020-09-27 16:19:55 +02:00
7ebb1d2776 Merge branch 'master' into patch-1 2020-09-27 16:19:44 +02:00
54f156d2d5 Merge pull request #171 from rossmckelvie/author-spacing
Fix spacing in lists between :: and Author
2020-09-27 16:13:17 +02:00
0f2f3fc6be Merge pull request #172 from rossmckelvie/apple-touch-icon
Modernize apple-touch-icon
2020-09-27 16:11:45 +02:00
4a2f49d34b Merge pull request #178 from luigifcruz/patch-1
Ensure text remains visible during webfont load
2020-09-27 16:11:06 +02:00
3523728e96 Merge pull request #179 from luigifcruz/patch-2
Improve Open Graph Tags
2020-09-27 16:07:25 +02:00
6a9b40ee12 Merge pull request #184 from CosmosAtlas/master
Fixed language selector not showing up on click
2020-09-27 16:02:44 +02:00
4a20b34d61 Update languageSelector code & other small fixes. 2020-09-27 16:01:39 +02:00
85113381ea Merge pull request #190 from bugfix123/patch-1
Update USERS.md
2020-09-27 14:40:09 +02:00
5685c97216 Merge branch 'master' into patch-1 2020-09-27 14:40:01 +02:00
a749f3e3e6 Merge pull request #189 from IsaEs/patch-1
Update USERS.md
2020-09-27 14:39:12 +02:00
b3437bc4dc Merge branch 'master' into patch-1 2020-09-27 14:39:01 +02:00
654784a5c1 Merge pull request #188 from Conight/patch-1
Update USERS.md
2020-09-27 14:37:54 +02:00
fae2e5f804 Merge branch 'master' into patch-1 2020-09-27 14:37:45 +02:00
57b7a9cfc2 Merge pull request #186 from CMiksche/patch-1
Update USERS.md
2020-09-27 14:37:11 +02:00
9f2097f3f0 Fix head partial. 2020-09-06 00:52:53 +02:00
a6f223f522 Webpack is back! 2020-09-06 00:31:23 +02:00
8710cb78b5 Update USERS.md
Thans you for your awesome theme!
2020-09-01 22:33:45 +08:00
d20f756c21 Update USERS.md 2020-08-29 22:09:53 +03:00
3a7d4ad376 Update USERS.md 2020-08-28 09:48:44 +08:00
c3b01fb9ce Update USERS.md 2020-08-25 23:23:32 +02:00
0aae2e9ff4 Update README and make the instruction more clear. 2020-08-24 16:13:23 +02:00
4ade714a77 Add defaults to post archetype 2020-08-15 17:27:53 -04:00
e679f013c1 Update theme.toml 2020-08-12 08:44:40 +02:00
eac693c55f Update README.md 2020-08-12 08:44:16 +02:00
cbe39af196 Changing Open Graph tags. 2020-08-09 21:52:51 -03:00
d75ae3fae8 Add font-swap to third-party font. 2020-08-09 20:09:03 -03:00
e6be81c664 Show a twitter card without any condition. 2020-08-10 00:13:56 +02:00
80fa802fa6 Merge pull request #177 from arminfriedl/master
Only add twitter card if twitter defined
2020-08-10 00:10:59 +02:00
fdd39516c3 Add COMMUNITY-FEATURES.md 2020-08-09 23:51:04 +02:00
b0e10e1dca Update README 2020-08-09 23:49:38 +02:00
e475eb88ef Update README.md 2020-08-09 23:49:38 +02:00
d644337551 Update README.md 2020-08-09 23:49:38 +02:00
c12cc903bd Update README. 2020-08-09 23:49:38 +02:00
9c6d80f31f Update README. 2020-08-09 23:49:38 +02:00
0759309c59 Webpack -> Hugo Pipes 2020-08-09 23:49:38 +02:00
55b6d6bf28 Only add twitter card if twitter defined
Removes warning
`WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.`
in newer hugo versions.
2020-08-09 08:17:04 +02:00
73373847d8 Merge pull request #169 from classx/patch-1
Update USERS.md
2020-08-09 00:22:36 +02:00
a4a96bea35 Merge branch 'master' into patch-1 2020-08-09 00:22:26 +02:00
33966cdf64 Merge pull request #168 from wbogocki/patch-1
Update USERS.md
2020-08-09 00:21:58 +02:00
6eca4d4826 Merge branch 'master' into patch-1 2020-08-09 00:21:45 +02:00
2d26fb1cf0 Merge pull request #167 from cindrmon/patch-2
Update USERS.md
2020-08-09 00:21:16 +02:00
8b264b8f51 apple-touch-icon-precomposed has been obsolete since iOS 7 2020-08-02 03:38:24 -05:00
983b497ec7 Fix spacing in lists between :: and Author 2020-07-31 22:59:42 -05:00
c80302a67d Merge pull request #170 from panr/dependabot/npm_and_yarn/elliptic-6.5.3
Bump elliptic from 6.5.2 to 6.5.3
2020-07-30 16:59:00 +02:00
087d77a0e6 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 13:54:06 +00:00
de6feb37b8 Update USERS.md 2020-07-30 13:34:38 +03:00
8404f40c2c Update USERS.md 2020-07-29 07:06:04 +08:00
1703c16b7f Update USERS.md 2020-07-27 11:41:51 +08:00
6404a48fe3 Merge pull request #161 from panr/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-19 17:45:47 +02:00
c5e838481d 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-16 21:32:29 +00:00
bc29541514 Merge pull request #160 from RaZnAr0k/patch-1
Update USERS.md
2020-07-10 17:40:55 +02:00
a020860014 Update USERS.md 2020-07-10 15:54:32 +08:00
2266ddfdd4 Adding pablart.com 2020-06-25 10:53:16 -07:00
5a0af3384d Fix accessibility issues and re-format templates 2020-06-18 00:40:31 +02:00
04d9175af8 Update styling 2020-06-18 00:21:19 +02:00
d450f681f0 Update README.md 2020-06-17 16:55:32 +02:00
0925abe5d8 Add terms.html template.
Add index.html template.
Fix list.html template.
2020-06-17 16:52:06 +02:00
b19e56a9d8 Merge pull request #150 from FizzyGalacticus/color-per-page
Add color-per-page support
2020-06-17 16:20:06 +02:00
b95bb4ac1d 'Newer/Older posts' label is now editable 2020-06-16 16:04:45 +02:00
ebbeedc014 Update README.md 2020-06-13 15:56:57 +02:00
9cbc71f5c3 Update collapsable code shortcode with isCollapsed prop 2020-06-13 09:51:22 +02:00
cf59a36030 Add a collapsable code shortcode 2020-06-10 00:16:28 +02:00
e7fd995590 Add color-per-page support, addresses #20 2020-05-30 17:23:49 -07:00
0a9b08f405 Fix styling for the index content 2020-05-29 00:50:00 +02:00
3ade628cfc Merge pull request #104 from nuno-silva/index
[WIP] Feature request: display index page content
2020-05-29 00:36:43 +02:00
8ace31592e Fix conflicts 2020-05-29 00:25:49 +02:00
7c77a416df Update 404 page 2020-05-29 00:22:42 +02:00
abab5c6dcd Update list styling 2020-05-29 00:22:42 +02:00
e2bb4583b1 Update USERS.md 2020-05-29 00:22:15 +02:00
2d0de8e812 Update USERS.md 2020-05-29 00:22:15 +02:00
72bdbc99ce remove pagnitaiton form sigle pages 2020-05-29 00:21:45 +02:00
3ef14f49b2 Update USERS.md 2020-05-29 00:21:45 +02:00
9271d6ebf9 Made changes which were causing builds to fail
I updated ne to not and now it builds perfectly on zeit and netlify
2020-05-29 00:21:45 +02:00
bcd630ad2e Hide header and pagination footer when printing
Since the header and pagination footer contain links that help a reader
navigate the site in a browser, they serve little value on a printed
copy.
2020-05-29 00:21:45 +02:00
ca115e308e Don't truncate content in Firefox print preview 2020-05-29 00:21:45 +02:00
4ef42a15b2 Implement multi-layer fallback
Cover image for anything that's not home (with fallback to favicon where cover is not set), and for anything that is home we use the favicon with fallback to the default color block

Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-05-29 00:21:45 +02:00
a52bef65ce Fix dependecies 2020-05-29 00:21:45 +02:00
583d6c51c3 Update USERS.md 2020-05-29 00:21:44 +02:00
0570ab80bb Use description for og:description 2020-05-29 00:21:16 +02:00
71618345a6 Updatr USERS.md 2020-05-29 00:21:16 +02:00
a53fe97fa1 Only populate og:image with cover if is set 2020-05-29 00:21:16 +02:00
c6a38c4b85 Add authorTwitter to post archetype
For Twitter cards
2020-05-29 00:21:16 +02:00
76f28fb7ba Update twitter:creator with cleaner/multiple fallbacks 2020-05-29 00:21:16 +02:00
3d067dea1b Only use isset check for twitter:site param
See https://gohugo.io/functions/isset/ - consistent with all other param checks in file
2020-05-29 00:21:16 +02:00
8b51d587d8 Separate twitter card params 2020-05-29 00:21:16 +02:00
b9cfb8d360 Tweak twitter card tags to cater for new params 2020-05-29 00:21:16 +02:00
87d7bf9ca1 Remove erroneous |
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-05-29 00:21:16 +02:00
639fd7f5b1 Amend twitter params 2020-05-29 00:21:16 +02:00
1dcf383f7d Twitter card + OG markup fixes
Remove Twitter card title, description and image (twitter cards fall back to OG markup for these elements).
Fix og:image url for non-home content
Conditionally show twitter:site tag
2020-05-29 00:21:16 +02:00
aaada1ee03 Include Twitter Card parameters 2020-05-29 00:21:16 +02:00
f2fd8fbc63 Fix twitter image url for non-home
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-05-29 00:21:16 +02:00
1d47e2102a Update USERS.md 2020-05-29 00:21:16 +02:00
d8c6eca445 Add owner as a param for Twitter Card (creator) 2020-05-29 00:21:16 +02:00
6a6a3ae75c Fix OpenGraph and Twitter meta tags
Title tags could be a little bloated as the subtitle was being appended. This should fall in to the description instead.
Also, if not looking at an individual post, there was no author being defined or site image.
2020-05-29 00:21:16 +02:00
d498a48f49 Update head.html 2020-05-29 00:21:16 +02:00
11074eeb07 [^] upd: Update 404 2020-05-29 00:21:16 +02:00
1a47dec920 [+] add: 404 Page 2020-05-29 00:21:16 +02:00
bb19133255 remove site.params.toctile from if condition 2020-05-29 00:18:15 +02:00
460409971b add conditional table of contents 2020-05-29 00:16:13 +02:00
67a5a0c82c Update 404 page 2020-05-29 00:07:58 +02:00
cf990015dd Merge pull request #51 from mochaaP/404-page
Add 404 Page
2020-05-28 23:57:19 +02:00
72840fc527 Update list styling 2020-05-28 20:06:21 +02:00
565186853e Merge pull request #27 from funayman/add-toc
Add conditional table of contents
2020-05-28 18:32:33 +02:00
58ba445c9f Merge pull request #142 from Hritik14/patch-1
Update USERS.md
2020-05-17 23:56:45 +02:00
7c754f2db2 Update USERS.md 2020-05-17 23:56:22 +02:00
d62c409035 Merge pull request #143 from return-to-libc/master
Update USERS.md
2020-05-17 23:55:37 +02:00
0afe80acc8 Update USERS.md 2020-05-01 02:10:29 +02:00
25b1edd1db Merge pull request #1 from panr/master
remove pagnitaiton form sigle pages
2020-05-01 02:00:19 +02:00
ca56210123 Merge pull request #141 from billyogat/single-pages
remove pagination form sigle pages
2020-04-27 18:45:34 +02:00
c5ee41ddae remove pagnitaiton form sigle pages 2020-04-27 09:14:14 -04:00
f5ef1950c8 Update USERS.md 2020-04-21 22:33:46 +05:30
e877df5bae Merge pull request #140 from brotherlymite/patch-1
Made changes which were causing builds to fail
2020-04-19 19:46:50 +02:00
1a181e05ae Made changes which were causing builds to fail
I updated ne to not and now it builds perfectly on zeit and netlify
2020-04-19 17:47:49 +05:30
10351a6b9d Merge pull request #136 from knightjoel/issue/135
Don't truncate content in Firefox print preview
2020-04-14 01:47:07 +02:00
0efdbb73f4 Merge pull request #137 from knightjoel/pr/cleaner_print
Hide header and pagination footer when printing
2020-04-14 01:38:39 +02:00
3a0f200a91 Hide header and pagination footer when printing
Since the header and pagination footer contain links that help a reader
navigate the site in a browser, they serve little value on a printed
copy.
2020-04-05 15:22:18 -06:00
d56bb5398e Don't truncate content in Firefox print preview 2020-04-05 15:19:05 -06:00
e70a99243e Merge pull request #128 from willstocks/master
Only populate og:image with cover if is set
2020-04-04 17:21:37 +02:00
cd5a89ba3a Implement multi-layer fallback
Cover image for anything that's not home (with fallback to favicon where cover is not set), and for anything that is home we use the favicon with fallback to the default color block

Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-04-03 10:59:22 +01:00
f8ce76b7de Merge pull request #132 from nebloc/master
Use description for og:description
2020-04-01 19:50:07 +02:00
944b03d983 Merge pull request #131 from Nanda-G/master
Update USERS.md
2020-04-01 19:48:25 +02:00
f8eb2e304f Merge branch 'master' into master 2020-04-01 19:48:17 +02:00
c21569654e Merge pull request #134 from BGameiro2000/patch-1
Update USERS.md
2020-04-01 19:47:39 +02:00
ce71263767 Fix dependecies 2020-04-01 19:47:02 +02:00
5f72bf78e9 Update USERS.md 2020-03-31 21:54:35 +01:00
9143918f5a Use description for og:description 2020-03-29 16:07:41 +01:00
faf59f6d5d Updatr USERS.md 2020-03-29 16:27:33 +05:30
18af67974a Only populate og:image with cover if is set 2020-03-23 08:47:31 +00:00
bd1f2c75d0 Merge pull request #126 from willstocks/master
Tweak OpenGraph and Twitter meta tags
2020-03-20 18:15:30 +01:00
801db391a8 Add authorTwitter to post archetype
For Twitter cards
2020-03-20 10:53:10 +00:00
9d64a69092 Update twitter:creator with cleaner/multiple fallbacks 2020-03-20 09:21:20 +00:00
5ede34df2c Only use isset check for twitter:site param
See https://gohugo.io/functions/isset/ - consistent with all other param checks in file
2020-03-18 11:24:24 +00:00
6f5e42002e Separate twitter card params 2020-03-18 11:20:39 +00:00
b39a2e93b7 Tweak twitter card tags to cater for new params 2020-03-18 11:20:14 +00:00
22098b16d9 Remove erroneous |
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-03-18 11:12:36 +00:00
a89e972309 Amend twitter params 2020-03-16 11:07:04 +00:00
a6ae1efab1 Twitter card + OG markup fixes
Remove Twitter card title, description and image (twitter cards fall back to OG markup for these elements).
Fix og:image url for non-home content
Conditionally show twitter:site tag
2020-03-16 11:05:35 +00:00
1b00e7e317 Include Twitter Card parameters 2020-03-16 11:01:48 +00:00
7f0bda3358 Fix twitter image url for non-home
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-03-16 10:52:14 +00:00
0b0c32c626 Change the style of the last update time 2020-03-11 23:05:58 +08:00
145a758159 Merge remote-tracking branch 'upstream/master' 2020-03-10 22:26:40 +08:00
a3f51f61c7 Update USERS.md 2020-03-10 13:57:17 +00:00
6ed6715b5b Add owner as a param for Twitter Card (creator) 2020-03-10 12:28:08 +00:00
b226e1dc8c Fix OpenGraph and Twitter meta tags
Title tags could be a little bloated as the subtitle was being appended. This should fall in to the description instead.
Also, if not looking at an individual post, there was no author being defined or site image.
2020-03-10 12:08:33 +00:00
6ef1bb1686 Update head.html 2020-03-10 12:03:11 +00:00
0dc364f3e2 Merge pull request #113 from knightjoel/issue/26
Import shortcode to activate PrismJS plugins
2020-02-01 13:23:16 +01:00
0b541b6f54 Merge pull request #124 from superusercode/patch-1
fix spelling error in example site
2020-02-01 13:07:07 +01:00
6c186bd043 fix spelling error in example 2020-01-29 00:33:04 -05:00
8ac2551ee2 Merge pull request #123 from oberbaum/patch-1
Update USERS.md
2020-01-28 08:53:21 +01:00
172708334f Update USERS.md 2020-01-27 23:27:42 +01:00
a1c203cb17 Apply suggestions from code review
Co-Authored-By: Radek Kozie. <radoslaw.koziel@gmail.com>
2020-01-26 14:53:18 -07:00
92cc5bcd23 Apply suggestions from code review
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-01-25 21:18:08 -07:00
7c5c62e630 A little fix for anchor appearance 2020-01-24 08:21:30 +01:00
49c8679b6c Merge pull request #120 from sophiabrandt/add-anchor-links
[feature] add anchor icon to heading anchors
2020-01-24 08:18:40 +01:00
ff3aa2316b improve: add fixes/suggestions from panr 2020-01-23 21:04:09 +01:00
e8fdb4e084 Update layouts/_default/single.html
Co-Authored-By: Radek Kozieł <radoslaw.koziel@gmail.com>
2020-01-23 20:56:58 +01:00
2ab90a708e merge latest upstream 2020-01-23 20:50:13 +01:00
0ff712efdb Update yarn.lock 2020-01-23 19:59:56 +01:00
98ab575126 Merge pull request #116 from wooseopkim/feature/google-analytics
Add Google Analytics template
2020-01-23 19:37:43 +01:00
e61ad0ef07 Merge pull request #114 from dseverboven/patch-1
Update USERS.md
2020-01-23 19:36:25 +01:00
4d7a3c2db3 Merge branch 'master' into patch-1 2020-01-23 19:36:10 +01:00
b6a5436f40 Merge pull request #119 from sophiabrandt/patch-1
add new user
2020-01-23 19:33:30 +01:00
4f23e52472 Merge branch 'master' into patch-1 2020-01-23 19:33:00 +01:00
d30e8a50b0 Merge pull request #122 from qbunt/master
Added qbunt.com to USERS.md
2020-01-23 18:56:08 +01:00
62531797e7 Added qbunt.com to USERS.md
Thanks for the theme, it's been amazing!
2020-01-22 08:58:55 -05:00
20ce063397 Upload compiled style.css after line-numbers changes 2020-01-22 08:46:35 +01:00
2fcbefa09f Fix line numbers alignment 2020-01-21 08:35:11 +01:00
2bb3d3d49b Fix line-numbers and highlight styling 2020-01-20 00:02:26 +01:00
3f6db97f02 Update README.md 2020-01-18 20:13:29 +01:00
c567dd61f9 Fix buymeacoffee buttton in README 2020-01-18 20:13:03 +01:00
c6c3eb8d54 Update README.md 2020-01-18 19:41:49 +01:00
6c467105a2 Add sponsoring option and fix typo 2020-01-18 19:38:49 +01:00
3aeb73a422 add anchor icon to heading anchors 2020-01-17 13:11:41 +01:00
4b05a64b5a add new user
add www.rockyourcode.com
2020-01-17 07:55:23 +01:00
fa95894458 Add Google Analytics template 2020-01-15 22:41:43 +09:00
9e38f9ec99 Update USERS.md
added https://dawsonverboven.com/
2020-01-08 21:39:06 -08:00
ce97879d6c Import shortcode to activate PrismJS plugins
The shortcode takes named parameters that are relevant to the PrismJS
plugins that Terminal bundles.

- lang: the language contained in the code block
- line: the line number(s) to highlight
- line-numbers: displays line numbers in the margin
- command-line: activates the command-line plugin which modifies the
output to show a command line
- user: the username to display in the prompt (used with the command-line
parameter)
- host: the hostname to display in the prompt (used with the
command-line parameter)
- prompt: override the default prompt (used with the command-line
parameter)
- output: specifies which line(s) contain CLI output (used with the
command-line parameter)

Example:

{{< prismjs lang="bash" line="1,10-13" line-numbers="true"
command-line="true" host="jump1" user="joel" output="2-9" >}}
2020-01-08 21:43:39 -07:00
48233660d8 Merge pull request #111 from turbo/patch-1
Add highlighting to README/config
2020-01-06 16:21:42 +01:00
d2dc6b7bb9 Add highlighting to README/config 2020-01-06 13:34:17 +01:00
ec262730ac Fix/Change code block styling 2020-01-06 09:31:18 +01:00
7ac0deff87 Add param to set default size for headings 2020-01-05 10:44:58 +01:00
ee93a3dcd5 Merge pull request #106 from andreacaravano/patch-1
Update USERS.md
2019-12-29 18:57:51 +01:00
8d2bb3cda7 Update USERS.md 2019-12-22 19:41:07 +01:00
10eae069d0 display index page content 2019-12-13 16:32:14 +00:00
2a34760541 Update USERS.md 2019-12-01 09:48:29 +01:00
791799e1d6 Merge pull request #103 from jTanG0506/patch-1
Update USERS.md
2019-12-01 09:47:52 +01:00
f4be21a1c3 Update USERS.md 2019-12-01 00:10:33 +00:00
ec1af25439 Merge pull request #100 from naxxfish/master
Add naxxfish.net to USERS.md
2019-11-10 09:24:13 +01:00
5786d01c09 build css 2019-11-06 23:02:00 +08:00
c297ba66fc Change the showLastUpdated field in README.md to the default value 2019-11-06 22:54:24 +08:00
ddd24c6c98 Merge branch 'master' of https://github.com/panr/hugo-theme-terminal 2019-11-06 22:46:47 +08:00
5d4b70d3a7 Add naxxfish.net to USERS.md 2019-11-03 15:56:07 +00:00
2ea0eeeb7a Merge pull request #93 from jpanther/style-fixes
Fix unused blockquote style
2019-11-03 10:06:37 +01:00
fe147db973 Merge pull request #90 from eidoom/patch-1
Update USERS.md
2019-11-03 09:53:54 +01:00
69bf17a9ad Merge branch 'master' into patch-1 2019-11-03 09:53:46 +01:00
b9c70a23ac Merge pull request #95 from schachem/patch-1
Update USERS.md
2019-11-03 09:53:16 +01:00
0d3e1e62ab Merge branch 'master' into patch-1 2019-11-03 09:53:09 +01:00
7b5dfbae03 Merge pull request #98 from kosmonavtika/patch-1
add lunar.computer
2019-11-03 09:52:33 +01:00
e687203739 add lunar.computer 2019-10-31 22:47:46 +01:00
64dea526de Update USERS.md 2019-10-27 22:04:47 +01:00
1c40487df6 Remove unused blockquote style 2019-10-25 09:38:15 +11:00
dc93a293fd Merge pull request #92 from panr/dependabot/npm_and_yarn/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2
2019-10-23 11:01:50 +02:00
cedfaf6c5c 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-10-23 08:58:23 +00:00
f8fa62605d Merge pull request #91 from stanleynguyen/patch-1
Update USERS.md
2019-10-23 10:57:08 +02:00
53c70531d5 Update USERS.md 2019-10-23 11:57:24 +08:00
9d8b8d51fa Update USERS.md 2019-10-15 19:18:57 +01:00
213a39bcad Add last updated display, params.showLastUpdated and update README.md 2019-10-04 22:41:43 +08:00
5f9bb738cd Merge pull request #83 from amine250/patch-1
Update USERS.md
2019-09-24 09:35:09 +02:00
9a41d82cb8 Update USERS.md
Add zaine.me website
2019-09-16 01:47:48 +02:00
a81cf2dc29 Fix post width 2019-09-10 09:29:14 +02:00
fa71c00418 Merge pull request #82 from kongdivin/fix-page-navigation
Fix page navigation buttons
2019-09-10 09:26:00 +02:00
e40996148a Revert "Fix post list width"
This reverts commit 7652ceaa86.
2019-09-10 09:25:49 +02:00
c3ea6296af Merge pull request #80 from rpartha/rpartha-add-user
Update USERS.md
2019-09-10 09:22:52 +02:00
7652ceaa86 Fix post list width 2019-09-10 09:21:50 +02:00
2805450761 Fix page navigation buttons
Fixes panr/hugo-theme-terminal#81
2019-09-07 16:44:23 -07:00
5057fd5521 Update theme.toml 2019-08-30 09:07:13 +02:00
99513dfa64 Update USERS.md 2019-08-29 22:55:07 -04:00
1d9856db28 [^] upd: Update 404 2019-08-28 15:37:08 +08:00
fbcf98ae95 Make the font a little more dense 2019-08-25 10:08:21 +02:00
060587ba38 Fix list.html 2019-08-25 09:38:23 +02:00
8d8e93fa8d Merge pull request #72 from MoritzFago/fix-atribution
Fix attribution if copyright is set by user.
2019-08-24 08:06:18 +02:00
4a4a820997 Merge pull request #73 from eldraco19/patch-1
Update USERS.md
2019-08-24 08:03:18 +02:00
f06332421c Merge pull request #74 from wilsandbrink/master
fixes broken page list
2019-08-14 23:00:51 +02:00
3d20322e3a fixes broken page list 2019-08-14 22:08:50 +02:00
06b8259668 Update README.md 2019-08-13 16:41:24 +02:00
2307f19909 Merge pull request #33 from Rinma/add-language-selector
Added option for language selector
2019-08-13 16:40:04 +02:00
63b2c69f85 Remove unused css classes 2019-08-13 13:16:18 +02:00
28dd0fadf9 Use ul instead of div and BEM naming 2019-08-13 08:44:40 +02:00
270a135fca Add body listener for trigger closing language box 2019-08-13 08:44:06 +02:00
d2a00d0517 Update USERS.md 2019-08-11 15:20:53 +05:30
2bb48d5952 Fix attribution if copyright is set by user. 2019-08-09 01:44:24 +02:00
24e901f460 Add keywords support to single page 2019-08-08 21:56:25 +02:00
9c25182806 Merge pull request #71 from b0wter/master
Fixed broken link to post archtype.
2019-08-03 23:15:16 +02:00
209f36287f Merge pull request #70 from nikodemusk/patch-1
Added my site to the list of Terminal users
2019-08-03 23:14:36 +02:00
05da53db3a Merge pull request #68 from sagarladla/patch-1
Update USERS.md
2019-08-03 23:10:32 +02:00
4739739afc Merge branch 'master' into patch-1 2019-08-03 23:10:24 +02:00
a13e8a1a7e Merge pull request #62 from sunshinekitty/patch-1
Update USERS.md
2019-08-03 23:09:52 +02:00
974dec46bb Fixed broken link to post archtype. 2019-07-27 21:23:53 +02:00
c4086a4f14 Added my site to the list of Terminal users 2019-07-25 07:22:09 +02:00
924a8c48a5 Update USERS.md 2019-07-21 03:50:09 +05:30
eb2d4eacff Merge pull request #64 from panr/dependabot/npm_and_yarn/lodash-4.17.14
Bump lodash from 4.17.11 to 4.17.14
2019-07-11 12:31:21 +02:00
f027e3ff0d Merge pull request #65 from panr/dependabot/npm_and_yarn/lodash.template-4.5.0
Bump lodash.template from 4.4.0 to 4.5.0
2019-07-11 12:31:11 +02:00
52c6c4c7a8 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:13:34 +00:00
35da736903 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:13:29 +00:00
86bfa30e14 Merge pull request #63 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:32:45 +02:00
056f7665d7 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:32:33 +00:00
6c2ad3a669 Merge pull request #61 from fengsi/patch-1
OCD cleanup
2019-07-08 17:03:58 +02:00
950e9a63e4 Update USERS.md
add my blog :-)
2019-07-07 15:09:46 -06:00
0514e772ac OCD cleanup 2019-06-27 11:51:56 -07:00
016f54c162 Merge pull request #59 from Gazzini/patch-1
adds johngazzini.com to Users.md
2019-06-25 20:16:51 +02:00
c2e83bf417 adds johngazzini.com to Users.md 2019-06-22 23:58:05 -05:00
4b147d17d3 Merge pull request #58 from fengsi/patch-1
Update USERS.md
2019-06-20 23:45:03 +02:00
899bc2ab47 Merge branch 'master' into patch-1 2019-06-20 23:44:55 +02:00
eb8cd5216e Merge pull request #57 from ben-on-vms/master
Update USERS.md
2019-06-20 23:43:44 +02:00
e59e0170c3 Update USERS.md 2019-06-20 12:00:01 -07:00
85f01b1cc2 Update USERS.md 2019-06-20 19:12:31 +01:00
02238f6e0f Merge pull request #53 from mserajnik/custom-css-link
Only insert custom CSS link if the file exists
2019-06-15 17:00:16 +02:00
79b040a3ec Only insert custom CSS link if the file exists 2019-06-15 15:55:40 +02:00
30410267ec Merge pull request #52 from Zhai2333/date-fix
Fix 0001-01-01 when date is none.
2019-06-14 19:05:06 +02:00
786243dc1d [*] fix: 0001-01-01 when doesn't provide a date 2019-06-09 17:59:20 +08:00
fda8cb9d20 [+] add: 404 Page 2019-06-09 17:52:52 +08:00
ae19c84baf Update packages 2019-06-08 12:47:07 +02:00
83381f44e1 Update Gitignore 2019-06-08 13:57:55 +08:00
5091a93ea2 Merge pull request #35 from Rinma/lang-sensitiv-tags
made tag link language-sensitiv
2019-05-24 09:51:47 +02:00
f7b4d6c934 Fix archetype name #42 2019-05-24 09:43:38 +02:00
64b59a4e59 Fix RSS links #41 2019-05-24 09:36:06 +02:00
2781f35b83 Merge pull request #40 from vaibhav-y/patch-1
Add calloc.net to USERS.md
2019-05-21 20:32:45 +02:00
26c5ebfc20 Merge branch 'master' into patch-1 2019-05-21 20:32:37 +02:00
39407e9dc1 Merge pull request #44 from Pneumaticat/patch-1
Add potatofrom.space to USERS.md
2019-05-21 20:32:07 +02:00
46645d2782 Merge branch 'master' into patch-1 2019-05-21 20:31:58 +02:00
a69547e06e Merge pull request #45 from horochx/patch-1
Update USERS.md
2019-05-21 20:30:36 +02:00
f1ff5d0c66 Update USERS.md 2019-05-19 14:39:01 +08:00
4c9b24ea14 Add potatofrom.space to USERS.md 2019-05-12 11:14:06 -04:00
57ab52dd84 Add @vaibhav-y to USERS.md 2019-04-29 22:10:52 -04:00
bc9b801e5f made tag link language-sensitiv 2019-04-05 08:18:21 +02:00
a28c65d411 Update USERS.md 2019-04-03 00:11:03 +02:00
f901435935 Merge pull request #34 from mike-alex/patch-1
Update USERS.md
2019-04-03 00:10:46 +02:00
108a966b12 Update USERS.md
add my blog with the theme terminal
2019-04-02 00:13:19 -06:00
10b545bb86 Added option for language selector
Implemented a language selector submenu that can be turned on or off by a config value.

Resolves: panr/hugo-theme-terminal#31
2019-04-01 21:44:39 +02:00
3f58f9834f Merge pull request #32 from devmaster64/patch-1
Add devmaster64's blog to users.md
2019-04-01 17:48:47 +02:00
c2c43bb34a Add devmaster64's blog to users.md 2019-04-01 20:10:28 +05:30
dbeb0f7c98 Merge branch 'master' into add-toc 2019-03-31 19:42:05 +02:00
bacfb1a95a Remove unnecessary code 2019-03-31 19:38:11 +02:00
6bf52c0f77 Update post.md 2019-03-31 19:31:34 +02:00
bccf419102 Update README.md 2019-03-31 19:30:56 +02:00
e938e972b6 Fix format 2019-03-31 19:28:38 +02:00
13e0079b23 Add post archetype 2019-03-31 19:24:16 +02:00
50e36736c6 Allow to show full content on list 2019-03-31 19:18:43 +02:00
034efcb463 remove unnecessary if statement 2019-03-25 13:12:59 +09:00
5efec67714 remove site.params.toctile from if condition 2019-03-25 12:00:41 +09:00
5987519fd6 add global, local, default TOC 2019-03-25 11:56:59 +09:00
3cf9638af1 add conditional table of contents 2019-03-21 08:40:07 +09:00
bca791fe8c Fix menuMore null error 2019-03-17 17:49:06 +01:00
54e5006109 Merge pull request #19 from RPGillespie6/make_favicon_configurable
Make favicon configurable
2019-03-16 18:00:27 +01:00
27462e1893 Make favicon configurable
Fix #18
2019-03-13 18:56:57 -04:00
9928ada9ad Update README.md 2019-03-06 01:13:31 +01:00
ba816147f5 Update README.md 2019-03-06 01:03:29 +01:00
e55014bdbc Create USERS.md 2019-03-06 01:02:32 +01:00
b484629dc5 Update README.md 2019-03-06 01:01:50 +01:00
0d246fc9f1 Update README.md 2019-03-06 01:00:08 +01:00
efad1bff26 Merge pull request #16 from kalbasit/hugo-theme-terminal_allow-custom-javascript
render an extended placeholder for head and footer
2019-03-06 00:49:59 +01:00
00296f07b4 rename the partials to extended_head and extended_footer 2019-03-04 14:20:48 -08:00
c375d4ce5d remove the example header and footer 2019-03-04 14:18:30 -08:00
880c995489 Rebuild theme 2019-03-02 01:27:19 +01:00
4eedc6a39a Update config.toml 2019-03-02 01:17:33 +01:00
c8f251ce9c Update README.md 2019-03-02 01:16:46 +01:00
7ad1783021 Merge pull request #1 from newhinton/master
Add ability to center the content via Parameter
2019-03-02 01:13:49 +01:00
70cf7406fd Update README.md 2019-03-02 01:13:27 +01:00
8fe7d51b94 Merge branch 'master' into master 2019-02-28 14:57:20 +01:00
4b959d0aa6 partials/footer: render a placeholder custom_footer.html 2019-02-26 00:38:49 -08:00
1cf2b933a3 partials/head: render a placeholder custom_head.html 2019-02-26 00:35:27 -08:00
88ed5a0bef Updated CSS and refined width-logic 2019-02-26 09:30:10 +01:00
487876daf1 Merge pull request #15 from stav/master
Use correct stylesheet name
2019-02-26 00:18:32 +01:00
20b48f398e Use correct stylesheet name 2019-02-25 15:13:28 -05:00
077fade121 Merge pull request #12 from andreas-h/patch-1
Fix typo in comment
2019-02-24 18:02:57 +01:00
bb7ad5779f Fix typo in comment 2019-02-24 13:53:19 +01:00
7cb7fc284c Update README.md
Co-Authored-By: newhinton <newhinton@users.noreply.github.com>
2019-02-17 11:10:21 +01:00
d005155fa5 Add comment partial 2019-02-15 00:38:45 +01:00
51d1b12820 Merge pull request #7 from sgaduuw/trailingslash
Add a trailing slash to URLs generated for tags
2019-02-14 02:08:56 +01:00
d4f8fea87c Add a trailing slash to URLs generated for tags 2019-02-13 13:00:20 +01:00
b746766d0e Merge pull request #5 from ffluegel/patch-1
Removed inline style
2019-02-11 10:11:02 +01:00
4e7ac981d2 Fixes 2019-02-09 09:11:56 +01:00
7a5bad13b3 Update style.css 2019-02-09 01:22:16 +01:00
ec98c7bc11 Update header.css 2019-02-09 01:19:37 +01:00
4f399128b2 Removed inline style 2019-02-09 01:07:00 +01:00
db29d33536 updated readme
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
2019-02-03 16:01:43 +01:00
0d2a41242a added parameter for centered view
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
2019-02-03 16:00:13 +01:00
82 changed files with 5820 additions and 5153 deletions

91
.gitignore vendored
View File

@ -1 +1,90 @@
node_modules # Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# End of https://www.gitignore.io/api/node

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

@ -2,7 +2,6 @@ const url = require("postcss-url");
const imports = require("postcss-import"); const imports = require("postcss-import");
const nested = require("postcss-nested"); const nested = require("postcss-nested");
const postCSSPresetEnv = require("postcss-preset-env"); const postCSSPresetEnv = require("postcss-preset-env");
const browsers = require("browserslist");
const cssnano = require("cssnano"); const cssnano = require("cssnano");
const color = require("postcss-color-mod-function"); const color = require("postcss-color-mod-function");
const mixins = require("postcss-mixins"); const mixins = require("postcss-mixins");

View File

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

25
COMMUNITY-FEATURES.md Normal file
View File

@ -0,0 +1,25 @@
# 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.
-->
- **Portfolio** (https://github.com/Louisload/hugo-theme-terminal-portfolio)
- Allows you to create a portfolio page (or several). Supports icons and subsections.
- Luís Rodrigues Alves (Louisload), a game dev and musician.
- **Single Page Website** (https://github.com/justinnuwin/hugo-theme-terminal)
- A layout where the homepage can render lists of pages and the navigation menu can link to sections on the homepage.
- Justin Nguyen, software and hardware developer.

219
README.md
View File

@ -4,31 +4,78 @@
### DEMO - https://hugo-terminal.now.sh/ ### DEMO - https://hugo-terminal.now.sh/
---
- [Features](#features)
- [Built-in shortcodes](#built-in-shortcodes)
- [Code highlighting](#code-highlighting)
- [How to start](#how-to-start)
- [How to run your site](#how-to-run-your-site)
- [How to configure](#how-to-configure)
- [Post archetype](#post-archetype)
- [Add-ons](#add-ons)
- [How to (safely) edit the theme](#how-to-edit)
- [Found a bug?](#bug)
- [New cool idea or feature](#feature)
- [Terminal theme user?](#terminal-theme-user)
- [Licence](#licence)
## Features ## Features
- **5 duetone themes**, depending on your preferences (orange is default, red, blue, green, pink) - **5 duotone themes**, depending on your preferences (orange is default, red, blue, green, pink)
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous! - [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
- **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com) - **really nice duotone**, custom syntax highlighting based on [**PrismJS**](https://prismjs.com)
- fully responsive - fully responsive
#### Built-in shortcodes #### Built-in shortcodes
- **`image`** (prop required: **`src`**; props optional: **`alt`**, **`position`** (**left** is default | center | right), **`style`**) - **`image`** (props 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;" >}}` - e.g.
- **`figure`** (same as `image`, plus few optional props: **`caption`**, **`captionPosition`** (left | **center** is default | right), **`captionStyle`** ```go
- eg: `{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}}` {{< 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`**)
- e.g.
```go
{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}}
```
- **`code`** (props required: **`language`**; props optional: **`title`**, **`id`**, **`expand`** (default "△"), **`collapse`** (default "▽"), **`isCollapsed`**)
- e.g.
```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 #### Code highlighting
A custom syntax highlighting based on PrismJS. All you need to do is to wrap you code like this: A custom syntax highlighting based on PrismJS. All you need to do is to wrap you code like this:
<pre> ````
```html ```html
// your code here // 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. **Supported languages**: actionscript, apacheconf, applescript, bash, c, clike, cmake, coffeescript, cpp, csharp, csp, css, css-extras, diff, django, docker, elixir, elm, erlang, flow, fsharp, git, go, graphql, haml, handlebars, haskell, http, java, javascript, json, jsx, kotlin, latex, less, llvm, makefile, markdown, markup, markup-templating, nasm, objectivec, ocaml, perl, php, php-extras, powershell, processing, pug, python, r, reason, ruby, rust, sass, scala, scheme, scss, sql, stylus, swift, textile, toml, tsx, twig, typescript, vim, visual-basic, wasm, yaml.
## How to start ## How to start
@ -37,42 +84,109 @@ You can download the theme manually by going to [https://github.com/panr/hugo-th
You can also clone it directly to your Hugo folder: You can also clone it directly to your Hugo folder:
``` ```
$ git clone https://github.com/panr/hugo-theme-terminal.git themes/terminal git clone -b webpack https://github.com/panr/hugo-theme-terminal.git themes/terminal
``` ```
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. You can also include it as a git submodule: 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. You can also include it as a git submodule:
``` ```
$ git submodule add https://github.com/panr/hugo-theme-terminal.git themes/terminal git submodule add -b webpack -f https://github.com/panr/hugo-theme-terminal.git themes/terminal
``` ```
⚠️ **The theme needs at least Hugo version 0.74.x**.
## How to run your site
If you installed all needed `npm` dependencies, then you can run:
```
hugo server -t terminal
```
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 configure ## How to configure
The theme doesn't require any advanced configuration. Just copy: The theme doesn't require any advanced configuration. Just copy:
``` ```toml
baseurl = "/" baseurl = "/"
languageCode = "en-us" languageCode = "en-us"
theme = "terminal" theme = "terminal"
paginate = 5 paginate = 5
[params] [params]
# dir name of your blog content (default is `content/posts`) # dir name of your main content (default is `content/posts`).
# the list of set content will show up on your index page (baseurl).
contentTypeName = "posts" contentTypeName = "posts"
# ["orange", "blue", "red", "green", "pink"] # ["orange", "blue", "red", "green", "pink"]
themeColor = "orange" themeColor = "orange"
# if you set this to 0, only submenu trigger will be visible # if you set this to 0, only submenu trigger will be visible
showMenuItems = 2 showMenuItems = 2
# show selector to switch language
showLanguageSelector = false
# set theme to full screen width
fullWidthTheme = false
# center theme with default width
centerTheme = false
# if your resource directory contains an image called `cover.(jpg|png|webp)`,
# then the file will be used as a cover automatically.
# With this option you don't have to put the `cover` param in a front-matter.
autoCover = true
# set post to show the last updated
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
showLastUpdated = false
# set a custom favicon (default is a `themeColor` square)
# favicon = "favicon.ico"
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
# updatedDatePrefix = "Updated"
# set all headings to their default size (depending on browser settings)
# oneHeadingSize = true # default
# whether to show a page's estimated reading time
# readingTime = false # default
# whether to show a table of contents
# can be overridden in a page's front-matter
# Toc = false # default
# set title for the table of contents
# can be overridden in a page's front-matter
# TocTitle = "Table of Contents" # default
[params.twitter]
# set Twitter handles for Twitter cards
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution
# do not include @
creator = ""
site = ""
[languages] [languages]
[languages.en] [languages.en]
languageName = "English"
title = "Terminal" title = "Terminal"
subtitle = "A simple, retro theme for Hugo" subtitle = "A simple, retro theme for Hugo"
owner = ""
keywords = "" keywords = ""
copyright = "" copyright = ""
menuMore = "Show more" menuMore = "Show more"
readMore = "Read more" readMore = "Read more"
readOtherPosts = "Read other posts" readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
missingContentMessage = "Page not found..."
missingBackButtonLabel = "Back to home page"
[languages.en.params.logo] [languages.en.params.logo]
logoText = "Terminal" logoText = "Terminal"
@ -93,40 +207,77 @@ to `config.toml` file in your Hugo root directory and change params fields. In c
**NOTE:** Please keep in mind that currently `main menu` doesn't support nesting. **NOTE:** Please keep in mind that currently `main menu` doesn't support nesting.
## How to run your site ## Post archetype
From your Hugo root directory run: See the default `post` file params supported by the theme — https://github.com/panr/hugo-theme-terminal/blob/master/archetypes/posts.md
``` ## Add-ons
$ hugo server -t terminal
- **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.
- **Extended Head** — please take a look at `layouts/partials/extended_head.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/extended_head.html
- **Extended Footer** — please take a look at `layouts/partials/extended_footer.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/extended_footer.html
## How to (safely) edit the theme <a id="how-to-edit" />
If 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.
To change something directly in the theme, you have to go to `themes/terminal` and modify the files.
First, you need to install Node dependencies. To do so, go to the theme directory (from your Hugo root directory):
```bash
cd themes/terminal
``` ```
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. then run:
## How to edit the theme ```bash
npm install
If you have to override some of the styles, **you can do this easily** by adding `static/styles.css` in your root directory and point things you want to change. npm i yarn
yarn
Otherwise, if you really want to edit the theme, you need to install Node dependencies. To do so, go to the theme directory (from your Hugo root directory):
```
$ cd themes/terminal
``` ```
and then run: After you modified the files you can run webpack in watch mode:
``` ```bash
$ npm install yarn dev
$ npm i yarn
$ yarn
``` ```
## How to contribute or rebuild theme
If you spot any bugs, please use [Issue Tracker](https://github.com/panr/hugo-theme-terminal/issues) or if you want to add a new feature directly please create a new [Pull Request](https://github.com/panr/hugo-theme-terminal/pulls). ```bash
yarn build
```
## Licence To see the changes (remember to restart `hugo server`).
Copyright © 2019 Radosław Kozieł ([@panr](https://twitter.com/panr)) ## Found a bug? <a id="bug" />
If you spot any bugs, please use [Issue Tracker](https://github.com/panr/hugo-theme-terminal/issues) or create a new [Pull Request](https://github.com/panr/hugo-theme-terminal/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! 🤘
## Terminal 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-terminal/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-terminal/blob/master/LICENSE.md) for additional licensing information. The theme is released under the MIT License. Check the [original theme license](https://github.com/panr/hugo-theme-terminal/blob/master/LICENSE.md) for additional licensing information.

73
USERS.md Normal file
View File

@ -0,0 +1,73 @@
# Meet the users of Terminal theme!
- https://xicode.se **magistern** (Teacher)
- https://devmaster64.com **devmaster64** (Software Developer)
- https://mickie1.gitlab.io/blog/ **mickie** (Engineer)
- https://calloc.net **Vaibhav Yenamandra** (Software Engineer)
- https://potatofrom.space **Kevin Liu** (Software)
- https://horochx.org **horochx** (Software Developer)
- https://feng.si **Si Feng** (Software Engineer)
- https://ben-on-vms.com **Benedikt Frenzel** (Technical Support Engineer)
- https://johngazzini.com **John Gazzini** (Software Engineer)
- https://geekx.tech/ **Sagar Ladla** (Student Developer & Cyber Security Specialist)
- https://tears.io/ **Alex** (SRE)
- https://ayushkarn.me/ **Ayush Karn** (Student Developer)
- https://ssgram.dev **Ramaseshan Parthasarathy** (Software Developer)
- https://zaine.me **Amine Zaine** (Cloud Engineer)
- https://notes.dmaitre.phyip3.dur.ac.uk/computing-club/ **Ryan Moodie** (Physics PhD student)
- https://thecodecousins.com **Stanley Nguyen** (Software Engineer) & **Hoang Do** (Software & IoT Engineer)
- https://schacherbauer.dev **Markus Schacherbauer** (Student Developer)
- https://rinma.dev **Marvin Dalheimer** (Software Developer)
- https://lunar.computer **Lunar Computer** (DevOps Engineer)
- https://naxxfish.net **Chris Roberts** (Broadcast Systems Engineer)
- https://security.jtang.dev **Jonathan Tang** (Student & Software Engineer)
- https://andreacaravano.net **Andrea Caravano** (Student)
- https://dawsonverboven.com/ **Dawson Verboven** (Student & Software Developer)
- https://qbunt.com **Jeremy Bunting** (Software Engineer)
- https://smeik.org **Smeik** (Embedded Developer)
- https://code.willstocks.co.uk **Will Stocks** (Blogger & Developer)
- https://blog.vnandag.me **Nanda Gopal** (Student Developer)
- https://m47r1x.github.io **Neo** (Citizen of Zion)
- https://bgameiro.me/ **Bernardo Gameiro** (Engineer Physicist student)
- https://return-to-libc.com/ **elraro** (Cyber Security Specialist)
- https://pablart.com/ **Pablo Diaz-Gutierrez** (Software Engineer, General Tinkerer)
- https://waterloos.niflheimr.blue/ **cindrmon** (Student and Aspiring Software Engineer)
- https://monocle.rpod.club/ **classx** (DevOps Engineer)
- https://wjdevschool.com/ **Wojciech Bogócki** (Making Things & Teaching / W&J Dev School)
- https://dongzhi.me **Joe** (Software Developer)
- https://isaes.com.tr/ **Isa Es** (Software Engineer)
- https://conight.com **Conight Wang** (Software Engineer)
- https://blog.m5e.de/ **Christoph Miksche** (Software Developer)
- https://mpostument.com/ **Maksym Postument** (DevOps Engineer)
- https://mathiejosh.xyz **Josh Mathie** (Electrical Engineering Technology Student/Sales and Engineering Tech)
- https://yuji.ne.jp/ **YUJI** (Student & Software Developer)
- https://blog.puvvadi.me **KD Puvvadi** (Software Dev & Cloud Orchestrator)
- https://hidden.land/ **Louisload** (Game Developer & Musician)
- https://linuxbase.nl **Michael Trip** (DevOps Engineer)
- https://markopolo123.github.io **Markopolo** (DevOps Engineer)
- https://openfoxblog.leven.dev/ **Damon Leven** (Student & Software Developer)
- https://blog.sethforprivacy.com **Seth For Privacy** (Security, privacy, and cryptocurrency writer, podcaster)
- https://thesprawl.city **crish** (Software and stuff)
- https://justinnuwin.com **Justin Nguyen** (Software & Hardware Developer)
- https://blog.woosal.com/ **Vusal Ismayilov** (Computer Engineering Student)
- https://itsembedded.com/ **Norbert Kremeris** (digital logic design and verification engineer)
- https://nereuxofficial.github.io **Nereuxofficial** (Software Developer & Student)
- https://biplav.xyz **Biplav's Blog** (Student)
- https://santiago.wtf **Nicholas Santiago** (DevOps Engineer)
- https://2200g.github.io/ **2200g** (Blogger/Student)
- https://cristiioan.me **Cristian Margine** (Student)
- https://they.mint.lgbt **Joey Aliaga** (Software Developer & Student)
- https://tatewilhelm.me **Tate Wilhelm** (Student, Programmer & Tinkerer)
- https://mikefoden.com **Mike Foden** (Software Developer)
- https://undemalum.github.io/portfolio/ **Mateusz Konat** (Student)
- https://ku0hn.radio **Ben Kuhn** (Ham Radio Operator, InfoSec Engineer, Tinkerer)
- https://bg117.xyz/projects **bg117** (Student and Hobby Programmer)
- https://www.grumpymetalguy.com **GrumpyMetalGuy** (General Grumper and Developer)
- https://blog.jontes.page **Jonte** (general tech geek)
- https://nazdarthegame.com/ **Michal Skoula** (Software Developer)
<!--
TEMPLATE:
- https://radoslawkoziel.pl **Radek Kozieł** (Software Designer and Developer)
-->

13
archetypes/posts.md Normal file
View File

@ -0,0 +1,13 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
author = ""
authorTwitter = "" #do not include @
cover = ""
tags = ["", ""]
keywords = ["", ""]
description = ""
showFullContent = false
readingTime = false
hideComments = false
+++

View File

@ -15,12 +15,19 @@ a.button {
margin-bottom: 5px; margin-bottom: 5px;
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
border-radius: 8px; border-radius: 0;
border: 1px solid transparent; border: 1px solid var(--accent);
background: var(--accent);
font: inherit;
font-weight: bold;
appearance: none; appearance: none;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
&:hover {
background: color-mod(var(--accent) a(90%));
}
/* variants */ /* variants */
&.outline { &.outline {
@ -34,20 +41,11 @@ a.button {
} }
} }
&.primary {
box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
&:hover {
box-shadow: 0 2px 6px rgba(50, 50, 93, .21), 0 1px 3px rgba(0, 0, 0, .08);
}
}
&.link { &.link {
background: none; background: none;
font-size: 1rem; font-size: 1rem;
} }
/* sizes */ /* sizes */
&.small { &.small {
@ -64,6 +62,8 @@ a.read-more,
a.read-more:hover, a.read-more:hover,
a.read-more:active { a.read-more:active {
display: inline-flex; display: inline-flex;
border: none;
color: var(--accent);
background: none; background: none;
box-shadow: none; box-shadow: none;
padding: 0; padding: 0;

84
assets/css/code.css Normal file
View File

@ -0,0 +1,84 @@
.collapsable-code {
--border-color: color-mod(var(--accent) blend(#999 90%));
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 .collapsable-code__toggle:after {
content: attr(data-label-expand);
}
}
label {
position: relative;
display: flex;
justify-content: space-between;
min-width: 30px;
min-height: 30px;
margin: 0;
border-bottom: 1px solid var(--border-color);
cursor: pointer;
}
&__title {
flex: 1;
color: var(--accent);
padding: 3px 10px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&__language {
color: var(--accent);
border: 1px solid var(--border-color);
border-bottom: none;
text-transform: uppercase;
padding: 3px 10px;
}
&__toggle {
color: var(--accent);
font-size: 16px;
padding: 3px 10px;
&:after {
content: attr(data-label-collapse);
}
}
pre {
margin-top: 0;
&::first-line {
line-height: 0;
}
}
.code-toolbar {
margin: 0;
}
}

View File

@ -1,13 +1,17 @@
@font-face { @font-face {
font-display: swap;
font-family: 'Fira Code'; font-family: 'Fira Code';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url("../fonts/FiraCode-Regular.woff") format("woff"); src: url("../fonts/FiraCode-Regular.woff") format("woff");
font-display: swap;
} }
@font-face { @font-face {
font-display: swap;
font-family: 'Fira Code'; font-family: 'Fira Code';
font-style: normal; font-style: normal;
font-weight: 800; font-weight: 800;
src: url("../fonts/FiraCode-Bold.woff") format("woff"); src: url("../fonts/FiraCode-Bold.woff") format("woff");
font-display: swap;
} }

30
assets/css/form.css Normal file
View File

@ -0,0 +1,30 @@
input, textarea, select {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
border-radius: 0;
padding: 10px;
font: inherit;
appearance: none;
&:focus, :active {
border-color: var(--color);
outline: 1px solid var(--color);
}
&:active {
box-shadow: none;
}
}
select {
background: var(--background);
option {
background: var(--background);
}
}
::placeholder {
color: color-mod(var(--accent) a(50%));
}

6
assets/css/gist.css Normal file
View File

@ -0,0 +1,6 @@
body .gist .blob-num /* line numbers */,
body .gist .blob-code-inner
{
border: none;
}

View File

@ -15,6 +15,10 @@
flex-direction: column; flex-direction: column;
position: relative; position: relative;
@media print {
display: none;
}
&__inner { &__inner {
display: flex; display: flex;
align-items: center; align-items: center;
@ -36,13 +40,14 @@
a { a {
flex: 0 0 auto; flex: 0 0 auto;
max-width: 100%; max-width: 100%;
text-decoration: none;
} }
} }
.menu { .menu {
--shadow-color: color-mod(var(--background) a(80%)); --shadow-color: color-mod(var(--background) a(80%));
--shadow: 0 10px var(--shadow-color), -10px 10px var(--shadow-color), 10px 10px var(--shadow-color); --shadow: 0 10px var(--shadow-color), -10px 10px var(--shadow-color), 10px 10px var(--shadow-color);
margin: 20px 0; margin: 20px 1px;
@media (--phone) { @media (--phone) {
@mixin menu; @mixin menu;
@ -120,6 +125,31 @@
} }
} }
.spacer {
flex-grow: 1;
}
.language-selector {
position: relative;
list-style: none;
margin: 0;
&-current {
list-style-type: none;
display: flex;
flex-direction: row;
color: var(--accent);
cursor: pointer;
margin: 0;
}
&__more {
@mixin menu;
top: 35px;
right: 0;
}
}
&-trigger { &-trigger {
color: var(--accent); color: var(--accent);
border: 2px solid; border: 2px solid;

View File

@ -14,11 +14,12 @@ body {
font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace; font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace;
font-size: 1rem; font-size: 1rem;
line-height: 1.54; line-height: 1.54;
letter-spacing: -0.02em;
background-color: color-mod(var(--accent) blend(#1D1E28 98%)); background-color: color-mod(var(--accent) blend(#1D1E28 98%));
color: var(--color); color: var(--color);
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl"; font-feature-settings: "liga", "tnum", "zero", "ss01", "locl";
font-variant-ligatures: contextual; font-variant-ligatures: contextual;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@ -28,7 +29,13 @@ body {
} }
} }
h1, h2, h3, h4, h5, h6 { .headings--one-size {
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.3; line-height: 1.3;
&:not(first-child) { &:not(first-child) {
@ -36,16 +43,26 @@ h1, h2, h3, h4, h5, h6 {
} }
} }
h1, h2, h3 { h1,
h2,
h3 {
font-size: 1.4rem; font-size: 1.4rem;
} }
h4, h5, h6 { h4,
h5,
h6 {
font-size: 1.2rem; font-size: 1.2rem;
} }
}
a { a {
color: inherit; color: inherit;
/* Waiting for a better times... */
/* &:has(code) {
text-decoration-color: var(--accent);
} */
} }
img { img {
@ -110,21 +127,27 @@ figure {
} }
} }
code { code, kbd {
font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace; font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace !important;
font-feature-settings: normal; font-feature-settings: normal;
background: color-mod(var(--accent) a(20%)); background: color-mod(var(--accent) a(20%));
color: var(--accent); color: var(--accent);
padding: 1px 6px; padding: 1px 6px;
margin: 0 2px; margin: 0 2px;
font-size: .95rem; font-size: .95rem;
code, kbd {
background: transparent;
padding: 0;
margin: 0;
}
} }
pre { pre {
background: transparent; background: transparent !important;
padding: 20px 10px; padding: 20px 10px;
margin: 40px 0; margin: 40px 0;
font-size: .95rem; font-size: .95rem !important;
overflow: auto; overflow: auto;
border-top: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1);
border-bottom: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
@ -158,15 +181,6 @@ blockquote {
padding-right: 0; padding-right: 0;
} }
&:before {
content: '”';
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
p:first-of-type { p:first-of-type {
margin-top: 0; margin-top: 0;
} }
@ -179,23 +193,50 @@ blockquote {
position: relative; position: relative;
} }
p:before { p:first-of-type:before {
content: '>'; content: '>';
display: block; display: block;
position: absolute; position: absolute;
left: -25px; left: -25px;
color: var(--accent); color: var(--accent);
} }
&.twitter-tweet {
position: relative;
background: color-mod(var(--accent) a(10%));
font: inherit;
color: inherit;
border: 1px solid var(--accent);
padding-top: 60px;
p:before {
content: '';
}
&:before {
content: '> From Twitter:';
position: absolute;
top: 20px;
color: var(--accent);
font-weight: bold;
}
a {
color: var(--accent);
}
}
} }
table { table {
table-layout: fixed; table-layout: auto;
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
margin: 40px 0; margin: 40px 0;
} }
table, th, td { table,
th,
td {
border: 1px dashed var(--accent); border: 1px dashed var(--accent);
padding: 10px; padding: 10px;
} }
@ -204,8 +245,9 @@ th {
color: var(--accent); color: var(--accent);
} }
ul, ol { ul,
margin-left: 30px; ol {
margin-left: 22px;
padding: 0; padding: 0;
li { li {
@ -215,31 +257,77 @@ ul, ol {
@media (--phone) { @media (--phone) {
margin-left: 20px; margin-left: 20px;
} }
}
ul, ol { ol {
margin-top: 20px; list-style: none;
counter-reset: li;
li {
counter-increment: li;
}
li:before {
content: counter(li);
position: absolute;
right: calc(100% + 10px);
color: var(--accent);
display: inline-block;
text-align: right;
}
ol {
margin-left: 38px;
li {
counter-increment: li;
}
li:before {
content: counters(li, ".") " ";
}
} }
} }
ol ol { mark {
list-style-type: lower-alpha; background: var(--accent);
color: var(--background);
} }
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 40px; padding: 40px;
border-right: 1px solid rgba(255, 255, 255, .1);
max-width: 864px; max-width: 864px;
min-height: 100vh; min-height: 100vh;
border-right: 1px solid rgba(255, 255, 255, 0.1);
&.full,
&.center {
border: none;
margin: 0 auto;
}
&.full {
max-width: 100%;
}
@media (--phone) { @media (--phone) {
padding: 20px; padding: 20px;
} }
@media print {
display: initial;
}
} }
.content { .content {
display: flex; display: flex;
flex-direction: column;
@media print {
display: initial;
}
} }
hr { hr {
@ -252,3 +340,7 @@ hr {
.hidden { .hidden {
display: none; display: none;
} }
sup {
line-height: 0;
}

View File

@ -1,6 +1,10 @@
.pagination { .pagination {
margin-top: 50px; margin-top: 50px;
@media print {
display: none;
}
&__title { &__title {
display: flex; display: flex;
text-align: center; text-align: center;
@ -43,14 +47,15 @@
.button { .button {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
flex: 1;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 1rem; font-size: 1rem;
border-radius: 8px; border-radius: 8px;
max-width: 40%;
padding: 0; padding: 0;
cursor: pointer; cursor: pointer;
appearance: none; appearance: none;
overflow: hidden;
+ .button { + .button {
margin-left: 10px; margin-left: 10px;

View File

@ -1,3 +1,24 @@
.index-content {
margin-top: 20px;
}
.framed {
border: 1px solid var(--accent);
padding: 20px;
*:first-child {
margin-top: 0;
}
*:last-child {
margin-bottom: 0;
}
}
.posts {
width: 100%;
}
.post { .post {
width: 100%; width: 100%;
text-align: left; text-align: left;
@ -70,8 +91,8 @@
ul { ul {
list-style: none; list-style: none;
li:before { li:not(:empty):before {
content: ''; content: '-';
position: absolute; position: absolute;
left: -20px; left: -20px;
color: var(--accent); color: var(--accent);
@ -94,3 +115,18 @@
} }
} }
} }
.hanchor {
color: color-mod(var(--accent) alpha(90%));
text-decoration: none;
margin-left: 10px;
visibility: hidden;
}
h1:hover a, h2:hover a, h3:hover a, h4:hover a {
visibility: visible;
}
.footnotes {
color: color-mod(var(--color) alpha(50%));
}

336
assets/css/prism.css Normal file
View File

@ -0,0 +1,336 @@
/* PrismJS 1.24.1
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scala+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+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-"] {
color: #ccc;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
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: #2d2d2d;
}
/* 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: #999;
}
.token.punctuation {
color: #ccc;
}
.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[data-line] {
position: relative;
padding: 1em 0 1em 3em;
}
.line-highlight {
position: absolute;
left: 0;
right: 0;
padding: inherit 0;
margin-top: 1em; /* Same as .prisms padding-top */
background: hsla(24, 20%, 50%,.08);
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
pointer-events: none;
line-height: inherit;
white-space: pre;
}
@media print {
.line-highlight {
/*
* This will prevent browsers from replacing the background color with white.
* It's necessary because the element is layered on top of the displayed code.
*/
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}
.line-highlight:before,
.line-highlight[data-end]:after {
content: attr(data-start);
position: absolute;
top: .4em;
left: .6em;
min-width: 1em;
padding: 0 .5em;
background-color: hsla(24, 20%, 50%,.4);
color: hsl(24, 20%, 95%);
font: bold 65%/1.5 sans-serif;
text-align: center;
vertical-align: .3em;
border-radius: 999px;
text-shadow: none;
box-shadow: 0 1px white;
}
.line-highlight[data-end]:after {
content: attr(data-end);
top: auto;
bottom: .4em;
}
.line-numbers .line-highlight:before,
.line-numbers .line-highlight:after {
content: none;
}
pre[id].linkable-line-numbers span.line-numbers-rows {
pointer-events: all;
}
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
cursor: pointer;
}
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
background-color: rgba(128, 128, 128, .2);
}
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 {
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
.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);
}
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;
}
/* Separate line b/c rules are thrown out if selector is invalid.
IE11 and old Edge versions don't support :focus-within. */
div.code-toolbar:focus-within > .toolbar {
opacity: 1;
}
div.code-toolbar > .toolbar > .toolbar-item {
display: inline-block;
}
div.code-toolbar > .toolbar > .toolbar-item > a {
cursor: pointer;
}
div.code-toolbar > .toolbar > .toolbar-item > 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 > .toolbar-item > a,
div.code-toolbar > .toolbar > .toolbar-item > button,
div.code-toolbar > .toolbar > .toolbar-item > 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 > .toolbar-item > a:hover,
div.code-toolbar > .toolbar > .toolbar-item > a:focus,
div.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar > .toolbar > .toolbar-item > button:focus,
div.code-toolbar > .toolbar > .toolbar-item > span:hover,
div.code-toolbar > .toolbar > .toolbar-item > span:focus {
color: inherit;
text-decoration: none;
}

18
assets/css/style.css Normal file
View File

@ -0,0 +1,18 @@
@import 'variables.css';
@import 'font.css';
@import 'buttons.css';
@import 'form.css';
@import 'header.css';
@import 'logo.css';
@import 'main.css';
@import 'post.css';
@import 'pagination.css';
@import 'footer.css';
@import 'prism.css';
@import 'syntax.css';
@import 'code.css';
@import 'terms.css';
@import 'gist.css';

156
assets/css/syntax.css Normal file
View File

@ -0,0 +1,156 @@
code.language-css,
code.language-scss,
.token.boolean,
.token.string,
.token.entity,
.token.url,
.language-css .token.string,
.language-scss .token.string,
.style .token.string,
.token.attr-value,
.token.keyword,
.token.control,
.token.directive,
.token.statement,
.token.regex,
.token.atrule,
.token.number,
.token.inserted,
.token.important {
color: var(--accent) !important;
}
.token.tag-id,
.token.atrule-id,
.token.operator,
.token.unit,
.token.placeholder,
.token.variable,
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted,
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: color-mod(var(--accent) a(70%)) !important;
}
.token.property,
.token.function,
.token.function-name,
.token.deleted,
code.language-javascript,
code.language-html,
.command-line-prompt > span:before {
color: color-mod(var(--accent) blend(#999 90%)) !important;
}
.token.selector,
.token.tag,
.token.punctuation {
color: white;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: rgba(255, 255, 255, .3) !important;
}
.token.namespace {
opacity: .7 !important;
}
pre[data-line] {
position: relative;
}
pre[class*="language-"] {
margin: 0;
padding: 0;
overflow: auto;
}
.line-highlight {
position: absolute;
left: 0;
right: 0;
padding: 0;
margin: 0;
background: color-mod(var(--accent) blend(#999 90%) a(8%));
pointer-events: none;
line-height: inherit;
white-space: pre;
}
.line-highlight:before,
.line-highlight[data-end]:after {
content: attr(data-start);
position: absolute;
/* top: .4em; */
left: .6em;
min-width: 1em;
padding: 0 .5em;
background-color: hsla(24, 20%, 50%, .4);
color: hsl(24, 20%, 95%);
font: bold 65%/1.5 sans-serif;
text-align: center;
vertical-align: .3em;
border-radius: 999px;
text-shadow: none;
box-shadow: 0 1px white;
}
.line-highlight[data-end]:after {
content: attr(data-end);
top: auto;
bottom: .4em;
}
.line-numbers .line-highlight:before,
.line-numbers .line-highlight:after {
content: none;
}
:root {
--code-margin: 40px;
}
.code-toolbar {
position: relative;
margin: var(--code-margin) 0;
padding: 20px;
border: 1px solid rgba(255, 255, 255, .1);
+ .code-toolbar,
+ .highlight,
+ .highlight .code-toolbar {
border-top: 0;
margin-top: calc(-1 * var(--code-margin));
}
pre, code {
border: none;
}
code {
display: block;
color: inherit;
}
> .toolbar {
button {
font-size: .8em !important;
background: hsla(0,0%,87.8%,.2) !important;
color: #bbb !important;
box-shadow: 0 2px 0 0 rgba(0,0,0,.2) !important;
border-radius: 0 !important;
margin: 6px !important;
padding: 10px !important;
user-select:none
}
}
}

9
assets/css/terms.css Normal file
View File

@ -0,0 +1,9 @@
.terms {
h1 {
color: var(--accent);
}
h3 {
font-size: initial;
}
}

View File

@ -9,5 +9,5 @@
--tabletWidth: (max-width: 900px); --tabletWidth: (max-width: 900px);
} }
@custom-media --phone (width < 684px); @custom-media --phone (max-width: 684px);
@custom-media --tablet (width < 900px); @custom-media --tablet (max-width: 900px);

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
const mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth");
const isMobile = () => window.matchMedia(mobileQuery).matches;
const languageSelector = document.querySelector(".language-selector-current");
const moreLanguagesContainer = document.querySelector(".language-selector__more");
document.body.addEventListener("click", () => {
if (
!isMobile() &&
moreLanguagesContainer &&
!moreLanguagesContainer.classList.contains("hidden")
) {
moreLanguagesContainer.classList.add("hidden");
}
});
languageSelector &&
languageSelector.addEventListener("click", (e) => {
if (!isMobile()) {
e.stopPropagation();
moreLanguagesContainer.classList.toggle("hidden");
}
});

View File

@ -6,7 +6,7 @@ const desktopMenuTrigger = document.querySelector(".menu__sub-inner-more-trigger
const menuMore = document.querySelector(".menu__sub-inner-more"); const menuMore = document.querySelector(".menu__sub-inner-more");
const mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth"); const mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth");
const isMobile = () => window.matchMedia(mobileQuery).matches; const isMobile = () => window.matchMedia(mobileQuery).matches;
const isMobileMenu = () => { const handleMenuClasses = () => {
mobileMenuTrigger && mobileMenuTrigger.classList.toggle("hidden", !isMobile()); mobileMenuTrigger && mobileMenuTrigger.classList.toggle("hidden", !isMobile());
menu && menu.classList.toggle("hidden", isMobile()); menu && menu.classList.toggle("hidden", isMobile());
menuMore && menuMore.classList.toggle("hidden", !isMobile()); menuMore && menuMore.classList.toggle("hidden", !isMobile());
@ -17,17 +17,17 @@ const isMobileMenu = () => {
menu && menu.addEventListener("click", e => e.stopPropagation()); menu && menu.addEventListener("click", e => e.stopPropagation());
menuMore && menuMore.addEventListener("click", e => e.stopPropagation()); menuMore && menuMore.addEventListener("click", e => e.stopPropagation());
isMobileMenu(); handleMenuClasses();
document.body.addEventListener("click", () => { document.body.addEventListener("click", () => {
if (!isMobile() && !menuMore.classList.contains("hidden")) { if (!isMobile() && menuMore && !menuMore.classList.contains("hidden")) {
menuMore.classList.add("hidden"); menuMore.classList.add("hidden");
} else if (isMobile() && !menu.classList.contains("hidden")) { } else if (isMobile() && !menu.classList.contains("hidden")) {
menu.classList.add("hidden"); menu.classList.add("hidden");
} }
}); });
window.addEventListener("resize", isMobileMenu); window.addEventListener("resize", handleMenuClasses);
// Mobile menu // Mobile menu

80
assets/js/prism.js Normal file

File diff suppressed because one or more lines are too long

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,
};
};

View File

@ -4,9 +4,11 @@ theme = "hugo-theme-terminal"
paginate = 5 paginate = 5
[params] [params]
contentTypeName = "post" contentTypeName = "posts"
themeColor = "orange" themeColor = "orange"
showMenuItems = 2 showMenuItems = 2
fullWidthTheme = false
centerTheme = false
[languages] [languages]
[languages.en] [languages.en]

View File

@ -16,7 +16,7 @@ The theme includes:
- **5 duotone themes**, depending on your preferences (orange, red, blue, green, pink) - **5 duotone themes**, depending on your preferences (orange, red, blue, green, pink)
- [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous! - [**Fira Code**](https://github.com/tonsky/FiraCode) as default monospaced font. It's gorgeous!
- **realy nice, custom duotone** syntax highlighting based on [**PrismJS**](https://prismjs.com) - **really nice, custom duotone** syntax highlighting based on [**PrismJS**](https://prismjs.com)
- mobile friendly layout - mobile friendly layout
So, there you have it... enjoy! So, there you have it... enjoy!

10
layouts/404.html Normal file
View File

@ -0,0 +1,10 @@
{{ define "main" }}
<div class="post">
<h1 class="post-title">404 — {{ $.Site.Params.missingContentMessage | default "Page not found..." }}</h1>
<div class="post-content">
<a href="{{ "/" | absURL }}">{{ $.Site.Params.missingBackButtonLabel | default "Back to home page" }}&nbsp;</a>
</div>
</div>
{{ end }}

View File

@ -2,12 +2,15 @@
<html lang="{{ $.Site.Language }}"> <html lang="{{ $.Site.Language }}">
<head> <head>
{{ block "title" . }} {{ block "title" . }}
<title>{{ if .IsHome }}{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}{{ end }}</title> <title>{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}</title>
{{ end }} {{ end }}
{{ partial "head.html" . }} {{ partial "head.html" . }}
</head> </head>
<body class=""> <body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}">
<div class="container"> {{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }}
<div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}">
{{ partial "header.html" . }} {{ partial "header.html" . }}
<div class="content"> <div class="content">

View File

@ -0,0 +1,67 @@
{{ define "main" }}
{{ if .Content }}
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}">
{{ .Content }}
</div>
{{ end }}
<div class="posts">
{{ $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) }}
{{ range $paginator.Pages }}
<article class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
<div class="post-meta">
{{- with .Date }}
<time class="post-date">
{{ .Format "2006-01-02" }}
</time>
{{- end }}
{{ with .Params.Author }}
<span class="post-author">:: {{ . }}</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 }}
{{ partial "cover.html" . }}
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ else }}
{{ .Summary | markdownify }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}

View File

@ -1,43 +1,57 @@
{{ define "main" }} {{ define "main" }}
{{ with .Content }}
<div class="index-content">
{{ . }}
</div>
{{ end }}
<div class="posts"> <div class="posts">
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ range .Paginator.Pages }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} <article class="post on-list">
{{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }} <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ range $paginator.Pages }} </h1>
<div class="post on-list">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta"> <div class="post-meta">
<span class="post-date"> {{- with .Date }}
{{ .Date.Format "2006-01-02" }} <time class="post-date">
</span> {{ .Format "2006-01-02" }}
{{ with .Params.Author }}<span class="post-author">:: {{ . }}</span>{{ end }} </time>
{{- end }}
{{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span>
{{ end }}
</div> </div>
{{ if .Params.tags }} {{ if .Params.tags }}
<span class="post-tags"> <span class="post-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s" . )) | absURL }}">{{ . }}</a>&nbsp; #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}
{{ with .Params.Cover }} {{ partial "cover.html" . }}
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
<div class="post-content"> <div class="post-content">
{{ with .Description }} {{ if .Params.showFullContent }}
{{ . | markdownify }} {{ .Content }}
{{ else if .Description }}
{{ .Description | markdownify }}
{{ else }} {{ else }}
{{ if .Truncated }} {{ .Summary }}
{{ .Summary | markdownify }}
{{ end }}
{{ end }} {{ end }}
</div> </div>
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a></div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button"
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div> </div>
{{ end }} {{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </div>
{{ end }} {{ end }}

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

@ -0,0 +1,40 @@
{{- $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>
<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>{{ .Summary | html }}</description>
<content>{{ .Content | html }}</content>
</item>
{{ end }}
</channel>
</rss>

View File

@ -1,53 +1,56 @@
{{ define "main" }} {{ define "main" }}
<div class="post"> <article class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta"> <div class="post-meta">
{{ if .Params.Date }}
<span class="post-date"> <span class="post-date">
{{ .Date.Format "2006-01-02" }} <time>{{ .Date.Format "2006-01-02" }}</time>
{{ if $.Site.Params.showLastUpdated }}
[{{or $.Site.Params.updatedDatePrefix "Updated"}}: <time>{{ .Lastmod.Format "2006-01-02" }}</time>]
{{ end }}
</span> </span>
{{ with .Params.Author }}<span class="post-author">:: {{ . }}</span>{{ end }} {{ end }}
{{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span>
{{ end }}
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
<span class="post-reading-time">:: {{ .ReadingTime }} min read ({{ .WordCount }} words)</span>
{{ end }}
</div> </div>
{{ if .Params.tags }} {{ if .Params.tags }}
<span class="post-tags"> <span class="post-tags">
{{ range .Params.tags }} {{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s" .)) | absURL }}">{{ . }}</a>&nbsp; #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}
{{ partial "cover.html" . }}
{{ with .Params.Cover }} {{ if (.Params.Toc | default .Site.Params.Toc) }}
<img src="{{ . | absURL }}" class="post-cover" /> <div class="table-of-contents">
<h2>
{{ (.Params.TocTitle | default .Site.Params.TocTitle) | default "Table of Contents" }}
</h2>
{{ .TableOfContents }}
</div>
{{ end }} {{ end }}
<div class="post-content"> <div class="post-content">
{{ .Content }} {{- with .Content -}}
<div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" aria-label="Anchor">&#8983;</a> ${3}` | safeHTML }}
</div> </div>
{{ if or .NextInSection .PrevInSection }} {{- end -}}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</span>
<hr />
</div> </div>
<div class="pagination__buttons">
{{ if .NextInSection }} {{ if eq .Type $.Site.Params.contentTypeName }}
<span class="button previous"> {{ partial "posts_pagination.html" . }}
<a href="{{ .NextInSection.Permalink }}">
<span class="button__icon"></span>
<span class="button__text">{{ .NextInSection.Title }}</span>
</a>
</span>
{{ end }} {{ end }}
{{ if .PrevInSection }}
<span class="button next"> {{ if not (.Params.hideComments | default false) }}
<a href="{{ .PrevInSection.Permalink }}"> {{ partial "comments.html" . }}
<span class="button__text">{{ .PrevInSection.Title }}</span>
<span class="button__icon"></span>
</a>
</span>
{{ end }} {{ end }}
</div> </article>
</div>
{{ end }}
</div>
{{ end }} {{ end }}

View File

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

View File

@ -0,0 +1,8 @@
<!--
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,24 @@
{{- $cover := false -}}
{{- $autoCover := default $.Site.Params.autoCover false }}
{{- if index .Params "cover" -}}
{{- if .Resources.GetMatch .Params.Cover }}
{{- $cover = (.Resources.GetMatch .Params.Cover).RelPermalink -}}
{{- else -}}
{{- $cover = absURL .Params.Cover -}}
{{- end -}}
{{- else if $.Site.Params.AutoCover -}}
{{- if (not .Params.Cover) -}}
{{- if .Resources.GetMatch "cover.*" -}}
{{- $cover = (.Resources.GetMatch "cover.*").RelPermalink -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{if $cover -}}
<!-- Cover image found -->
<img src="{{ $cover }}"
class="post-cover"
alt="{{ .Title | plainify | default " " }}"
title="{{ .Params.CoverCredit |plainify|default "Cover Image" }}" />
{{- end }}

View File

@ -0,0 +1,4 @@
<!--
To add an extended footer section, please create
`layouts/partials/extended_footer.html` in your Hugo directory.
-->

View File

@ -0,0 +1,4 @@
<!--
To add an extended head section, please create
`layouts/partials/extended_head.html` in your Hugo directory.
-->

View File

@ -1,15 +1,23 @@
<footer class="footer"> <footer class="footer">
<div class="footer__inner"> <div class="footer__inner">
{{ if $.Site.Copyright }} {{ if $.Site.Copyright }}
<div class="copyright copyright--user">{{ $.Site.Copyright | safeHTML }}</div> <div class="copyright copyright--user">
<span>{{ $.Site.Copyright | safeHTML }}</span>
{{ else }} {{ else }}
<div class="copyright"> <div class="copyright">
<span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span> <span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span>
{{ end }}
<span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span> <span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span>
</div> </div>
{{end}}
</div> </div>
</footer> </footer>
<script src="{{ "assets/main.js" | absURL }}"></script> <script src="{{ "assets/main.js" | absURL }}"></script>
<script src="{{ "assets/prism.js" | absURL }}"></script> <script src="{{ "assets/prism.js" | absURL }}"></script>
{{ if $.Site.Params.showLanguageSelector }}
<script src="{{ "assets/languageSelector.js" | absURL }}"></script>
{{ end }}
<!-- Extended footer section-->
{{ partial "extended_footer.html" . }}

View File

@ -1,52 +1,76 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <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="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}"/> <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="keywords" content="{{ $.Site.Params.keywords }}"/> <meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" />
<meta name="robots" content="noodp" /> <meta name="robots" content="noodp" />
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
{{ template "_internal/google_analytics.html" . }}
<!-- Theme CSS --> <!-- Theme CSS -->
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}"> <link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">
{{ if (ne $.Site.Params.ThemeColor "orange") }} {{ if (isset .Params "color") }}
<link rel="stylesheet" href="{{ (printf "assets/%s.css" .Params.color) | absURL }}">
{{ else if and (ne $.Site.Params.ThemeColor "orange") (ne $.Site.Params.ThemeColor "color" "") }}
<link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}"> <link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}">
{{ end }} {{ end }}
<!-- Custom CSS to override theme properties (/static/style.css) --> <!-- Custom CSS to override theme properties (/static/style.css) -->
{{ if (fileExists "static/style.css") -}}
<link rel="stylesheet" href="{{ "style.css" | absURL }}"> <link rel="stylesheet" href="{{ "style.css" | absURL }}">
{{- end }}
<!-- Icons --> <!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ "img/apple-touch-icon-192x192.png" | absURL }}">
{{ with $.Site.Params.ThemeColor }} {{ if isset $.Site.Params "favicon" }}
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" . | absURL }}"> <link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}">
{{ else }}
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" ($.Site.Params.ThemeColor | default "orange") | absURL }}">
{{ end }} {{ end }}
<!-- Twitter Card --> <!-- Twitter Card -->
<meta name="twitter:card" content="summary" /> <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 }}" /> {{ if (isset $.Site.Params "twitter") }}
<meta name="twitter:description" content="{{ if .IsHome }}{{ $.Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" /> {{ if (isset $.Site.Params.Twitter "site") }}
<meta name="twitter:site" content="{{ $.Site.BaseURL }}" /> <meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
<meta name="twitter:creator" content="{{ .Params.Author }}" /> {{ end }}
<meta name="twitter:image" content="{{ with .Params.Cover }}{{ printf "img/%s" . | absURL }}{{ end }}"> <meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
{{ end }}
<!-- OG data --> <!-- OG data -->
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" /> <meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" /> <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:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }}{{ end }}">
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" /> <meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" /> <meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="{{ .Title }}" /> <meta property="og:site_name" content="{{ $.Site.Title }}" />
<meta property="og:image" content="{{ with .Params.Cover }}{{ printf "img/%s" . | absURL }}{{ end }}"> {{ if and (not .IsHome) (isset .Params "cover") }}
<meta property="og:image" content="{{ .Param "cover" | absURL }}">
{{ else }}
{{ if isset $.Site.Params "favicon" }}
<meta property="og:image" content="{{ $.Site.Params.favicon | absURL }}">
{{ else }}
<meta property="og:image" content="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}">
{{ end }}
{{ end }}
<meta property="og:image:width" content="2048"> <meta property="og:image:width" content="2048">
<meta property="og:image:height" content="1024"> <meta property="og:image:height" content="1024">
{{ range .Params.categories }}<meta property="article:section" content="{{ . }}" />{{ end }} {{ range .Params.categories }}
{{ if isset .Params "date" }}<meta property="article:published_time" content="{{ time .Date }}" />{{ end }} <meta property="article:section" content="{{ . }}" />
{{ end }}
{{ if isset .Params "date" }}
<meta property="article:published_time" content="{{ time .Date }}" />
{{ end }}
<!-- RSS --> <!-- RSS -->
{{ if .RSSLink }} {{ with .OutputFormats.Get "RSS" }}
<link href="{{ $.Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }} {{ end }}
<!-- JSON Feed --> <!-- JSON Feed -->
{{ if .OutputFormats.Get "json" }} {{ with .OutputFormats.Get "json" }}
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" /> <link href="{{ .RelPermalink }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
{{ end }} {{ end }}
<!-- Extended head section-->
{{ partial "extended_head.html" . }}

View File

@ -3,7 +3,9 @@
<div class="header__logo"> <div class="header__logo">
{{ partial "logo.html" . }} {{ partial "logo.html" . }}
</div> </div>
{{ if len $.Site.Menus }}
<div class="menu-trigger">menu</div> <div class="menu-trigger">menu</div>
{{ end }}
</div> </div>
{{ if len $.Site.Menus }} {{ if len $.Site.Menus }}
{{ partial "menu.html" . }} {{ partial "menu.html" . }}

View File

@ -1,4 +1,4 @@
<a href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{else}}{{ $.Site.BaseURL }}{{ end }}" style="text-decoration: none;"> <a href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{else}}{{ $.Site.BaseURL }}{{ end }}">
<div class="logo"> <div class="logo">
{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}Terminal{{ end }} {{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}Terminal{{ end }}
</div> </div>

View File

@ -3,7 +3,7 @@
{{ if or $.Site.Params.showMenuItems ( eq .Site.Params.showMenuItems 0 ) }} {{ if or $.Site.Params.showMenuItems ( eq .Site.Params.showMenuItems 0 ) }}
{{ range first $.Site.Params.showMenuItems $.Site.Menus.main }} {{ range first $.Site.Params.showMenuItems $.Site.Menus.main }}
{{ if not .HasChildren }} {{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <li><a href="{{ .URL }}" {{ if .Params.NewTab }} target="_blank" {{ end }}>{{ .Name }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }} {{ if gt (len $.Site.Menus.main) $.Site.Params.showMenuItems }}
@ -13,7 +13,7 @@
<ul class="menu__sub-inner-more hidden"> <ul class="menu__sub-inner-more hidden">
{{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }} {{ range last (sub (len $.Site.Menus.main) $.Site.Params.showMenuItems) $.Site.Menus.main }}
{{ if not .HasChildren }} {{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <li><a href="{{ .URL }}" {{ if .Params.NewTab }} target="_blank" {{ end }}>{{ .Name }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
</ul> </ul>
@ -22,16 +22,38 @@
{{ else }} {{ else }}
{{ range $.Site.Menus.main }} {{ range $.Site.Menus.main }}
{{ if not .HasChildren }} {{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <li><a href="{{ .URL }}" {{ if .Params.NewTab }} target="_blank" {{ end }}>{{ .Name }}</a></li>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<div class="spacer"></div>
<ul class="language-selector">
<ul class="language-selector-current">
<li>{{ .Language.LanguageName }} ▾</li>
</ul>
<ul class="language-selector__more hidden">
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>
</ul>
{{ end }}
</ul> </ul>
<ul class="menu__inner menu__inner--mobile"> <ul class="menu__inner menu__inner--mobile">
{{ range $.Site.Menus.main }} {{ range $.Site.Menus.main }}
{{ if not .HasChildren }} {{ if not .HasChildren }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li> <li><a href="{{ .URL }}" {{ if .Params.NewTab }} target="_blank" {{ end }}>{{ .Name }}</a></li>
{{ end }}
{{ end }}
{{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<hr />
{{ range $.Site.Home.AllTranslations }}
<li>
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
</li>
{{ end }} {{ end }}
{{ end }} {{ end }}
</ul> </ul>

View File

@ -4,14 +4,14 @@
<span class="button previous"> <span class="button previous">
<a href="{{ .Paginator.Prev.URL }}"> <a href="{{ .Paginator.Prev.URL }}">
<span class="button__icon"></span> <span class="button__icon"></span>
<span class="button__text">Newer posts</span> <span class="button__text">{{ $.Site.Params.newerPosts | default "Newer posts" }}</span>
</a> </a>
</span> </span>
{{ end }} {{ end }}
{{ if .Paginator.HasNext }} {{ if .Paginator.HasNext }}
<span class="button next"> <span class="button next">
<a href="{{ .Paginator.Next.URL }}"> <a href="{{ .Paginator.Next.URL }}">
<span class="button__text">Older posts</span> <span class="button__text">{{ $.Site.Params.olderPosts | default "Older posts" }}</span>
<span class="button__icon"></span> <span class="button__icon"></span>
</a> </a>
</span> </span>

View File

@ -0,0 +1,26 @@
{{ if or .NextInSection .PrevInSection }}
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">{{ $.Site.Params.ReadOtherPosts }}</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>
{{ end }}

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

@ -2,7 +2,7 @@
<figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" > <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 }} /> <img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} />
{{ if .Get "caption" }} {{ if .Get "caption" }}
<figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}>{{ .Get "caption" }}</figcaption> <figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}>{{ .Get "caption" | safeHTML }}</figcaption>
{{ end }} {{ end }}
</figure> </figure>
{{ end }} {{ end }}

View File

@ -0,0 +1,25 @@
{{ $inner := replaceRE "^\r?\n" "" .Inner | string }}
{{ if len .Params | eq 0 }}
<pre><code>{{ $inner }}</code></pre>
{{ else }}
{{ if .IsNamedParams }}
<pre class="
{{- if .Get "lang" }}language-{{ .Get "lang" }}{{ end }}
{{- if .Get "line-numbers" }} line-numbers{{ end }}
{{- if .Get "command-line" }} command-line{{ end }}"
{{- /* line highlight plugin */ -}}
{{- if .Get "line" }} data-line="{{ .Get "line" }}"{{ end }}
{{- /* line number plugin */ -}}
{{- if .Get "start" }} data-start="{{ .Get "start" }}"{{ end }}
{{- /* command-line plugin */ -}}
{{- if .Get "user" }} data-user="{{ .Get "user" }}"{{ end }}
{{- if .Get "host" }} data-host="{{ .Get "host" }}"{{ end }}
{{- if .Get "prompt" }} data-prompt="{{ .Get "prompt" }}"{{ end }}
{{- if .Get "output" }} data-output="{{ .Get "output" }}"{{ end }}
><code {{ if .Get "lang" }}class="language-{{ .Get "lang" }}"{{ end }}
>{{ $inner }}</code></pre>
{{ else }}
<pre class="language-{{ .Get 0 }}">
<code class="language-{{ .Get 0 }}">{{ $inner }}</code></pre>
{{ end }}
{{ end }}

View File

@ -1,55 +1,60 @@
{ {
"name": "terminal", "name": "terminal",
"version": "1.0.0", "version": "2.1.0",
"main": "index.js", "main": "index.js",
"author": "Radosław Kozieł <@panr> <radoslaw.koziel@gmail.com>", "author": "Radosław Kozieł <@panr> <radoslaw.koziel@gmail.com>",
"license": "MIT", "license": "MIT",
"scripts": {
"dev": "webpack --mode=development --watch",
"build": "webpack --mode=production"
},
"browserslist": [ "browserslist": [
"last 2 versions", "last 2 versions",
">1%", ">1%",
"not dead" "not dead"
], ],
"scripts": {
"dev": "webpack --mode=development --watch",
"build": "webpack --mode=production"
},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.2.3", "@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2", "@babel/core": "^7.2.2",
"@babel/parser": "^7.4.2",
"@babel/plugin-transform-runtime": "^7.2.0", "@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.3.1", "@babel/preset-env": "^7.3.1",
"@babel/preset-stage-2": "^7.0.0", "@babel/preset-stage-2": "^7.0.0",
"babel-eslint": "^8.2.1", "angular-html-parser": "^1.2.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.0.5", "babel-loader": "^8.0.5",
"browserslist": "^4.0.1", "browserslist": "^4.16.5",
"clean-webpack-plugin": "^0.1.19", "clean-webpack-plugin": "^3.0.0",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"css-loader": "^1.0.1", "css-loader": "^5.1.3",
"cssnano": "^4.1.8", "cssnano": "^5.0.8",
"eslint-config-airbnb": "^17.1.0", "eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^2.10.0", "eslint-config-prettier": "^8.1.0",
"eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-jsx-a11y": "^6.2.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0", "file-loader": "^6.1.0",
"file-loader": "^1.1.11", "husky": "^5.1.3",
"html-webpack-plugin": "^3.2.0", "mini-css-extract-plugin": "^1.3.9",
"postcss": "^7.0.0", "postcss": "^8.2.10",
"postcss-browser-reporter": "^0.5.0", "postcss-browser-reporter": "^0.6.0",
"postcss-cli": "^6.1.1", "postcss-cli": "^8.3.1",
"postcss-color-function": "^4.0.1", "postcss-color-function": "^4.0.1",
"postcss-color-mod-function": "^3.0.3", "postcss-color-mod-function": "^3.0.3",
"postcss-import": "^11.1.0", "postcss-import": "^14.0.0",
"postcss-loader": "^2.1.6", "postcss-loader": "^5.2.0",
"postcss-mixins": "^6.2.1", "postcss-mixins": "^7.0.3",
"postcss-nested": "^3.0.0", "postcss-nested": "^5.0.5",
"postcss-preset-env": "^5.3.0", "postcss-preset-env": "^6.7.0",
"postcss-reporter": "^5.0.0", "postcss-reporter": "^7.0.2",
"postcss-url": "^7.3.2", "postcss-url": "^10.1.3",
"prettier-eslint-cli": "^4.7.1", "prettier-eslint-cli": "^5.0.0",
"ramda": "^0.25.0", "ramda": "^0.27.1",
"style-loader": "^0.21.0", "style-loader": "^2.0.0",
"uglifyjs-webpack-plugin": "^1.3.0", "terser-webpack-plugin": "^5.1.1",
"url-loader": "^1.1.2", "url-loader": "^4.1.0",
"webpack": "^4.29.3", "webpack": "^5.27.1",
"webpack-cli": "^3.2.3" "webpack-cli": "^4.5.0"
},
"dependencies": {
"yarn": "^1.22.10"
} }
} }

View File

@ -1,216 +0,0 @@
/* 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: inherit, monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
margin: 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
border-radius: 8px;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
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;
}
.code-toolbar {
position: relative;
margin: 40px 0;
padding: 20px 0;
border-top: 1px solid rgba(255, 255, 255, .1);
border-bottom: 1px solid rgba(255, 255, 255, .1);
+ .code-toolbar {
border-top: 0;
margin-top: -40px;
}
+ .highlight,
+ .highlight .code-toolbar {
border-top: 0;
}
pre, code {
border: none;
}
code {
color: inherit;
}
}
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,14 +0,0 @@
@import 'variables';
@import 'font';
@import 'buttons';
@import 'header';
@import 'logo';
@import 'main';
@import 'post';
@import 'pagination';
@import 'footer';
@import 'prism';
@import 'syntax';

View File

@ -1,53 +0,0 @@
code.language-css,
code.language-scss,
.token.boolean,
.token.string,
.token.entity,
.token.url,
.language-css .token.string,
.language-scss .token.string,
.style .token.string,
.token.attr-value,
.token.keyword,
.token.control,
.token.directive,
.token.statement,
.token.regex,
.token.atrule,
.token.number {
color: var(--accent);
}
.token.tag-id,
.token.atrule-id,
.token.operator,
.token.unit,
.token.placeholder,
.token.variable,
.token.attr-name {
color: color-mod(var(--accent) a(70%));
}
.token.property,
.token.function,
code.language-javascript,
code.language-html {
color: color-mod(var(--accent) blend(#999 90%));
}
.token.selector,
.token.tag,
.token.punctuation {
color: white;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: rgba(255, 255, 255, .3);
}
.token.namespace {
opacity: .7;
}

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
// Add your script here

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
(function(){var __webpack_modules__={"./assets/js/languageSelector.js":
/*!***************************************!*\
!*** ./assets/js/languageSelector.js ***!
\***************************************/function(){eval('var mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth");\n\nvar isMobile = function isMobile() {\n return window.matchMedia(mobileQuery).matches;\n};\n\nvar languageSelector = document.querySelector(".language-selector-current");\nvar moreLanguagesContainer = document.querySelector(".language-selector__more");\ndocument.body.addEventListener("click", function () {\n if (!isMobile() && moreLanguagesContainer && !moreLanguagesContainer.classList.contains("hidden")) {\n moreLanguagesContainer.classList.add("hidden");\n }\n});\nlanguageSelector && languageSelector.addEventListener("click", function (e) {\n if (!isMobile()) {\n e.stopPropagation();\n moreLanguagesContainer.classList.toggle("hidden");\n }\n});\n\n//# sourceURL=webpack://terminal/./assets/js/languageSelector.js?')}},__webpack_exports__={};__webpack_modules__["./assets/js/languageSelector.js"]()})();

View File

@ -1 +1,4 @@
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){n(1),e.exports=n(2)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=document.querySelector(".container"),o=document.querySelector(".menu"),i=document.querySelector(".menu-trigger"),u=(document.querySelector(".menu__inner--desktop"),document.querySelector(".menu__sub-inner-more-trigger")),c=document.querySelector(".menu__sub-inner-more"),d=getComputedStyle(document.body).getPropertyValue("--phoneWidth"),s=function(){return window.matchMedia(d).matches},l=function(){i&&i.classList.toggle("hidden",!s()),o&&o.classList.toggle("hidden",s()),c&&c.classList.toggle("hidden",!s())};o&&o.addEventListener("click",function(e){return e.stopPropagation()}),c&&c.addEventListener("click",function(e){return e.stopPropagation()}),l(),document.body.addEventListener("click",function(){s()||c.classList.contains("hidden")?s()&&!o.classList.contains("hidden")&&o.classList.add("hidden"):c.classList.add("hidden")}),window.addEventListener("resize",l),i&&i.addEventListener("click",function(e){e.stopPropagation(),o&&o.classList.toggle("hidden")}),u&&u.addEventListener("click",function(e){e.stopPropagation(),c&&c.classList.toggle("hidden"),c.getBoundingClientRect().right>r.getBoundingClientRect().right&&(c.style.left="auto",c.style.right=0)})}]); (function(){var __webpack_modules__={"./assets/js/menu.js":
/*!***************************!*\
!*** ./assets/js/menu.js ***!
\***************************/function(){eval('var container = document.querySelector(".container");\nvar menu = document.querySelector(".menu");\nvar mobileMenuTrigger = document.querySelector(".menu-trigger");\nvar desktopMenu = document.querySelector(".menu__inner--desktop");\nvar desktopMenuTrigger = document.querySelector(".menu__sub-inner-more-trigger");\nvar menuMore = document.querySelector(".menu__sub-inner-more");\nvar mobileQuery = getComputedStyle(document.body).getPropertyValue("--phoneWidth");\n\nvar isMobile = function isMobile() {\n return window.matchMedia(mobileQuery).matches;\n};\n\nvar handleMenuClasses = function handleMenuClasses() {\n mobileMenuTrigger && mobileMenuTrigger.classList.toggle("hidden", !isMobile());\n menu && menu.classList.toggle("hidden", isMobile());\n menuMore && menuMore.classList.toggle("hidden", !isMobile());\n}; // Common\n\n\nmenu && menu.addEventListener("click", function (e) {\n return e.stopPropagation();\n});\nmenuMore && menuMore.addEventListener("click", function (e) {\n return e.stopPropagation();\n});\nhandleMenuClasses();\ndocument.body.addEventListener("click", function () {\n if (!isMobile() && menuMore && !menuMore.classList.contains("hidden")) {\n menuMore.classList.add("hidden");\n } else if (isMobile() && !menu.classList.contains("hidden")) {\n menu.classList.add("hidden");\n }\n});\nwindow.addEventListener("resize", handleMenuClasses); // Mobile menu\n\nmobileMenuTrigger && mobileMenuTrigger.addEventListener("click", function (e) {\n e.stopPropagation();\n menu && menu.classList.toggle("hidden");\n}); // Desktop menu\n\ndesktopMenuTrigger && desktopMenuTrigger.addEventListener("click", function (e) {\n e.stopPropagation();\n menuMore && menuMore.classList.toggle("hidden");\n\n if (menuMore.getBoundingClientRect().right > container.getBoundingClientRect().right) {\n menuMore.style.left = "auto";\n menuMore.style.right = 0;\n }\n});\n\n//# sourceURL=webpack://terminal/./assets/js/menu.js?')}},__webpack_exports__={};__webpack_modules__["./assets/js/menu.js"]()})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ description = "A simple, retro theme for Hugo."
homepage = "https://github.com/panr/hugo-theme-terminal/" homepage = "https://github.com/panr/hugo-theme-terminal/"
tags = ["blog", "clean", "customizable", "dark", "highlighting", "minimal", "monotone", "multilingual", "personal", "responsive", "simple", "technical", "retro"] tags = ["blog", "clean", "customizable", "dark", "highlighting", "minimal", "monotone", "multilingual", "personal", "responsive", "simple", "technical", "retro"]
features = ["blog", "shortcode", "syntax highlighting"] features = ["blog", "shortcode", "syntax highlighting"]
min_version = 0.30 min_version = 0.74
[author] [author]
name = "panr" name = "panr"

View File

@ -1,29 +1,28 @@
const Webpack = require("webpack"); const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CleanPlugin = require("clean-webpack-plugin"); const TerserPlugin = require("terser-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const path = require("path"); const path = require("path");
const join = (...paths) => path.join(__dirname, ...paths); const join = (...paths) => path.join(__dirname, ...paths);
module.exports = { module.exports = (env, { mode }) => ({
resolve: { resolve: {
extensions: [".js", ".css"], extensions: [".js", ".css"],
modules: ["source", "node_modules"], modules: ["assets", "node_modules"],
}, },
entry: { entry: {
"main.js": [join("source", "js", "main.js"), join("source", "js", "menu.js")], main: join("assets", "js", "menu.js"),
"prism.js": join("source", "js", "prism.js"), languageSelector: join("assets", "js", "languageSelector.js"),
"style.css": join("source", "css", "style.css"), prism: join("assets", "js", "prism.js"),
"red.css": join("source", "css", "color", "red.css"), style: join("assets", "css", "style.css"),
"blue.css": join("source", "css", "color", "blue.css"), red: join("assets", "css", "color", "red.css"),
"green.css": join("source", "css", "color", "green.css"), blue: join("assets", "css", "color", "blue.css"),
"pink.css": join("source", "css", "color", "pink.css"), green: join("assets", "css", "color", "green.css"),
pink: join("assets", "css", "color", "pink.css"),
}, },
output: { output: {
filename: "[name]", filename: "[name].js",
path: join("static/assets"), path: join("static/assets"),
publicPath: "", publicPath: "",
}, },
@ -55,28 +54,20 @@ module.exports = {
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: [ use: [
MiniCssExtractPlugin.loader,
{ {
loader: "css-loader", loader: "css-loader",
options: { options: {
minimize: true, modules: {
modules: true,
importLoaders: 1,
localIdentName: "[local]", localIdentName: "[local]",
}, },
}, import: true,
{ importLoaders: 1,
loader: "postcss-loader",
options: {
config: {
path: "postcss.config.js",
},
}, },
}, },
"postcss-loader",
], ],
}),
}, },
], ],
}, },
@ -85,11 +76,29 @@ module.exports = {
name: "vendor", name: "vendor",
minChunks: 2, minChunks: 2,
}, },
minimize: true,
minimizer: [ minimizer: [
new UglifyJsPlugin({ new TerserPlugin({
sourceMap: true, parallel: true,
extractComments: false,
}), }),
], ],
}, },
plugins: [new CleanPlugin(join("static/assets")), new ExtractTextPlugin("[name]")], plugins: [
}; new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: [join("static/assets")],
cleanAfterEveryBuildPatterns: [
join("static/assets/style.js"),
join("static/assets/blue.js"),
join("static/assets/green.js"),
join("static/assets/red.js"),
join("static/assets/pink.js"),
],
verbose: true,
}),
new MiniCssExtractPlugin({
filename: "[name].css",
chunkFilename: "[id].css",
}),
],
});

8393
yarn.lock

File diff suppressed because it is too large Load Diff