2020年6月28日日曜日

開発環境

Build Websites With Hugo: Fast Web Development With Markdown (Brian P. Hogan(著)、Pragmatic Bookshelf)のChapter 1(Kicking the Tires)、Your Turn 1.の解答を求めてみる。

入出力結果(Zsh、PowerShell、Terminal)

% tree public
public
├── about
│   └── index.html
├── categories
│   └── index.xml
├── index.html
├── index.xml
├── sitemap.xml
└── tags
    └── index.xml

3 directories, 6 files
% perl -p -w -i -e "s/false/true/" content/about.md
% hugo --cleanDestinationDir

                   | EN  
-------------------+-----
  Pages            |  4  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 10 ms
% tree public                                      
public
├── categories
│   └── index.xml
├── index.html
├── index.xml
├── sitemap.xml
└── tags
    └── index.xml

2 directories, 5 files
% perl -p -w -i -e "s/true/false/" content/about.md
% hugo
                   | EN  
-------------------+-----
  Pages            |  5  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 9 ms
% tree public 
public
├── about
│   └── index.html
├── categories
│   └── index.xml
├── index.html
├── index.xml
├── sitemap.xml
└── tags
    └── index.xml

3 directories, 6 files
% 

0 コメント:

コメントを投稿