Skip to content

Commit 882c13d

Browse files
committed
Update deprecated items
1 parent db537d6 commit 882c13d

File tree

60 files changed

+786
-503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+786
-503
lines changed

.github/workflows/build-to-docs.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ jobs:
2525
- run: npm i -g postcss postcss-cli autoprefixer
2626
- name: 🤵 Install Hugo
2727
run: |
28-
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
29-
mkdir tmp/ && cd tmp/
30-
curl -sSL https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION: -6}_Linux-64bit.tar.gz | tar -xvzf-
31-
sudo mv hugo /usr/local/bin/
32-
cd .. && rm -rf tmp/
33-
hugo version
28+
sudo apt-get install jq
29+
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
30+
curl -sSL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION:1}_linux-amd64.deb" -o hugo.deb
31+
sudo dpkg -i hugo.deb
32+
hugo version
3433
- name: 🧹 Clean site
3534
run: |
3635
if [ -d "docs" ]; then

.github/workflows/test-versions.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,36 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
hugo: ['0.49.2', '0.50', '0.51', '0.52', '0.53', '0.54.0', '0.55.0', '0.56.0', '0.57.0', '0.58.0', '0.59.0', '0.60.0', '0.61.0', '0.62.0', '0.63.0', '0.64.0', '0.65.0', '0.66.0', '0.67.0']
13+
hugo: ['0.135.0', '0.136.5', '0.137.1', '0.138.0']
1414

1515
fail-fast: true
1616

1717

1818
steps:
19-
- uses: actions/checkout@master
19+
- uses: actions/checkout@v4
2020

2121
- name: Set up Node
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 12.x
24+
node-version: lts/*
2525
- name: Install tools
2626
run: |
2727
sudo apt install curl jq
2828
npm i -g postcss postcss-cli autoprefixer
2929
3030
- name: Test with Hugo ${{ matrix.hugo }}
31-
uses: peaceiris/actions-hugo@v2
31+
uses: peaceiris/actions-hugo@v3
3232
with:
3333
hugo-version: ${{ matrix.hugo }}
3434
extended: true
3535

36+
- name: Update Submodules to Latest
37+
run: |
38+
git submodule update --init --recursive --remote
39+
3640
- name: Build with Hugo ${{ matrix.hugo }}
3741
run: |
38-
cd exampleSite
39-
HUGO_THEME="hugo-theme-sam" hugo --themesDir ../.. -v
42+
cd exampleSite && HUGO_THEME="hugo-theme-sam" hugo --themesDir ../..
4043
4144
- name: Test HTML from Hugo ${{ matrix.hugo }}
4245
run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Preview the theme by cloning this repository and running the example site.
3232

3333
```sh
3434
git clone https://github.com/victoriadrake/hugo-theme-sam.git themes/sam
35-
cd exampleSite && HUGO_THEME="hugo-theme-sam" hugo server --themesDir ../.. -v
35+
cd exampleSite && HUGO_THEME="hugo-theme-sam" hugo server --themesDir ../..
3636
```
3737

3838
## Requirements

docs/about/index.html

+17-14
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727

28-
<link rel="stylesheet" href="/hugo-theme-sam/css/main.min.c5514d3530979d291f3497facc20da1cec870028dbc2a3630b64bab8721bbe49.css" integrity="sha256-xVFNNTCXnSkfNJf6zCDaHOyHACjbwqNjC2S6uHIbvkk=" crossorigin="anonymous" media="screen">
28+
<link rel="stylesheet" href="/hugo-theme-sam/sass/style.sass" integrity="" crossorigin="anonymous" media="screen">
2929

3030

3131

@@ -39,22 +39,25 @@
3939

4040
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Didact+Gothic">
4141

42-
<meta name="twitter:card" content="summary_large_image"/>
43-
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/>
4442

45-
<meta name="twitter:title" content="About"/>
46-
<meta name="twitter:description" content="Hello, I&rsquo;m Sam. I&rsquo;m a theme for Hugo. I&rsquo;m an extremely customizable, content-focused theme that lets you showcase your work your way. I&rsquo;m open source on GitHub.
43+
<meta name="twitter:card" content="summary_large_image">
44+
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
45+
<meta name="twitter:title" content="About">
46+
<meta name="twitter:description" content="Hello, I’m Sam. I’m a theme for Hugo. I’m an extremely customizable, content-focused theme that lets you showcase your work your way. I’m open source on GitHub.
4747
I have slick minimalist templates for list pages (such as a list of blog posts) and single pages (a page to read one blog post). You can use tags on your content, and view content by tags.
48-
I also have a simple responsive gallery feature."/>
48+
I also have a simple responsive gallery feature. It’ll look great on any screen, and all you have to do is provide a folder of images.">
4949

50-
<meta property="og:title" content="About" />
51-
<meta property="og:description" content="Hello, I&rsquo;m Sam. I&rsquo;m a theme for Hugo. I&rsquo;m an extremely customizable, content-focused theme that lets you showcase your work your way. I&rsquo;m open source on GitHub.
50+
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/about/">
51+
<meta property="og:site_name" content="Call me Sam">
52+
<meta property="og:title" content="About">
53+
<meta property="og:description" content="Hello, I’m Sam. I’m a theme for Hugo. I’m an extremely customizable, content-focused theme that lets you showcase your work your way. I’m open source on GitHub.
5254
I have slick minimalist templates for list pages (such as a list of blog posts) and single pages (a page to read one blog post). You can use tags on your content, and view content by tags.
53-
I also have a simple responsive gallery feature." />
54-
<meta property="og:type" content="article" />
55-
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/about/" /><meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/><meta property="article:section" content="" />
56-
<meta property="article:published_time" content="2018-02-13T13:42:49-05:00" />
57-
<meta property="article:modified_time" content="2018-02-13T13:42:49-05:00" /><meta property="og:site_name" content="Call me Sam" />
55+
I also have a simple responsive gallery feature. It’ll look great on any screen, and all you have to do is provide a folder of images.">
56+
<meta property="og:locale" content="en_us">
57+
<meta property="og:type" content="article">
58+
<meta property="article:published_time" content="2018-02-13T13:42:49-05:00">
59+
<meta property="article:modified_time" content="2018-02-13T13:42:49-05:00">
60+
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
5861

5962

6063

@@ -118,7 +121,7 @@ <h1>About</h1>
118121

119122

120123
&#183;
121-
<a href="/hugo-theme-sam">
124+
<a href="/hugo-theme-sam/">
122125
main
123126
</a>
124127

docs/categories/index.html

+13-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727

28-
<link rel="stylesheet" href="/hugo-theme-sam/css/main.min.c5514d3530979d291f3497facc20da1cec870028dbc2a3630b64bab8721bbe49.css" integrity="sha256-xVFNNTCXnSkfNJf6zCDaHOyHACjbwqNjC2S6uHIbvkk=" crossorigin="anonymous" media="screen">
28+
<link rel="stylesheet" href="/hugo-theme-sam/sass/style.sass" integrity="" crossorigin="anonymous" media="screen">
2929

3030

3131

@@ -39,16 +39,19 @@
3939

4040
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Didact+Gothic">
4141

42-
<meta name="twitter:card" content="summary_large_image"/>
43-
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/>
4442

45-
<meta name="twitter:title" content="Categories"/>
46-
<meta name="twitter:description" content="A new Hugo site."/>
43+
<meta name="twitter:card" content="summary_large_image">
44+
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
45+
<meta name="twitter:title" content="Categories">
46+
<meta name="twitter:description" content="A new Hugo site.">
4747

48-
<meta property="og:title" content="Categories" />
49-
<meta property="og:description" content="A new Hugo site." />
50-
<meta property="og:type" content="website" />
51-
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/categories/" /><meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/><meta property="og:site_name" content="Call me Sam" />
48+
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/categories/">
49+
<meta property="og:site_name" content="Call me Sam">
50+
<meta property="og:title" content="Categories">
51+
<meta property="og:description" content="A new Hugo site.">
52+
<meta property="og:locale" content="en_us">
53+
<meta property="og:type" content="website">
54+
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
5255

5356

5457

@@ -113,7 +116,7 @@ <h1>Categories</h1>
113116

114117

115118
&#183;
116-
<a href="/hugo-theme-sam">
119+
<a href="/hugo-theme-sam/">
117120
main
118121
</a>
119122

docs/categories/index.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<title>Categories on Call me Sam</title>
55
<link>https://victoria.dev/hugo-theme-sam/categories/</link>
66
<description>Recent content in Categories on Call me Sam</description>
7-
<generator>Hugo -- gohugo.io</generator>
8-
<language>en-us</language><atom:link href="https://victoria.dev/hugo-theme-sam/categories/index.xml" rel="self" type="application/rss+xml" />
7+
<generator>Hugo</generator>
8+
<language>en-us</language>
9+
<atom:link href="https://victoria.dev/hugo-theme-sam/categories/index.xml" rel="self" type="application/rss+xml" />
910
</channel>
1011
</rss>
66.5 KB
Loading
39.6 KB
Loading
57.9 KB
Loading
157 KB
Loading
51 KB
Loading
53.6 KB
Loading
73.2 KB
Loading
127 KB
Loading

docs/gallery/index.html

+31-26
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727

28-
<link rel="stylesheet" href="/hugo-theme-sam/css/main.min.c5514d3530979d291f3497facc20da1cec870028dbc2a3630b64bab8721bbe49.css" integrity="sha256-xVFNNTCXnSkfNJf6zCDaHOyHACjbwqNjC2S6uHIbvkk=" crossorigin="anonymous" media="screen">
28+
<link rel="stylesheet" href="/hugo-theme-sam/sass/style.sass" integrity="" crossorigin="anonymous" media="screen">
2929

3030

3131

@@ -44,16 +44,21 @@
4444

4545
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Didact+Gothic">
4646

47-
<meta name="twitter:card" content="summary_large_image"/>
48-
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/>
4947

50-
<meta name="twitter:title" content="Photos from Tokyo"/>
51-
<meta name="twitter:description" content="A new Hugo site."/>
48+
<meta name="twitter:card" content="summary_large_image">
49+
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
50+
<meta name="twitter:title" content="Photos from Tokyo">
51+
<meta name="twitter:description" content="This responsive image gallery is rendered in random order from a folder of image files. It uses Hugo’s Image Processing to automatically resize your images while preserving the full size image’s aspect ratio. You can configure the gallery to open the full size image file when clicked, or not. You can set this text in the _index.md file in the /content/gallery/ folder.
52+
By the way, Victoria took these photos while traveling. You can find some of them on her nomad blog.">
5253

53-
<meta property="og:title" content="Photos from Tokyo" />
54-
<meta property="og:description" content="A new Hugo site." />
55-
<meta property="og:type" content="website" />
56-
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/gallery/" /><meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/><meta property="og:site_name" content="Call me Sam" />
54+
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/gallery/">
55+
<meta property="og:site_name" content="Call me Sam">
56+
<meta property="og:title" content="Photos from Tokyo">
57+
<meta property="og:description" content="This responsive image gallery is rendered in random order from a folder of image files. It uses Hugo’s Image Processing to automatically resize your images while preserving the full size image’s aspect ratio. You can configure the gallery to open the full size image file when clicked, or not. You can set this text in the _index.md file in the /content/gallery/ folder.
58+
By the way, Victoria took these photos while traveling. You can find some of them on her nomad blog.">
59+
<meta property="og:locale" content="en_us">
60+
<meta property="og:type" content="website">
61+
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
5762

5863

5964

@@ -91,57 +96,57 @@ <h1>Photos from Tokyo</h1>
9196

9297

9398
<div>
94-
<a href="/hugo-theme-sam/gallery/900-4.jpg" data-size="900x900">
95-
<img src="/hugo-theme-sam/gallery/900-4_hue0a4b521f04757bb988f8b7d57a5bf61_447455_800x0_resize_q75_box.jpg" alt="900-4.jpg" data-index="0"/>
99+
<a href="/hugo-theme-sam/gallery/900-6.jpg" data-size="900x775">
100+
<img src="/hugo-theme-sam/gallery/900-6_hu4610484697779248153.jpg" alt="900-6.jpg" data-index="0"/>
96101
</a>
97102
</div>
98103

99104

100105
<div>
101-
<a href="/hugo-theme-sam/gallery/900-5.jpg" data-size="900x1125">
102-
<img src="/hugo-theme-sam/gallery/900-5_hu223faad3e53c1beaffb68f39cabc9068_195555_800x0_resize_q75_box.jpg" alt="900-5.jpg" data-index="1"/>
106+
<a href="/hugo-theme-sam/gallery/900-8.jpg" data-size="900x1125">
107+
<img src="/hugo-theme-sam/gallery/900-8_hu16436137882615830447.jpg" alt="900-8.jpg" data-index="1"/>
103108
</a>
104109
</div>
105110

106111

107112
<div>
108-
<a href="/hugo-theme-sam/gallery/900-8.jpg" data-size="900x1125">
109-
<img src="/hugo-theme-sam/gallery/900-8_hu954089c55d67e1807a5a74fcfe45013c_387718_800x0_resize_q75_box.jpg" alt="900-8.jpg" data-index="2"/>
113+
<a href="/hugo-theme-sam/gallery/900-3.jpg" data-size="900x760">
114+
<img src="/hugo-theme-sam/gallery/900-3_hu2259440045556386736.jpg" alt="900-3.jpg" data-index="2"/>
110115
</a>
111116
</div>
112117

113118

114119
<div>
115-
<a href="/hugo-theme-sam/gallery/900-2.jpg" data-size="900x675">
116-
<img src="/hugo-theme-sam/gallery/900-2_hub02b8b0dfe97fb3ff84a9d585d02b975_125262_800x0_resize_q75_box.jpg" alt="900-2.jpg" data-index="3"/>
120+
<a href="/hugo-theme-sam/gallery/900-1.jpg" data-size="900x675">
121+
<img src="/hugo-theme-sam/gallery/900-1_hu9259351468726912843.jpg" alt="900-1.jpg" data-index="3"/>
117122
</a>
118123
</div>
119124

120125

121126
<div>
122-
<a href="/hugo-theme-sam/gallery/900-3.jpg" data-size="900x760">
123-
<img src="/hugo-theme-sam/gallery/900-3_hu1c92bb71562faf09560e20ac3018f319_190608_800x0_resize_q75_box.jpg" alt="900-3.jpg" data-index="4"/>
127+
<a href="/hugo-theme-sam/gallery/900-7.jpg" data-size="900x900">
128+
<img src="/hugo-theme-sam/gallery/900-7_hu7024342435079568275.jpg" alt="900-7.jpg" data-index="4"/>
124129
</a>
125130
</div>
126131

127132

128133
<div>
129-
<a href="/hugo-theme-sam/gallery/900-1.jpg" data-size="900x675">
130-
<img src="/hugo-theme-sam/gallery/900-1_hub11aa64b32dc58324b6713c93673dbd7_198333_800x0_resize_q75_box.jpg" alt="900-1.jpg" data-index="5"/>
134+
<a href="/hugo-theme-sam/gallery/900-5.jpg" data-size="900x1125">
135+
<img src="/hugo-theme-sam/gallery/900-5_hu16412114323739045398.jpg" alt="900-5.jpg" data-index="5"/>
131136
</a>
132137
</div>
133138

134139

135140
<div>
136-
<a href="/hugo-theme-sam/gallery/900-6.jpg" data-size="900x775">
137-
<img src="/hugo-theme-sam/gallery/900-6_hu2f71d947fccfff06ad329d64103fe2e4_201644_800x0_resize_q75_box.jpg" alt="900-6.jpg" data-index="6"/>
141+
<a href="/hugo-theme-sam/gallery/900-2.jpg" data-size="900x675">
142+
<img src="/hugo-theme-sam/gallery/900-2_hu330389906788828422.jpg" alt="900-2.jpg" data-index="6"/>
138143
</a>
139144
</div>
140145

141146

142147
<div>
143-
<a href="/hugo-theme-sam/gallery/900-7.jpg" data-size="900x900">
144-
<img src="/hugo-theme-sam/gallery/900-7_hue76b70013fd5ae7158604754d48ceecd_230577_800x0_resize_q75_box.jpg" alt="900-7.jpg" data-index="7"/>
148+
<a href="/hugo-theme-sam/gallery/900-4.jpg" data-size="900x900">
149+
<img src="/hugo-theme-sam/gallery/900-4_hu682504091084337767.jpg" alt="900-4.jpg" data-index="7"/>
145150
</a>
146151
</div>
147152

@@ -257,7 +262,7 @@ <h1>Photos from Tokyo</h1>
257262

258263

259264
&#183;
260-
<a href="/hugo-theme-sam">
265+
<a href="/hugo-theme-sam/">
261266
main
262267
</a>
263268

docs/gallery/index.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<title>Photos from Tokyo on Call me Sam</title>
55
<link>https://victoria.dev/hugo-theme-sam/gallery/</link>
66
<description>Recent content in Photos from Tokyo on Call me Sam</description>
7-
<generator>Hugo -- gohugo.io</generator>
8-
<language>en-us</language><atom:link href="https://victoria.dev/hugo-theme-sam/gallery/index.xml" rel="self" type="application/rss+xml" />
7+
<generator>Hugo</generator>
8+
<language>en-us</language>
9+
<atom:link href="https://victoria.dev/hugo-theme-sam/gallery/index.xml" rel="self" type="application/rss+xml" />
910
</channel>
1011
</rss>

docs/index.html

+13-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<meta name="generator" content="Hugo 0.83.1" />
5+
<meta name="generator" content="Hugo 0.138.0">
66
<meta charset="utf-8">
77
<meta http-equiv="X-UA-Compatible" content="chrome=1">
88
<meta name="HandheldFriendly" content="True">
@@ -25,7 +25,7 @@
2525

2626

2727

28-
<link rel="stylesheet" href="/hugo-theme-sam/css/main.min.c5514d3530979d291f3497facc20da1cec870028dbc2a3630b64bab8721bbe49.css" integrity="sha256-xVFNNTCXnSkfNJf6zCDaHOyHACjbwqNjC2S6uHIbvkk=" crossorigin="anonymous" media="screen">
28+
<link rel="stylesheet" href="/hugo-theme-sam/sass/style.sass" integrity="" crossorigin="anonymous" media="screen">
2929

3030

3131

@@ -39,16 +39,19 @@
3939

4040
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Didact+Gothic">
4141

42-
<meta name="twitter:card" content="summary_large_image"/>
43-
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/>
4442

45-
<meta name="twitter:title" content="Call me Sam"/>
46-
<meta name="twitter:description" content="A new Hugo site."/>
43+
<meta name="twitter:card" content="summary_large_image">
44+
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
45+
<meta name="twitter:title" content="Call me Sam">
46+
<meta name="twitter:description" content="A new Hugo site.">
4747

48-
<meta property="og:title" content="Call me Sam" />
49-
<meta property="og:description" content="A new Hugo site." />
50-
<meta property="og:type" content="website" />
51-
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/" /><meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png"/><meta property="og:site_name" content="Call me Sam" />
48+
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/">
49+
<meta property="og:site_name" content="Call me Sam">
50+
<meta property="og:title" content="Call me Sam">
51+
<meta property="og:description" content="A new Hugo site.">
52+
<meta property="og:locale" content="en_us">
53+
<meta property="og:type" content="website">
54+
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
5255

5356

5457

0 commit comments

Comments
 (0)