team-durumi / kctu-photo

민주노총 사진아카이브
https://kctu-photo.durumi.io/
MIT License
0 stars 0 forks source link

민주노총사진아카이브

development

hugo v0.115.0+extended

hugo project scaffold로 시작합니다.

go module init & update

tailwind-aa-theme

hugo 프로젝트 최상위 폴더로 돌아와서 npm 설치합니다.

hugo mod npm pack
npm install
hugo server -D

Netlify build command

hugo mod tidy && hugo --gc --minify

items rclone sync

$ rclone sync --progress aa-data:kctu-photo /workspaces/kctu-photo/content/items
$ find . -type f -name '*.md' -print # double-check things that would be deleted
$ find . -type f -name '*.md' -print -delete 
$ find . -type d -name '@eaDir' -print

Data

items

items(mac)

https://docs.datafabric.hpe.com/62/AdministratorGuide/MountingNFSonMacClient.html

showmount -e 218.235.95.188
sudo mount -t nfs -o vers=3 218.235.95.188:/volume1/photo_archives /Users/woonjjang/data

Transferred: 13.160Gi / 13.160 GiByte, 100%, 19.877 MiByte/s, ETA 0s Transferred: 4843 / 4843, 100%

민주노총 아카이브 태그 기준(taxonomy)

hugo build stats (8284 items, 1분 20초)

find content/items -type f | wc -l
8284
ubuntu@hugo:~/kctu-photo$ time hugo --gc --minify
Start building sites … 
hugo v0.89.2-63E3A5EB+extended linux/amd64 BuildDate=2021-11-08T15:22:24Z VendorInfo=gohugoio

                   |  EN   
-------------------+-------
  Pages            | 9062  
  Paginator pages  |  420  
  Non-page files   |    0  
  Static files     |   10  
  Processed images |    0  
  Aliases          |  348  
  Sitemaps         |    1  
  Cleaned          |    2  

Total in 67322 ms

real    1m7.415s
user    1m20.514s
sys     0m7.423s