Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
refactor(comment): delete useless comments (close #170)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsuji_no_shippo committed Jan 28, 2020
1 parent 7f7f513 commit 510ddbf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
:!author-email:
:author: {author-name}
:!email: {author-email}
:revnumber: v1.72.0
:revdate: 2020-01-27T14:24:34+0900
:revremark: Add log that add slug to `og:url` meta in index pages.
:revnumber: Branch refactor/collect-codes-to-one-directory-and-update-prop-types \
v1.0.0 (Base v1.72.0)
:revdate: 2020-01-28T12:56:52+0900
:revremark: Add log that delete useless comments.
:doctype: article
:description: gatsby-simple-blog-with-asciidoctor Change Log
:title:
Expand Down Expand Up @@ -45,7 +46,7 @@ ifndef::env-github[:icons: font]
:gatsby-transformer-asciidoc-url: {hitsuji-no-shippo-github-profile-url}/gatsby-transformer-asciidoc
:gatsby-transformer-asciidoc-link: link:{gatsby-transformer-asciidoc-url}[ \
gatsby-transformer-asciidoc^]
== 0.4.0 (2020-01-27)
== 0.4.0 (2020-01-28)

=== Breaking Changes

Expand Down Expand Up @@ -115,6 +116,7 @@ ifndef::env-github[:icons: font]
* `time` => `timeToRead`
--
* Collect `LanguageBar` component codes. (close link:{issues-url}/155[#155^])
* Delete useless comments. (close link:{issues-url}/170[#170^])

=== Docs

Expand Down
1 change: 0 additions & 1 deletion src/templates/tag-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React from 'react';
import PropTypes from 'prop-types';

// Components
import { graphql } from 'gatsby';

import Layout from 'components/Layout';
Expand Down
2 changes: 0 additions & 2 deletions src/templates/tags.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';

// Utilities
import { kebabCase } from 'utils/helpers';

// Components
import { Helmet } from 'react-helmet';
import { graphql } from 'gatsby';

Expand Down
2 changes: 0 additions & 2 deletions src/utils/helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
function formatReadingTime(minutes) {
const cups = Math.round(minutes / 5);
// let bowls = 0;
if (cups > 5) {
return `${new Array(Math.round(cups / Math.E)).fill('🍱').join('')} ${minutes} min read`;
}
Expand All @@ -9,7 +8,6 @@ function formatReadingTime(minutes) {

function haveSameItem(arr1 = [], arr2 = []) {
if (arr1 == null || arr2 == null) {
// false for no tags
return false;
}
const s = new Set([...arr1, ...arr2]);
Expand Down

0 comments on commit 510ddbf

Please sign in to comment.