Skip to content
Permalink
Browse files

Migrate to hugo pipes with some fix

  • Loading branch information
laozhu committed Nov 13, 2018
1 parent d239620 commit 3d5145fd84702042a95086bf04e2c740fd9d03bc
Showing with 311 additions and 5,693 deletions.
  1. +6 βˆ’0 .gitignore
  2. +2 βˆ’0 README.md
  3. BIN {static β†’ assets}/images/avatar.jpg
  4. BIN {static β†’ assets}/images/cover.jpg
  5. BIN {static β†’ assets}/images/favicon-16x16.png
  6. BIN {static β†’ assets}/images/favicon-32x32.png
  7. BIN {static β†’ assets}/images/favicon.ico
  8. 0 {static β†’ assets}/images/grey-prism.svg
  9. BIN {static β†’ assets}/images/poster.jpg
  10. BIN {static β†’ assets}/images/qrcode.jpg
  11. BIN {static β†’ assets}/images/tile-image-windows.png
  12. BIN {static β†’ assets}/images/touch-icon-android.png
  13. BIN {static β†’ assets}/images/touch-icon-apple.png
  14. +0 βˆ’16 assets/sass/main.scss
  15. +0 βˆ’169 assets/sass/partials/icons.scss
  16. +16 βˆ’0 assets/styles/main.scss
  17. 0 assets/{sass/partials/content.scss β†’ styles/partials/_content.scss}
  18. 0 assets/{sass/partials/header.scss β†’ styles/partials/_header.scss}
  19. +80 βˆ’0 assets/styles/partials/_icons.scss
  20. 0 assets/{sass/partials/links.scss β†’ styles/partials/_links.scss}
  21. 0 assets/{sass/partials/misc.scss β†’ styles/partials/_misc.scss}
  22. 0 assets/{sass/partials/paginator.scss β†’ styles/partials/_paginator.scss}
  23. 0 assets/{sass/partials/post.scss β†’ styles/partials/_post.scss}
  24. 0 assets/{sass/partials/reset.scss β†’ styles/partials/_reset.scss}
  25. 0 assets/{sass/partials/resume.scss β†’ styles/partials/_resume.scss}
  26. 0 assets/{sass/partials/shortcodes.scss β†’ styles/partials/_shortcodes.scss}
  27. +0 βˆ’1 assets/{sass/partials/skeleton.scss β†’ styles/partials/_skeleton.scss}
  28. 0 assets/{sass/partials/summary.scss β†’ styles/partials/_summary.scss}
  29. +4 βˆ’4 assets/{sass/partials/syntax.scss β†’ styles/partials/_syntax.scss}
  30. 0 assets/{sass/partials/table.scss β†’ styles/partials/_table.scss}
  31. 0 assets/{sass/partials/terms.scss β†’ styles/partials/_terms.scss}
  32. +1 βˆ’61 assets/{sass/partials/variables.scss β†’ styles/partials/_variables.scss}
  33. +13 βˆ’2 exampleSite/config.toml
  34. +0 βˆ’4 exampleSite/resources/_gen/assets/js/scripts/index.js_d3f53f09220d597dac26fe7840c31fc9.content
  35. +0 βˆ’1 exampleSite/resources/_gen/assets/js/scripts/index.js_d3f53f09220d597dac26fe7840c31fc9.json
  36. +0 βˆ’3 exampleSite/resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.content
  37. +0 βˆ’1 exampleSite/resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.json
  38. +2 βˆ’2 layouts/_default/list.html
  39. +2 βˆ’2 layouts/index.html
  40. +17 βˆ’5 layouts/partials/footer.html
  41. +2 βˆ’5 layouts/partials/gitment.html
  42. +98 βˆ’71 layouts/partials/head.html
  43. +31 βˆ’93 layouts/partials/header.html
  44. +5 βˆ’5 layouts/partials/polyfill.html
  45. +14 βˆ’0 package.json
  46. +16 βˆ’0 postcss.config.js
  47. +0 βˆ’3 resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.content
  48. +0 βˆ’1 resources/_gen/assets/scss/sass/main.scss_d67ad9c949d6b2d3af54edf8a49ed31a.json
  49. +1 βˆ’0 resources/_gen/assets/scss/styles/main.scss_952a4e66eaed7fdbc9e3302cc3fdf069.content
  50. +1 βˆ’0 resources/_gen/assets/scss/styles/main.scss_952a4e66eaed7fdbc9e3302cc3fdf069.json
  51. BIN static/fonts/iconfont.eot
  52. +0 βˆ’141 static/fonts/iconfont.svg
  53. BIN static/fonts/iconfont.ttf
  54. BIN static/fonts/iconfont.woff
  55. BIN static/fonts/iconfont.woff2
  56. BIN static/fonts/lobster.eot
  57. +0 βˆ’5,102 static/fonts/lobster.svg
  58. BIN static/fonts/lobster.ttf
  59. BIN static/fonts/lobster.woff
  60. BIN static/fonts/lobster.woff2
  61. +0 βˆ’1 static/images/safari-pinned-tab.svg
@@ -1 +1,7 @@
.DS_Store
npm-debug.log*
yarn-error.log
yarn.lock
package-lock.json
/.vscode
/node_modules
@@ -277,6 +277,8 @@ can print out for job hunting.
>
> This theme has been using hugo pipes instead of webpack now.
I use Hugo pipes and [PostCSS](https://gohugo.io/hugo-pipes/postcss/) to tranpile CSS, you should install devDependencies in `package.json` first if you want to cutomize the `./assets/styles` css files.

I use [ImageOptim](https://imageoptim.com/) to make images load faster, you should install this app before you run `yarn imagemin` script.

*From Hugo 0.28, the default syntax hightlighter in Hugo is [Chroma](https://github.com/alecthomas/chroma); it is built in Go and is really, really fast – and for the most important parts compatible with [Pygments](http://pygments.org/).*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

This file was deleted.

This file was deleted.

@@ -0,0 +1,16 @@
@import 'partials/reset';
@import 'partials/variables';
@import 'partials/icons';
@import 'partials/skeleton';
@import 'partials/header';
@import 'partials/summary';
@import 'partials/paginator';
@import 'partials/post';
@import 'partials/content';
@import 'partials/shortcodes';
@import 'partials/table';
@import 'partials/syntax';
@import 'partials/links';
@import 'partials/misc';
@import 'partials/terms';
@import 'partials/resume';
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,80 @@
@font-face {
font-family: 'icon'; /* project id 174169 */
src: url('//at.alicdn.com/t/font_174169_qmgvd10zwbf.eot');
src: url('//at.alicdn.com/t/font_174169_qmgvd10zwbf.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_174169_qmgvd10zwbf.woff') format('woff'),
url('//at.alicdn.com/t/font_174169_qmgvd10zwbf.ttf') format('truetype'),
url('//at.alicdn.com/t/font_174169_qmgvd10zwbf.svg#iconfont') format('svg');
}

.icon {
font-family: 'icon' !important;
font-size: 1rem;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
-webkit-font-smoothing: subpixel-antialiased;
}
}

.icon-facebook::before { content: "\e600"; }

.icon-close::before { content: "\e646"; }

.icon-reddit::before { content: "\ebcf"; }

.icon-stackoverflow::before { content: "\e85a"; }

.icon-twitter::before { content: "\e89d"; }

.icon-comment::before { content: "\e66f"; }

.icon-menu::before { content: "\e692"; }

.icon-jsfiddle::before { content: "\e753"; }

.icon-weibo::before { content: "\e892"; }

.icon-wechat::before { content: "\e628"; }

.icon-dribbble::before { content: "\e696"; }

.icon-rss::before { content: "\e6ee"; }

.icon-github::before { content: "\e629"; }

.icon-up::before { content: "\e734"; }

.icon-behance::before { content: "\e601"; }

.icon-douban::before { content: "\e613"; }

.icon-quora::before { content: "\e61b"; }

.icon-email::before { content: "\e664"; }

.icon-bilibili::before { content: "\e64e"; }

.icon-codepen::before { content: "\e9eb"; }

.icon-pinterest::before { content: "\e60a"; }

.icon-codesandbox::before { content: "\e87e"; }

.icon-google::before { content: "\e886"; }

.icon-zhihu::before { content: "\e88b"; }

.icon-instagram::before { content: "\e88f"; }

.icon-linkedin::before { content: "\f1e7"; }

.icon-medium::before { content: "\f1ef"; }

.icon-npm::before { content: "\f1fe"; }

.icon-vimeo::before { content: "\f25a"; }

.icon-youtube::before { content: "\f274"; }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -5,7 +5,6 @@ html {
}

body {
background: var(--background) var(--background-image) repeat fixed;
text-rendering: optimizeLegibility;
color: var(--text);
-webkit-font-smoothing: antialiased;
File renamed without changes.
@@ -1,10 +1,10 @@
/* Background */ .chroma { color: #f8f8f2; background-color: #272822 }
/* Error */ .chroma .ss4 { color: #960050; background-color: #1e0010 }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc; display: block; width: 100% }
/* LineNumbers */ .chroma .ln { ; margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .s3e8 { color: #66d9ef }
/* KeywordNamespace */ .chroma .s3eb { color: #f92672 }
/* Name */ .chroma .s7d0 { }
/* Name */ .chroma .s7d0 {}
/* NameAttribute */ .chroma .s7d1 { color: #a6e22e }
/* NameClass */ .chroma .s7d4 { color: #a6e22e }
/* NameConstant */ .chroma .s7d5 { color: #66d9ef }
@@ -19,11 +19,11 @@
/* LiteralStringEscape */ .chroma .sc25 { color: #ae81ff }
/* LiteralNumber */ .chroma .sc80 { color: #ae81ff }
/* Operator */ .chroma .sfa0 { color: #f92672 }
/* Punctuation */ .chroma .s1388 { }
/* Punctuation */ .chroma .s1388 {}
/* Comment */ .chroma .s1770 { color: #75715e }
/* GenericDeleted */ .chroma .s1b59 { color: #f92672 }
/* GenericEmph */ .chroma .s1b5a { font-style: italic }
/* GenericInserted */ .chroma .s1b5d { color: #a6e22e }
/* GenericStrong */ .chroma .s1b60 { font-weight: bold }
/* GenericSubheading */ .chroma .s1b61 { color: #75715e }
/* Text */ .chroma .s1f40 { }
/* Text */ .chroma .s1f40 {}
File renamed without changes.
File renamed without changes.

0 comments on commit 3d5145f

Please sign in to comment.
You can’t perform that action at this time.