Commit Graph

1118 Commits

Author SHA1 Message Date
curben b99bcb4c26 style: Add credit to loading.svg 2019-06-10 18:23:17 +09:30
curben 6ce1173a8d fix: Remove target="_blank" in <a>
https://css-tricks.com/use-target_blank/
2019-06-09 20:35:09 +09:30
curben f5cacbeebd fix(post): Tag in titlecase 2019-06-09 14:08:19 +09:30
curben 87dbfda834 docs(post): Add 'Prevent Engadget from redirect to guce' 2019-06-09 14:07:39 +09:30
curben 6ab227fe25 fix(seo): yandex requires html tag 2019-06-08 21:16:02 +09:30
curben dee5062026 feat(seo): Add Yandex Webmaster
https://r3bl.blog/en/exploring-duckduckgo-for-smaller-websites/
2019-06-08 21:08:44 +09:30
curben b353206762 feat(seo): Add Bing Webmaster
https://r3bl.blog/en/exploring-duckduckgo-for-smaller-websites/
2019-06-08 20:13:44 +09:30
curben fb36bca7f1 refactor: use page.subtitle instead of page.excerpt
* Source file (.md) looks a bit clearer this way.
* Remove unused options in openGraph.js
2019-06-08 17:31:39 +09:30
curben 68cb50a0ab docs(readme): mention removal of jquery and fancybox 2019-06-08 15:02:47 +09:30
curben a5d1791b14 feat(search): replace gitlab search with duckduckgo
todo: algolia
2019-06-07 18:39:51 +09:30
curben 105de8515c refactor(es6): arrow function 2019-06-07 09:42:16 +09:30
curben 7fd712bba0 docs: mention vscode 2019-06-06 22:06:26 +09:30
curben 62075f46e0 docs: mention Inkdrop app 2019-06-06 21:29:41 +09:30
curben c0abc8bb40 chore(config): Remove unused config 2019-06-06 21:00:37 +09:30
curben 60fa21c1ee fix(post): Display post content without excerpt
https://hexo.io/docs/variables.html
2019-06-06 20:57:28 +09:30
curben 9d09797f7d fix(excerpt): Reduce post excerpt to one-line 2019-06-06 20:52:43 +09:30
curben 7a3f86f5b7 refactor(css): remove unused attribute 2019-06-06 19:48:13 +09:30
curben 48db9251c6 feat(archive-page): Add post excerpt 2019-06-06 19:45:50 +09:30
curben 513bd9f7e1 fix(archive-page): bold title and decrease font-size of date
* Replace px with em
* Remove unused class
2019-06-06 19:24:20 +09:30
curben cfd1b62843 fix(css): smaller title and title's margin-bottom 2019-06-05 13:37:47 +09:30
curben dec7ae72f7 feat: Add homepage link to mobile page title 2019-06-05 13:15:51 +09:30
curben ad7616ebab fix(css): use ch to set max-width and padding
https://jrl.ninja/etc/1/
https://secretgeek.github.io/html_wysiwyg/html.html
https://news.ycombinator.com/item?id=20100232
https://www.reddit.com/r/css/comments/bb73cw/58_bytes_of_css_to_look_great_nearly_everywhere/ekj8yhm/
2019-06-05 13:03:40 +09:30
curben bb87e3b914 fix: display date using <span> instead of <a>
* unify date_format options
2019-06-04 13:55:43 +09:30
curben ab5161bbc8 style: parse date only, ignore time 2019-06-04 13:35:48 +09:30
curben 8717b52283 fix(sitemap): use post.lastUpdated
* post.updated = execution time of 'hexo generate'
* use moment.format() instead of Date.toISOString() to avoid timezone conversion
  - Use '[T00:00:00.000Z]' to ignore time, instead of '[T]HH:mm:ss.sss[Z]'
  - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
2019-06-04 13:08:09 +09:30
curben fba0d3deab feat(openGraph): add post's published time to meta tag
* Rename function name to camel case (standardjs)
* Skip timezone conversion, but not using the date() helper
* Open Graph tag is based on Wordpress Yoast, noticed through
https://dvt.name/2019/06/03/hacking-the-casio-f-91w-to-handle-1000-psi/
2019-06-03 22:56:46 +09:30
curben 09c855ee43 Merge branch 'renovate/renovate-18.x' into 'master'
chore(deps): update dependency renovate to v18

See merge request curben/blog!21
2019-06-02 10:44:17 +00:00
Renovate Bot a82e2b16f4 chore(deps): update dependency renovate to v18 2019-06-02 07:36:29 +00:00
curben 2b3302bdf8 style: remove 'how to' from title and filename 2019-06-02 14:33:31 +09:30
curben b03b23e44e chore: install git
ef96081fc7 fix requires git
2019-06-02 14:31:08 +09:30
curben ef96081fc7 fix: cheerio doesn't escape '<' character
https://github.com/weyusi/hexo-nofollow/issues/4
2019-06-02 14:12:45 +09:30
curben 60d62f94f3 feat: add search function to mobile page
* add a gap after search form to prevent misclick
* use addEventListener() instead of onclick()
  - https://stackoverflow.com/a/34216918
2019-06-01 18:51:51 +09:30
curben 035dc384ee docs(post): Add 'How to embed SVG without using img tag' post 2019-06-01 18:02:36 +09:30
curben 824c11059d refactor: remove fill attribute from svg
it's already set in typing.css
2019-06-01 18:01:43 +09:30
curben c601a31b13 refactor: array in one line 2019-05-30 19:20:20 +09:30
curben 0fe5658173 fix(sitemap): remove index.html from url
a92dbbb83c
3fccc82d3a
2019-05-30 19:18:11 +09:30
curben 4a785a6cf1 fix: exclude webmaster verification file from rendering
fix(sitemap): skipRenderList shouldn't be a constant due to line 13-17
2019-05-30 18:15:15 +09:30
curben 69d7aabe63 feat: add Google Webmaster
exclude the verification file from sitemap.xml
2019-05-30 18:04:31 +09:30
curben d79e42d960 feat: add Content-Language to HTTP header
https://www.w3.org/International/questions/qa-http-and-lang
https://www.w3.org/International/questions/qa-text-processing-vs-metadata
2019-05-27 11:58:48 +09:30
curben 5def92d738 feat: add robots.txt 2019-05-27 11:58:48 +09:30
curben eb2a009ac0 feat: add sitemap.xml
https://github.com/hexojs/hexo-generator-sitemap
2019-05-27 11:58:48 +09:30
curben 0df867fc1a Merge branch 'headers' into 'master'
refactor: unify HTTP header settings into _headers

See merge request curben/blog!20
2019-05-26 05:56:37 +00:00
curben 00fbcce468 refactor: unify HTTP header settings into _headers 2019-05-26 15:09:27 +09:30
curben ab67e05c73 docs(readme): consistent badge colour 2019-05-26 11:39:03 +09:30
curben 415952ff69 docs(open_graph): add comment 2019-05-26 00:10:44 +09:30
curben cab3baeaf8 style: standardjs lint 2019-05-25 23:58:52 +09:30
curben 7ebcc03977 fix(open_graph): use data-src attribute in img tag
* compatibility with cloudinary (see scripts/cloudinary.js)
  * helper has to be registered via a function
    - https://github.com/hexojs/hexo/issues/1462#issuecomment-277474592
    - https://github.com/hexojs/hexo/issues/743#issuecomment-168262852
    - https://hexo.io/api/helper
    - https://github.com/hexojs/hexo/blob/master/lib/plugins/helper/open_graph.js
2019-05-25 22:21:44 +09:30
curben 9daf4d98b9 docs(copy-button): clarify the source of cheerio package 2019-05-25 22:20:54 +09:30
curben cf16dd3e43 refactor: move creation of 'Copy' button from client to server
* https://github.com/cheeriojs/cheerio#append-content-content--
  * cheerio doesn't have .createElement() function
    - https://code.tutsplus.com/tutorials/jquery-14-released-the-15-new-features-you-must-know--net-8590
2019-05-25 20:14:02 +09:30
curben 3dfc57dbbe refactor: replace for loop with forEach()
https://stackoverflow.com/a/34832466/9645167
2019-05-25 17:49:36 +09:30