このサイトの構築について
- Published on
- 1 min read
Overview
A blog created with Next.js and Tailwind.css
なぜ Tailwind にしたか
-
VScode を使いながら markdown 形式でブログを書ける。
-
nextjs を使っていてロードが速い。
-
Hugo や Ghost, Blogger なども試したが、最終的に色々カスタムできる Tailwind に落ち着いた。
使用したもの
テーマ
Tailwind Github: https://github.com/ryuhat/tailwind-blog
サーバー
Vercel: https://vercel.com/
python コードサンプル
コードのコピーが簡単。(右上をクリック)
def fib():
a, b = 0, 1
while True: # First iteration:
yield a # yield 0 to start with and then
a, b = b, a + b # a will now be 1, and b will also be 1, (0 + 1)
for index, fibonacci_number in zip(range(10), fib()):
print('{i:3}: {f:3}'.format(i=index, f=fibonacci_number))