Giter Site home page Giter Site logo

manabuyasuda / website-template Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 13.0 16.06 MB

静的Webサイト制作を少しモダンにするためのテンプレート

Home Page: https://manabuyasuda-website-template.netlify.com/styleguide/

License: MIT License

HTML 76.16% JavaScript 4.31% CSS 18.74% Vue 0.79%
pug sass aigis gulp ecss ssi svg-sprite stylelint eslint prettier

website-template's Issues

ES2015に対応する

いわゆる普通のWebサイト制作にES2015は現時点でオーバースペックな面もある。
例えば、JQueryプラグインがあるような状況。

現状ではjsファイルを個別に書いて、commonとmoduleでそれぞれ連結、commonを先に読み込むことで依存関係を解決している。
ES2015を導入する場合、モジュールの依存関係はどのように解決するのがいいのか、必要な構文だけ使うようにするのか。

.st-Grids間に余白を追加する

現状では2カラムと3カラムのような指定を組み合わせるとそれぞれの間に縦の余白がつかない。
.st-Gridsが並列に並んでいる場合には.st-Grids_Item内に指定している余白と同じ値が.st-Gridsと.st-Gridsの間につくようにする。

.st-Gridsに5カラムを追加する

現状では複雑に打ち消し合っているけど、切り替わるごとにリセットして必要な余白をつける、ような書き方にできたらしたい。

.st-Gridsにバリエーションを追加する

均等なグリッドだけでなく、8:4や7:3のような比率も作っておく。同じパターンが続くときはひとつの.st-Grids内で完結して、違うパターンになるときは別の.st-Gridsを並列で記述する。
切り替わるタイミングで要素順が変更できるようにもしておく。ただし、3つ以上の要素がある場合はリバースはできない。

名前は.st-Grids-col8to4のようにする。

yarnの導入

パッケージのバージョンを固定したいので、yarnを導入する。

Pugのディレクトリ名を変更

インクルードするときのパスが意味の通るものにしたい。

現状

  • include /_include/_meta.pug
  • include /_include/_layout.pug

改良後

  • include /_partial/_meta.pug
  • include /_partial/_default-template.pug

もしくは

  • include /_partial/_meta.pug
  • include /_template/_default.pug

canonicalタグの導入

ページの評価を1つにまとめるためにcanonicalタグを追加する。
URLはsite.rootUrl + pageRootPathで取得可能。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.