diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..50dd04c --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,35 @@ +name: Hugo + +on: [push] + +jobs: + build: + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + - name: Add key + run: | + mkdir $HOME/.ssh && \ + echo "${{ secrets.SSH_PRIVATE_KEY }}" > $HOME/.ssh/id_rsa + - name: Grab packages + run: | + apt-get update && \ + apt-get install -y jq rsync tar wget && \ + wget https://github.com/gohugoio/hugo/releases/download/v0.123.6/hugo_extended_0.123.6_linux-amd64.tar.gz && \ + tar -xzvf hugo_extended_0.123.6_linux-amd64.tar.gz && \ + chmod +x hugo + - name: Run build task + run: ./hugo --minify --logLevel info + - name: Test static page + run: bash ${{ gitea.workspace }}/bin/test_static_page.sh + - name: Deploy to Server + uses: easingthemes/ssh-deploy@main + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "public/" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.REMOTE_TARGET }} \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index ca3c273..b2047ce 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,29 +5,18 @@ theme = "agnes-hugo-theme" [params] dateFormat = "Jan 2, 2023" - authorName = "Bellas Keys" -# google_analytics_id = "GA-" + authorName = "Bella" [menu] - [[menu.main]] - Name = "Contact" - URL = "#" - weight = 1 - - [[menu.main]] - Name = "About us" - URL = "#" - weight = 2 - - [[menu.main]] - Name = "FAQ's" - URL = "#" - weight = 3 - - [[menu.main]] - Name = "Support" - URL = "#" - weight = 4 + [[menu.external]] + name = "Contact" + url = "#" + weight = 1 + + [[menu.external]] + name = "About us" + url = "#" + weight = 2 [params.social] TwitterURL = "http://google.com" @@ -64,10 +53,19 @@ theme = "agnes-hugo-theme" ################### Quote #################### -[[params.quote]] - quoteText = "Lorem ipsum dolor sit amet. Proin neque velit, molestie et interdum vitae, feugiat vitae erat. Integer imperdiet quis." - quoteBy = "lorem ipsum" - +[[params.sold]] + [[params.sold.Icon]] + LogoURL = "https://seeklogo.com/images/X/xbox-logo-30362ED98F-seeklogo.com.png" + CSS = "" + [[params.sold.Icon]] + LogoURL = "https://seeklogo.com/images/G/gamestop-logo-AB1F19187B-seeklogo.com.png" + CSS = "inverted" + [[params.sold.Icon]] + LogoURL = "https://seeklogo.com/images/P/playstation-logo-6D0C7C9B30-seeklogo.com.png" + CSS = "inverted" + [[params.sold.Icon]] + LogoURL = "https://seeklogo.com/images/G/google-play-logo-E0550702F1-seeklogo.com.png" + CSS = "" ################### Pricing Columns #################### diff --git a/themes/agnes-hugo-theme/hugo.toml b/themes/agnes-hugo-theme/hugo.toml deleted file mode 100644 index 938865a..0000000 --- a/themes/agnes-hugo-theme/hugo.toml +++ /dev/null @@ -1 +0,0 @@ -# Theme config. diff --git a/themes/agnes-hugo-theme/layouts/index.html b/themes/agnes-hugo-theme/layouts/index.html index 4184534..d94a008 100644 --- a/themes/agnes-hugo-theme/layouts/index.html +++ b/themes/agnes-hugo-theme/layouts/index.html @@ -11,7 +11,7 @@
{{ .Site.Params.Content.ButtonCaption | markdownify }}
@@ -20,16 +20,15 @@
- {{ with .Site.Params.quote }}
- - {{ .quoteBy }}
-
+ {{ .quoteText }}
-
+
{{ end }}
-