소스 검색

Update Hugo

master
Chris Smith 5 년 전
부모
커밋
6155da3d1d
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    2
      Dockerfile
  2. 1
    0
      site/content/index/index.md

+ 1
- 2
Dockerfile 파일 보기

7
 	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends python-pygments git ca-certificates asciidoc \
7
 	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends python-pygments git ca-certificates asciidoc \
8
 	&& rm -rf /var/lib/apt/lists/*
8
 	&& rm -rf /var/lib/apt/lists/*
9
 
9
 
10
-ENV HUGO_VERSION 0.26
10
+ENV HUGO_VERSION 0.53
11
 ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
11
 ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
12
 
12
 
13
 ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
13
 ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
14
 RUN dpkg -i /tmp/hugo.deb \
14
 RUN dpkg -i /tmp/hugo.deb \
15
 	&& rm /tmp/hugo.deb
15
 	&& rm /tmp/hugo.deb
16
 
16
 
17
-USER nobody:nogroup
18
 ADD site /tmp/site
17
 ADD site /tmp/site
19
 RUN hugo -b https://www.chameth.com/ -v -s /tmp/site -d /tmp/hugo && \
18
 RUN hugo -b https://www.chameth.com/ -v -s /tmp/site -d /tmp/hugo && \
20
 	cp /tmp/hugo/index.xml /tmp/hugo/feed.xml
19
 	cp /tmp/hugo/index.xml /tmp/hugo/feed.xml

+ 1
- 0
site/content/index/index.md 파일 보기

1
 ---
1
 ---
2
 title: Content listing
2
 title: Content listing
3
 url: /index/
3
 url: /index/
4
+type: index
4
 ---
5
 ---

Loading…
취소
저장