Skip to content

Commit

Permalink
Update deprecated items
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriadrake committed Nov 12, 2024
1 parent db537d6 commit ad1baff
Show file tree
Hide file tree
Showing 60 changed files with 782 additions and 503 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-to-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
- run: npm i -g postcss postcss-cli autoprefixer
- name: 🤵 Install Hugo
run: |
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
mkdir tmp/ && cd tmp/
curl -sSL https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION: -6}_Linux-64bit.tar.gz | tar -xvzf-
sudo mv hugo /usr/local/bin/
cd .. && rm -rf tmp/
hugo version
sudo apt-get install jq
HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name')
curl -sSL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION:1}_linux-amd64.deb" -o hugo.deb
sudo dpkg -i hugo.deb
hugo version
- name: 🧹 Clean site
run: |
if [ -d "docs" ]; then
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
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']
hugo: ['0.135.0', '0.136.5', '0.137.1', '0.138.0']

fail-fast: true


steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: lts/*
- name: Install tools
run: |
sudo apt install curl jq
npm i -g postcss postcss-cli autoprefixer
- name: Test with Hugo ${{ matrix.hugo }}
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ matrix.hugo }}
extended: true

- name: Build with Hugo ${{ matrix.hugo }}
run: |
cd exampleSite
HUGO_THEME="hugo-theme-sam" hugo --themesDir ../.. -v
cd exampleSite && HUGO_THEME="hugo-theme-introduction" hugo --themesDir ../..
- name: Test HTML from Hugo ${{ matrix.hugo }}
run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Preview the theme by cloning this repository and running the example site.

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

## Requirements
Expand Down
31 changes: 17 additions & 14 deletions docs/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@



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



Expand All @@ -39,22 +39,25 @@

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

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

<meta name="twitter:title" content="About"/>
<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.
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
<meta name="twitter:title" content="About">
<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.
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.
I also have a simple responsive gallery feature."/>
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.">

<meta property="og:title" content="About" />
<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.
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/about/">
<meta property="og:site_name" content="Call me Sam">
<meta property="og:title" content="About">
<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.
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.
I also have a simple responsive gallery feature." />
<meta property="og:type" content="article" />
<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="" />
<meta property="article:published_time" content="2018-02-13T13:42:49-05:00" />
<meta property="article:modified_time" content="2018-02-13T13:42:49-05:00" /><meta property="og:site_name" content="Call me Sam" />
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.">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="article">
<meta property="article:published_time" content="2018-02-13T13:42:49-05:00">
<meta property="article:modified_time" content="2018-02-13T13:42:49-05:00">
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">



Expand Down Expand Up @@ -118,7 +121,7 @@ <h1>About</h1>


&#183;
<a href="/hugo-theme-sam">
<a href="/hugo-theme-sam/">
main
</a>

Expand Down
23 changes: 13 additions & 10 deletions docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@



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



Expand All @@ -39,16 +39,19 @@

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

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

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

<meta property="og:title" content="Categories" />
<meta property="og:description" content="A new Hugo site." />
<meta property="og:type" content="website" />
<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" />
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/categories/">
<meta property="og:site_name" content="Call me Sam">
<meta property="og:title" content="Categories">
<meta property="og:description" content="A new Hugo site.">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">



Expand Down Expand Up @@ -113,7 +116,7 @@ <h1>Categories</h1>


&#183;
<a href="/hugo-theme-sam">
<a href="/hugo-theme-sam/">
main
</a>

Expand Down
5 changes: 3 additions & 2 deletions docs/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<title>Categories on Call me Sam</title>
<link>https://victoria.dev/hugo-theme-sam/categories/</link>
<description>Recent content in Categories on Call me Sam</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language><atom:link href="https://victoria.dev/hugo-theme-sam/categories/index.xml" rel="self" type="application/rss+xml" />
<generator>Hugo</generator>
<language>en-us</language>
<atom:link href="https://victoria.dev/hugo-theme-sam/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
Binary file added docs/gallery/900-1_hu9259351468726912843.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-2_hu330389906788828422.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-3_hu2259440045556386736.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-4_hu682504091084337767.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-5_hu16412114323739045398.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-6_hu4610484697779248153.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-7_hu7024342435079568275.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/900-8_hu16436137882615830447.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 31 additions & 26 deletions docs/gallery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@



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



Expand All @@ -44,16 +44,21 @@

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

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

<meta name="twitter:title" content="Photos from Tokyo"/>
<meta name="twitter:description" content="A new Hugo site."/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://victoria.dev/hugo-theme-sam/tn.png">
<meta name="twitter:title" content="Photos from Tokyo">
<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.
By the way, Victoria took these photos while traveling. You can find some of them on her nomad blog.">

<meta property="og:title" content="Photos from Tokyo" />
<meta property="og:description" content="A new Hugo site." />
<meta property="og:type" content="website" />
<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" />
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/gallery/">
<meta property="og:site_name" content="Call me Sam">
<meta property="og:title" content="Photos from Tokyo">
<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.
By the way, Victoria took these photos while traveling. You can find some of them on her nomad blog.">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">



Expand Down Expand Up @@ -91,57 +96,57 @@ <h1>Photos from Tokyo</h1>


<div>
<a href="/hugo-theme-sam/gallery/900-4.jpg" data-size="900x900">
<img src="/hugo-theme-sam/gallery/900-4_hue0a4b521f04757bb988f8b7d57a5bf61_447455_800x0_resize_q75_box.jpg" alt="900-4.jpg" data-index="0"/>
<a href="/hugo-theme-sam/gallery/900-6.jpg" data-size="900x775">
<img src="/hugo-theme-sam/gallery/900-6_hu4610484697779248153.jpg" alt="900-6.jpg" data-index="0"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-5.jpg" data-size="900x1125">
<img src="/hugo-theme-sam/gallery/900-5_hu223faad3e53c1beaffb68f39cabc9068_195555_800x0_resize_q75_box.jpg" alt="900-5.jpg" data-index="1"/>
<a href="/hugo-theme-sam/gallery/900-8.jpg" data-size="900x1125">
<img src="/hugo-theme-sam/gallery/900-8_hu16436137882615830447.jpg" alt="900-8.jpg" data-index="1"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-8.jpg" data-size="900x1125">
<img src="/hugo-theme-sam/gallery/900-8_hu954089c55d67e1807a5a74fcfe45013c_387718_800x0_resize_q75_box.jpg" alt="900-8.jpg" data-index="2"/>
<a href="/hugo-theme-sam/gallery/900-3.jpg" data-size="900x760">
<img src="/hugo-theme-sam/gallery/900-3_hu2259440045556386736.jpg" alt="900-3.jpg" data-index="2"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-2.jpg" data-size="900x675">
<img src="/hugo-theme-sam/gallery/900-2_hub02b8b0dfe97fb3ff84a9d585d02b975_125262_800x0_resize_q75_box.jpg" alt="900-2.jpg" data-index="3"/>
<a href="/hugo-theme-sam/gallery/900-1.jpg" data-size="900x675">
<img src="/hugo-theme-sam/gallery/900-1_hu9259351468726912843.jpg" alt="900-1.jpg" data-index="3"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-3.jpg" data-size="900x760">
<img src="/hugo-theme-sam/gallery/900-3_hu1c92bb71562faf09560e20ac3018f319_190608_800x0_resize_q75_box.jpg" alt="900-3.jpg" data-index="4"/>
<a href="/hugo-theme-sam/gallery/900-7.jpg" data-size="900x900">
<img src="/hugo-theme-sam/gallery/900-7_hu7024342435079568275.jpg" alt="900-7.jpg" data-index="4"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-1.jpg" data-size="900x675">
<img src="/hugo-theme-sam/gallery/900-1_hub11aa64b32dc58324b6713c93673dbd7_198333_800x0_resize_q75_box.jpg" alt="900-1.jpg" data-index="5"/>
<a href="/hugo-theme-sam/gallery/900-5.jpg" data-size="900x1125">
<img src="/hugo-theme-sam/gallery/900-5_hu16412114323739045398.jpg" alt="900-5.jpg" data-index="5"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-6.jpg" data-size="900x775">
<img src="/hugo-theme-sam/gallery/900-6_hu2f71d947fccfff06ad329d64103fe2e4_201644_800x0_resize_q75_box.jpg" alt="900-6.jpg" data-index="6"/>
<a href="/hugo-theme-sam/gallery/900-2.jpg" data-size="900x675">
<img src="/hugo-theme-sam/gallery/900-2_hu330389906788828422.jpg" alt="900-2.jpg" data-index="6"/>
</a>
</div>


<div>
<a href="/hugo-theme-sam/gallery/900-7.jpg" data-size="900x900">
<img src="/hugo-theme-sam/gallery/900-7_hue76b70013fd5ae7158604754d48ceecd_230577_800x0_resize_q75_box.jpg" alt="900-7.jpg" data-index="7"/>
<a href="/hugo-theme-sam/gallery/900-4.jpg" data-size="900x900">
<img src="/hugo-theme-sam/gallery/900-4_hu682504091084337767.jpg" alt="900-4.jpg" data-index="7"/>
</a>
</div>

Expand Down Expand Up @@ -257,7 +262,7 @@ <h1>Photos from Tokyo</h1>


&#183;
<a href="/hugo-theme-sam">
<a href="/hugo-theme-sam/">
main
</a>

Expand Down
5 changes: 3 additions & 2 deletions docs/gallery/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<title>Photos from Tokyo on Call me Sam</title>
<link>https://victoria.dev/hugo-theme-sam/gallery/</link>
<description>Recent content in Photos from Tokyo on Call me Sam</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language><atom:link href="https://victoria.dev/hugo-theme-sam/gallery/index.xml" rel="self" type="application/rss+xml" />
<generator>Hugo</generator>
<language>en-us</language>
<atom:link href="https://victoria.dev/hugo-theme-sam/gallery/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
23 changes: 13 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<meta name="generator" content="Hugo 0.83.1" />
<meta name="generator" content="Hugo 0.138.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
Expand All @@ -25,7 +25,7 @@



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



Expand All @@ -39,16 +39,19 @@

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

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

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

<meta property="og:title" content="Call me Sam" />
<meta property="og:description" content="A new Hugo site." />
<meta property="og:type" content="website" />
<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" />
<meta property="og:url" content="https://victoria.dev/hugo-theme-sam/">
<meta property="og:site_name" content="Call me Sam">
<meta property="og:title" content="Call me Sam">
<meta property="og:description" content="A new Hugo site.">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">
<meta property="og:image" content="https://victoria.dev/hugo-theme-sam/tn.png">



Expand Down
Loading

0 comments on commit ad1baff

Please sign in to comment.