241 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
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
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
2266ddfdd4 Adding pablart.com 2020-06-25 10:53:16 -07:00
b95bb4ac1d 'Newer/Older posts' label is now editable 2020-06-16 16:04:45 +02:00
53 changed files with 4241 additions and 5619 deletions

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

@ -16,6 +16,10 @@ eg:
- John, a javascript developer. - John, a javascript developer.
--> -->
- **Social media icons** (https://github.com/...) - **Portfolio** (https://github.com/Louisload/hugo-theme-terminal-portfolio)
- This is the biggest missing feature of the theme. But now it will help your audience reach you over the internet. - Allows you to create a portfolio page (or several). Supports icons and subsections.
- John, a javascript developer. - 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.

110
README.md
View File

@ -4,8 +4,6 @@
### DEMO - https://hugo-terminal.now.sh/ ### DEMO - https://hugo-terminal.now.sh/
<a href="https://www.buymeacoffee.com/panr" target="_blank"><img src="https://res.cloudinary.com/panr/image/upload/v1579374705/buymeacoffee_y6yvov.svg" alt="Buy Me A Coffee" ></a>
--- ---
- [Features](#features) - [Features](#features)
@ -20,24 +18,29 @@
- [Found a bug?](#bug) - [Found a bug?](#bug)
- [New cool idea or feature](#feature) - [New cool idea or feature](#feature)
- [Terminal theme user?](#terminal-theme-user) - [Terminal theme user?](#terminal-theme-user)
- [Sponsoring](#sponsoring)
- [Licence](#licence) - [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.
```go
{{< 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`**) - **`figure`** (same as `image`, plus few optional props: **`caption`**, **`captionPosition`** (left | **center** is default | right), **`captionStyle`**)
- eg: `{{< figure src="/img/hello.png" alt="Hello Friend" position="center" style="border-radius: 8px;" caption="Hello Friend!" captionPosition="right" captionStyle="color: red;" >}}` - e.g.
- **`code`** (prop required: **`language`**; props optional: **`title`**, **`id`**, **`expand`** (default "△"), **`collapse`** (default "▽"), **`isCollapsed`**) ```go
- eg: {{< 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 ```go
{{< code language="css" title="Really cool snippet" id="1" expand="Show" collapse="Hide" isCollapsed="true" >}} {{< code language="css" title="Really cool snippet" id="1" expand="Show" collapse="Hide" isCollapsed="true" >}}
pre { pre {
@ -72,7 +75,7 @@ A custom syntax highlighting based on PrismJS. All you need to do is to wrap you
``` ```
```` ````
**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
@ -81,29 +84,23 @@ 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 ## How to run your site
The theme is using [Hugo Pipes](https://gohugo.io/hugo-pipes/) to handle Javascript and PostCSS files. This setup **requires** following npm packages: If you installed all needed `npm` dependencies, then you can run:
``` ```
@babel/cli @babel/core @babel/preset-env browserslist clipboard cssnano postcss-cli postcss-import postcss-mixins postcss-nested postcss-preset-env postcss-url hugo server -t terminal
```
Before you start, you have to install them (globally or locally).
Then:
```
$ 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. 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.
@ -138,18 +135,35 @@ paginate = 5
# center theme with default width # center theme with default width
centerTheme = false centerTheme = false
# set a custom favicon (default is a `themeColor` square) # if your resource directory contains an image called `cover.(jpg|png|webp)`,
# favicon = "favicon.ico" # 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 # 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 # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
showLastUpdated = false 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 # 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" # updatedDatePrefix = "Updated"
# set all headings to their default size (depending on browser settings) # set all headings to their default size (depending on browser settings)
# it's set to `true` by default # oneHeadingSize = true # default
# oneHeadingSize = false
# 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] [params.twitter]
# set Twitter handles for Twitter cards # set Twitter handles for Twitter cards
@ -169,6 +183,8 @@ paginate = 5
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..." missingContentMessage = "Page not found..."
missingBackButtonLabel = "Back to home page" missingBackButtonLabel = "Back to home page"
@ -193,7 +209,7 @@ to `config.toml` file in your Hugo root directory and change params fields. In c
## Post archetype ## Post archetype
See the basic `post` file params supported by the theme — https://github.com/panr/hugo-theme-terminal/blob/master/archetypes/posts.md See the default `post` file params supported by the theme — https://github.com/panr/hugo-theme-terminal/blob/master/archetypes/posts.md
## Add-ons ## Add-ons
@ -203,7 +219,37 @@ See the basic `post` file params supported by the theme — https://github.com/p
## How to (safely) edit the theme <a id="how-to-edit" /> ## How to (safely) edit the theme <a id="how-to-edit" />
To change something in the theme, you have to go to `themes/terminal` and modify the files. You can also copy them (like `assets` folder) from the theme to your root directory and modify the files there (thanks to Hugo's lookup https://gohugo.io/templates/lookup-order). This will protect your changes from overriding when you update the theme. 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
```
then run:
```bash
npm install
npm i yarn
yarn
```
After you modified the files you can run webpack in watch mode:
```bash
yarn dev
```
or rebuild theme
```bash
yarn build
```
To see the changes (remember to restart `hugo server`).
## Found a bug? <a id="bug" /> ## Found a bug? <a id="bug" />
@ -230,14 +276,8 @@ Sounds OK? Cool, let's rock! 🤘
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)! 🤗 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)! 🤗
## Sponsoring
If you like my work and want to support the development of the project, now you can! Just:
<a href="https://www.buymeacoffee.com/panr" target="_blank"><img src="https://res.cloudinary.com/panr/image/upload/v1579374705/buymeacoffee_y6yvov.svg" alt="Buy Me A Coffee" ></a>
## License ## License
Copyright © 2019-2020 Radosław Kozieł ([@panr](https://twitter.com/panr)) 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.

View File

@ -22,7 +22,6 @@
- https://security.jtang.dev **Jonathan Tang** (Student & Software Engineer) - https://security.jtang.dev **Jonathan Tang** (Student & Software Engineer)
- https://andreacaravano.net **Andrea Caravano** (Student) - https://andreacaravano.net **Andrea Caravano** (Student)
- https://dawsonverboven.com/ **Dawson Verboven** (Student & Software Developer) - https://dawsonverboven.com/ **Dawson Verboven** (Student & Software Developer)
- https://www.rockyourcode.com **Sophia Brandt** (tax officer and hobby coder)
- https://qbunt.com **Jeremy Bunting** (Software Engineer) - https://qbunt.com **Jeremy Bunting** (Software Engineer)
- https://smeik.org **Smeik** (Embedded Developer) - https://smeik.org **Smeik** (Embedded Developer)
- https://code.willstocks.co.uk **Will Stocks** (Blogger & Developer) - https://code.willstocks.co.uk **Will Stocks** (Blogger & Developer)
@ -30,14 +29,45 @@
- https://m47r1x.github.io **Neo** (Citizen of Zion) - https://m47r1x.github.io **Neo** (Citizen of Zion)
- https://bgameiro.me/ **Bernardo Gameiro** (Engineer Physicist student) - https://bgameiro.me/ **Bernardo Gameiro** (Engineer Physicist student)
- https://return-to-libc.com/ **elraro** (Cyber Security Specialist) - https://return-to-libc.com/ **elraro** (Cyber Security Specialist)
- https://waterloos.niflheimr.blue/ **niflheimr1011** (Aspiring Software Engineer) - 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://monocle.rpod.club/ **classx** (DevOps Engineer)
- https://wjdevschool.com/ **Wojciech Bogócki** (Making Things & Teaching / W&J Dev School) - https://wjdevschool.com/ **Wojciech Bogócki** (Making Things & Teaching / W&J Dev School)
- https://waterloos.niflheimr.blue/ **cindrmon** (Aspiring Software Engineer and Student) - 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: TEMPLATE:
- https://radoslawkoziel.pl **Radek Kozieł** (Software Designer and Developer) - https://radoslawkoziel.pl **Radek Kozieł** (Software Designer and Developer)
--> -->

View File

@ -1,6 +1,6 @@
+++ +++
title = "" title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "" date = "{{ .Date }}"
author = "" author = ""
authorTwitter = "" #do not include @ authorTwitter = "" #do not include @
cover = "" cover = ""
@ -8,4 +8,6 @@ tags = ["", ""]
keywords = ["", ""] keywords = ["", ""]
description = "" description = ""
showFullContent = false 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;

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

@ -47,7 +47,7 @@
.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;

View File

@ -19,7 +19,7 @@ body {
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%;
@ -128,7 +128,7 @@ figure {
} }
code, kbd { 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);
@ -147,7 +147,7 @@ pre {
background: transparent !important; 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);
@ -228,7 +228,7 @@ blockquote {
} }
table { table {
table-layout: fixed; table-layout: auto;
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
margin: 40px 0; margin: 40px 0;
@ -247,7 +247,7 @@ th {
ul, ul,
ol { ol {
margin-left: 30px; margin-left: 22px;
padding: 0; padding: 0;
li { li {
@ -275,10 +275,18 @@ ol {
display: inline-block; display: inline-block;
text-align: right; text-align: right;
} }
}
ol ol { ol {
list-style-type: lower-alpha; margin-left: 38px;
li {
counter-increment: li;
}
li:before {
content: counters(li, ".") " ";
}
}
} }
mark { mark {
@ -332,3 +340,7 @@ hr {
.hidden { .hidden {
display: none; display: none;
} }
sup {
line-height: 0;
}

View File

@ -1,19 +1,17 @@
/* PrismJS 1.15.0 /* PrismJS 1.24.1
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 */ 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 * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme * Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard * @author Rose Pritchard
*/ */
:root {
--code-margin: 40px;
}
code[class*="language-"], code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"] {
color: #ccc;
background: none; background: none;
font-family: inherit, monospace; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
text-align: left; text-align: left;
white-space: pre; white-space: pre;
word-spacing: normal; word-spacing: normal;
@ -21,30 +19,94 @@ pre[class*="language-"] {
word-wrap: normal; word-wrap: normal;
line-height: 1.5; line-height: 1.5;
tab-size: 2; -moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none; hyphens: none;
} }
/* Code blocks */ /* Code blocks */
pre[class*="language-"] { pre[class*="language-"] {
margin: 0; padding: 1em;
padding: 0; margin: .5em 0;
overflow: auto; overflow: auto;
} }
:not(pre) > code[class*="language-"], :not(pre) > code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"] {
border-radius: 0; background: #2d2d2d;
} }
/* Inline code */ /* Inline code */
:not(pre) > code[class*="language-"] { :not(pre) > code[class*="language-"] {
padding: .1em; padding: .1em;
border-radius: 0; border-radius: .3em;
white-space: normal; 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.important,
.token.bold { .token.bold {
font-weight: bold; font-weight: bold;
@ -57,6 +119,81 @@ pre[class*="language-"] {
cursor: help; 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 { pre[class*="language-"].line-numbers {
position: relative; position: relative;
padding-left: 3.8em; padding-left: 3.8em;
@ -76,104 +213,28 @@ pre[class*="language-"].line-numbers > code {
left: -3.8em; left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */ width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px; letter-spacing: -1px;
border-right: 1px solid color-mod(var(--accent) blend(#999 90%) a(20%)); border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; user-select: none;
} }
.line-numbers-rows > span { .line-numbers-rows > span {
pointer-events: none;
display: block; display: block;
counter-increment: linenumber; counter-increment: linenumber;
} }
.line-numbers-rows > span:before { .line-numbers-rows > span:before {
content: counter(linenumber); content: counter(linenumber);
color: color-mod(var(--accent) blend(#999 90%) a(40%)); color: #999;
display: block; display: block;
padding-right: 0.8em; padding-right: 0.8em;
text-align: right; text-align: right;
}
.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;
}
}
.highlight + .highlight .code-toolbar {
border-top: 0;
margin-top: calc(-1 * var(--code-margin));
}
div.code-toolbar > .toolbar {
position: absolute;
top: 10px;
right: 10px;
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;
user-select: none;
}
div.code-toolbar > .toolbar a,
div.code-toolbar > .toolbar button,
div.code-toolbar > .toolbar span {
color: #bbb;
font-size: .8em;
padding: 10px;
background: #f5f2f0;
background: rgba(224, 224, 224, 0.2);
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
border-radius: 0;
}
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 {
text-decoration: none;
}
.command-line-prompt { .command-line-prompt {
border-right: 1px solid #999; border-right: 1px solid #999;
display: block; display: block;
@ -182,10 +243,15 @@ div.code-toolbar > .toolbar span:focus {
letter-spacing: -1px; letter-spacing: -1px;
margin-right: 1em; margin-right: 1em;
pointer-events: none; pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; user-select: none;
} }
.command-line-prompt > span:before { .command-line-prompt > span:before {
color: #999;
content: ' '; content: ' ';
display: block; display: block;
padding-right: 0.8em; padding-right: 0.8em;
@ -202,3 +268,69 @@ div.code-toolbar > .toolbar span:focus {
.command-line-prompt > span[data-prompt]:before { .command-line-prompt > span[data-prompt]:before {
content: attr(data-prompt); 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;
}

View File

@ -2,6 +2,7 @@
@import 'font.css'; @import 'font.css';
@import 'buttons.css'; @import 'buttons.css';
@import 'form.css';
@import 'header.css'; @import 'header.css';
@import 'logo.css'; @import 'logo.css';
@ -14,3 +15,4 @@
@import 'syntax.css'; @import 'syntax.css';
@import 'code.css'; @import 'code.css';
@import 'terms.css'; @import 'terms.css';
@import 'gist.css';

View File

@ -14,8 +14,10 @@ code.language-scss,
.token.statement, .token.statement,
.token.regex, .token.regex,
.token.atrule, .token.atrule,
.token.number { .token.number,
color: var(--accent); .token.inserted,
.token.important {
color: var(--accent) !important;
} }
.token.tag-id, .token.tag-id,
@ -24,16 +26,25 @@ code.language-scss,
.token.unit, .token.unit,
.token.placeholder, .token.placeholder,
.token.variable, .token.variable,
.token.attr-name { .token.tag,
color: color-mod(var(--accent) a(70%)); .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.property,
.token.function, .token.function,
.token.function-name,
.token.deleted,
code.language-javascript, code.language-javascript,
code.language-html, code.language-html,
.command-line-prompt > span:before { .command-line-prompt > span:before {
color: color-mod(var(--accent) blend(#999 90%)); color: color-mod(var(--accent) blend(#999 90%)) !important;
} }
.token.selector, .token.selector,
@ -46,17 +57,23 @@ code.language-html,
.token.prolog, .token.prolog,
.token.doctype, .token.doctype,
.token.cdata { .token.cdata {
color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .3) !important;
} }
.token.namespace { .token.namespace {
opacity: .7; opacity: .7 !important;
} }
pre[data-line] { pre[data-line] {
position: relative; position: relative;
} }
pre[class*="language-"] {
margin: 0;
padding: 0;
overflow: auto;
}
.line-highlight { .line-highlight {
position: absolute; position: absolute;
left: 0; left: 0;
@ -97,3 +114,43 @@ pre[data-line] {
.line-numbers .line-highlight:after { .line-numbers .line-highlight:after {
content: none; 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
}
}
}

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

@ -1,18 +1,23 @@
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;
if(!isMobile()) { const languageSelector = document.querySelector(".language-selector-current");
languageSelector = document.querySelector(".language-selector-current"); const moreLanguagesContainer = document.querySelector(".language-selector__more");
moreLanguagesContainer = document.querySelector(".language-selector__more");
document.body.addEventListener("click", () => { document.body.addEventListener("click", () => {
if (moreLanguagesContainer && !moreLanguagesContainer.classList.contains("hidden")) { if (
!isMobile() &&
moreLanguagesContainer &&
!moreLanguagesContainer.classList.contains("hidden")
) {
moreLanguagesContainer.classList.add("hidden"); moreLanguagesContainer.classList.add("hidden");
} }
}); });
languageSelector && languageSelector.addEventListener("click", e => { languageSelector &&
languageSelector.addEventListener("click", (e) => {
if (!isMobile()) {
e.stopPropagation(); e.stopPropagation();
moreLanguagesContainer.classList.toggle("hidden"); moreLanguagesContainer.classList.toggle("hidden");
}
}); });
}

View File

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

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ theme = "hugo-theme-terminal"
paginate = 5 paginate = 5
[params] [params]
contentTypeName = "post" contentTypeName = "posts"
themeColor = "orange" themeColor = "orange"
showMenuItems = 2 showMenuItems = 2
fullWidthTheme = false fullWidthTheme = false

View File

@ -7,7 +7,7 @@
{{ partial "head.html" . }} {{ partial "head.html" . }}
</head> </head>
<body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}"> <body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}">
{{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "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" "" }}"> <div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}">

View File

@ -15,14 +15,16 @@
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<div class="post on-list"> <article class="post on-list">
<h1 class="post-title"> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1> </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" }}
</time>
{{- end }}
{{ with .Params.Author }} {{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span> <span class="post-author">:: {{ . }}</span>
{{ end }} {{ end }}
@ -38,20 +40,18 @@
</span> </span>
{{ end }} {{ end }}
{{ if .Params.Cover }}
<img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" /> {{ partial "cover.html" . }}
{{ end }}
<div class="post-content"> <div class="post-content">
{{ if .Params.showFullContent }} {{ if .Params.showFullContent }}
{{ .Content | markdownify }} {{ .Content }}
{{ else if .Description }} {{ else if .Description }}
{{ .Description | markdownify }} {{ .Description | markdownify }}
{{ else }} {{ else }}
{{ if .Truncated }}
{{ .Summary | markdownify }} {{ .Summary | markdownify }}
{{ end }} {{ end }}
{{ end }}
</div> </div>
{{ if not .Params.showFullContent }} {{ if not .Params.showFullContent }}
@ -60,7 +60,7 @@
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div> </div>
{{ end }} {{ end }}
</div> </article>
{{ end }} {{ end }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </div>

View File

@ -5,15 +5,17 @@
</div> </div>
{{ end }} {{ end }}
<div class="posts"> <div class="posts">
{{ range .Pages }} {{ range .Paginator.Pages }}
<div class="post on-list"> <article class="post on-list">
<h1 class="post-title"> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1> </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" }}
</time>
{{- end }}
{{ with .Params.Author }} {{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span> <span class="post-author">:: {{ . }}</span>
{{ end }} {{ end }}
@ -29,19 +31,16 @@
</span> </span>
{{ end }} {{ end }}
{{ if .Params.Cover }} {{ partial "cover.html" . }}
<img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" />
{{ end }}
<div class="post-content"> <div class="post-content">
{{ if .Params.showFullContent }} {{ if .Params.showFullContent }}
{{ .Content | markdownify }} {{ .Content }}
{{ else if .Description }} {{ else if .Description }}
{{ .Description | markdownify }} {{ .Description | markdownify }}
{{ else }} {{ else }}
{{ if .Truncated }} {{ .Summary }}
{{ .Summary | markdownify }}
{{ end }}
{{ end }} {{ end }}
</div> </div>
@ -51,7 +50,7 @@
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div> </div>
{{ end }} {{ end }}
</div> </article>
{{ end }} {{ end }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </div>

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,16 +1,22 @@
{{ define "main" }} {{ define "main" }}
<div class="post"> <article class="post">
<h1 class="post-title"> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta"> <div class="post-meta">
{{ if .Params.Date }} {{ if .Params.Date }}
<span class="post-date"> <span class="post-date">
{{ .Date.Format "2006-01-02" }} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }} <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>
{{ end }} {{ end }}
{{ with .Params.Author }} {{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span> <span class="post-author">:: {{ . }}</span>
{{ end }} {{ 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 }}
@ -20,21 +26,12 @@
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}
{{ partial "cover.html" . }}
{{ if .Params.Cover }} {{ if (.Params.Toc | default .Site.Params.Toc) }}
<img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" />
{{ end }}
{{ if .Params.Toc }}
<div class="table-of-contents"> <div class="table-of-contents">
<h2> <h2>
{{ if .Params.TocTitle }} {{ (.Params.TocTitle | default .Site.Params.TocTitle) | default "Table of Contents" }}
{{ .Params.TocTitle }}
{{ else if $.Site.Params.TocTitle }}
{{ $.Site.Params.TocTitle }}
{{ else }}
Table of Contents
{{ end }}
</h2> </h2>
{{ .TableOfContents }} {{ .TableOfContents }}
</div> </div>
@ -43,7 +40,7 @@
<div class="post-content"> <div class="post-content">
{{- with .Content -}} {{- with .Content -}}
<div> <div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }} {{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" aria-label="Anchor">&#8983;</a> ${3}` | safeHTML }}
</div> </div>
{{- end -}} {{- end -}}
</div> </div>
@ -52,6 +49,8 @@
{{ partial "posts_pagination.html" . }} {{ partial "posts_pagination.html" . }}
{{ end }} {{ end }}
{{ if not (.Params.hideComments | default false) }}
{{ partial "comments.html" . }} {{ partial "comments.html" . }}
</div> {{ end }}
</article>
{{ end }} {{ end }}

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

@ -3,22 +3,21 @@
{{ if $.Site.Copyright }} {{ if $.Site.Copyright }}
<div class="copyright copyright--user"> <div class="copyright copyright--user">
<span>{{ $.Site.Copyright | safeHTML }}</span> <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}} {{ 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>
</div> </div>
</footer> </footer>
{{ $js := resources.Get "js/main.js" | js.Build }} <script src="{{ "assets/main.js" | absURL }}"></script>
{{ $js := resources.Get "js/prism.js" | js.Build }} <script src="{{ "assets/prism.js" | absURL }}"></script>
{{ $opts := dict "noComments" true "minified" true "compact" true }}
{{ $menu := resources.Get "js/menu.js" | js.Build | babel $opts }} {{ if $.Site.Params.showLanguageSelector }}
{{ $prism := resources.Get "js/prism.js" | js.Build | babel $opts }} <script src="{{ "assets/languageSelector.js" | absURL }}"></script>
<script src="{{ $menu.Permalink }}"></script> {{ end }}
<script src="{{ $prism.Permalink }}"></script>
<!-- Extended footer section--> <!-- Extended footer section-->
{{ partial "extended_footer.html" . }} {{ partial "extended_footer.html" . }}

View File

@ -1,6 +1,6 @@
<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"> <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="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" /> <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 }}" />
@ -8,15 +8,11 @@
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
<!-- Theme CSS --> <!-- Theme CSS -->
{{ $css := resources.Get "css/style.css" }} <link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">
{{ $opts := dict "inlineImports" true }} {{ if (isset .Params "color") }}
{{ $style := $css | resources.PostCSS $opts | minify }} <link rel="stylesheet" href="{{ (printf "assets/%s.css" .Params.color) | absURL }}">
<link rel="stylesheet" href="{{ $style.Permalink }}"> {{ 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 }}">
{{ if (or (isset .Params "color") (ne $.Site.Params.ThemeColor "orange")) }}
{{ $colorCss := resources.Get (printf "css/color/%s.css" (or .Params.color $.Site.Params.ThemeColor)) }}
{{ $color := $colorCss | resources.PostCSS $opts | minify }}
<link rel="stylesheet" href="{{ $color.Permalink }}">
{{ end }} {{ end }}
<!-- Custom CSS to override theme properties (/static/style.css) --> <!-- Custom CSS to override theme properties (/static/style.css) -->
@ -25,27 +21,29 @@
{{- end }} {{- 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 }}">
{{ if isset $.Site.Params "favicon" }} {{ if isset $.Site.Params "favicon" }}
<link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}"> <link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}">
{{ else }} {{ else }}
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}"> <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" />
{{ if (isset $.Site.Params.Twitter "site") }} {{ if (isset $.Site.Params "twitter") }}
{{ if (isset $.Site.Params.Twitter "site") }}
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" /> <meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
{{ end }}
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
{{ end }} {{ end }}
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ 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 }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}"> <meta property="og:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }}{{ end }}">
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ 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 }}" />
{{ if and (not .IsHome) (isset .Params "cover") }} {{ if and (not .IsHome) (isset .Params "cover") }}
<meta property="og:image" content="{{ .Param "cover" | absURL }}"> <meta property="og:image" content="{{ .Param "cover" | absURL }}">
{{ else }} {{ else }}

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

@ -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,12 +22,12 @@
{{ 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 $.Site.Params.showLanguageSelector }} {{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<div class="spacer"></div> <div class="spacer"></div>
<ul class="language-selector"> <ul class="language-selector">
<ul class="language-selector-current"> <ul class="language-selector-current">
@ -45,10 +45,10 @@
<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 }}
{{ end }} {{ end }}
{{ if $.Site.Params.showLanguageSelector }} {{ if and $.Site.Params.showLanguageSelector (len $.Site.Home.AllTranslations) }}
<hr /> <hr />
{{ range $.Site.Home.AllTranslations }} {{ range $.Site.Home.AllTranslations }}
<li> <li>

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

@ -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

@ -1,4 +1,4 @@
{{ $inner := replaceRE "^\n" "" .Inner | string }} {{ $inner := replaceRE "^\r?\n" "" .Inner | string }}
{{ if len .Params | eq 0 }} {{ if len .Params | eq 0 }}
<pre><code>{{ $inner }}</code></pre> <pre><code>{{ $inner }}</code></pre>
{{ else }} {{ else }}

View File

@ -1,6 +1,6 @@
{ {
"name": "terminal", "name": "terminal",
"version": "2.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",
@ -9,29 +9,52 @@
">1%", ">1%",
"not dead" "not dead"
], ],
"scripts": {
"dev": "webpack --mode=development --watch",
"build": "webpack --mode=production"
},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.10.5", "@babel/cli": "^7.2.3",
"@babel/core": "^7.10.5", "@babel/core": "^7.2.2",
"@babel/parser": "^7.4.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",
"browserslist": "^4.0.1", "babel-eslint": "^10.1.0",
"babel-loader": "^8.0.5",
"browserslist": "^4.16.5",
"clean-webpack-plugin": "^3.0.0",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"cssnano": "^4.1.8", "css-loader": "^5.1.3",
"eslint-config-prettier": "^2.10.0", "cssnano": "^5.0.8",
"postcss": "^7.0.0", "eslint-config-airbnb": "^18.2.0",
"postcss-browser-reporter": "^0.5.0", "eslint-config-prettier": "^8.1.0",
"postcss-cli": "^7.1.1", "eslint-plugin-jsx-a11y": "^6.2.1",
"file-loader": "^6.1.0",
"husky": "^5.1.3",
"mini-css-extract-plugin": "^1.3.9",
"postcss": "^8.2.10",
"postcss-browser-reporter": "^0.6.0",
"postcss-cli": "^8.3.1",
"postcss-color-function": "^4.0.1",
"postcss-color-mod-function": "^3.0.3", "postcss-color-mod-function": "^3.0.3",
"postcss-import": "^12.0.1", "postcss-import": "^14.0.0",
"postcss-loader": "^3.0.0", "postcss-loader": "^5.2.0",
"postcss-mixins": "^6.2.3", "postcss-mixins": "^7.0.3",
"postcss-nested": "^4.2.3", "postcss-nested": "^5.0.5",
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",
"postcss-reporter": "^6.0.1", "postcss-reporter": "^7.0.2",
"postcss-url": "^8.0.0", "postcss-url": "^10.1.3",
"prettier-eslint-cli": "^4.7.1" "prettier-eslint-cli": "^5.0.0",
"ramda": "^0.27.1",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^5.1.1",
"url-loader": "^4.1.0",
"webpack": "^5.27.1",
"webpack-cli": "^4.5.0"
},
"dependencies": {
"yarn": "^1.22.10"
} }
} }

Binary file not shown.

Binary file not shown.

1
static/assets/blue.css Normal file

File diff suppressed because one or more lines are too long

1
static/assets/green.css Normal file

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"]()})();

4
static/assets/main.js Normal file
View File

@ -0,0 +1,4 @@
(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"]()})();

1
static/assets/pink.css Normal file

File diff suppressed because one or more lines are too long

4
static/assets/prism.js Normal file

File diff suppressed because one or more lines are too long

1
static/assets/red.css Normal file

File diff suppressed because one or more lines are too long

1
static/assets/style.css Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

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.57 min_version = 0.74
[author] [author]
name = "panr" name = "panr"

View File

@ -1,33 +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": [ main: join("assets", "js", "menu.js"),
join("source", "js", "main.js"), languageSelector: join("assets", "js", "languageSelector.js"),
join("source", "js", "menu.js"), prism: join("assets", "js", "prism.js"),
join("source", "js", "languageSelector.js") style: join("assets", "css", "style.css"),
], red: join("assets", "css", "color", "red.css"),
"prism.js": join("source", "js", "prism.js"), blue: join("assets", "css", "color", "blue.css"),
"style.css": join("source", "css", "style.css"), green: join("assets", "css", "color", "green.css"),
"red.css": join("source", "css", "color", "red.css"), pink: join("assets", "css", "color", "pink.css"),
"blue.css": join("source", "css", "color", "blue.css"),
"green.css": join("source", "css", "color", "green.css"),
"pink.css": join("source", "css", "color", "pink.css"),
}, },
output: { output: {
filename: "[name]", filename: "[name].js",
path: join("static/assets"), path: join("static/assets"),
publicPath: "", publicPath: "",
}, },
@ -59,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",
], ],
}),
}, },
], ],
}, },
@ -89,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",
}),
],
});

8597
yarn.lock

File diff suppressed because it is too large Load Diff