Skip to content

Commit

Permalink
adding HUGO
Browse files Browse the repository at this point in the history
  • Loading branch information
cudabu committed Apr 7, 2024
1 parent 29efefa commit 086f5c1
Show file tree
Hide file tree
Showing 26 changed files with 996 additions and 2 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.124.0
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "quickstart/themes/ananke"]
path = quickstart/themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
Empty file added .hugo_build.lock
Empty file.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
11 changes: 11 additions & 0 deletions content/posts/my-first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = 'My First Post'
date = 2024-04-07T16:52:12-05:00
draft = false
+++

## Introduction

This is **bold** text, and this is *emphasized* text.

Visit the [Hugo](https://gohugo.io) website!
4 changes: 4 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL = 'https://www.cudabu.io/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'ananke'
1 change: 0 additions & 1 deletion index.html

This file was deleted.

100 changes: 100 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>My New Hugo Site</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="">
<meta name="generator" content="Hugo 0.124.1">




<meta name="robots" content="noindex, nofollow">



<link rel="stylesheet" href="/ananke/css/main.min.css" >













<link rel="canonical" href="https://www.cudabu.io/404.html">


<meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.cudabu.io/404.html" />
<meta itemprop="name" content="404 Page not found">
<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="404 Page not found"/>
<meta name="twitter:description" content=""/>


</head>

<body class="ma0 avenir bg-near-white">



<header>
<div class="bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">

My New Hugo Site

</a>
<div class="flex-l items-center">




<div class="ananke-socials">

</div>

</div>
</div>
</nav>

</div>
</header>


<main class="pb7" role="main">

<article class="center cf pv5 measure-wide-l">
<h1>
This is not the page you were looking for
</h1>
</article>

</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="https://www.cudabu.io/" >
&copy; My New Hugo Site 2024
</a>
<div>
<div class="ananke-socials">

</div>
</div>
</div>
</footer>

</body>
</html>
13 changes: 13 additions & 0 deletions public/ananke/css/main.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/ananke/css/main.min.css

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions public/categories/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>My New Hugo Site</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="">
<meta name="generator" content="Hugo 0.124.1">




<meta name="robots" content="noindex, nofollow">



<link rel="stylesheet" href="/ananke/css/main.min.css" >












<link href="/categories/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Site" />
<link href="/categories/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Site" />




<link rel="canonical" href="https://www.cudabu.io/categories/">


<meta property="og:title" content="Categories" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.cudabu.io/categories/" />
<meta itemprop="name" content="Categories">
<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Categories"/>
<meta name="twitter:description" content=""/>


</head>

<body class="ma0 avenir bg-near-white">



<header>
<div class="pb3-m pb6-l bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">

My New Hugo Site

</a>
<div class="flex-l items-center">




<div class="ananke-socials">

</div>

</div>
</div>
</nav>

<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
Categories
</h1>

</div>
</div>
</header>


<main class="pb7" role="main">


<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links mid-gray">

</div>
</article>
<div class="mw8 center">
<section class="ph4">

</section>
</div>

</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="https://www.cudabu.io/" >
&copy; My New Hugo Site 2024
</a>
<div>
<div class="ananke-socials">

</div>
</div>
</div>
</footer>

</body>
</html>
11 changes: 11 additions & 0 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on My New Hugo Site</title>
<link>https://www.cudabu.io/categories/</link>
<description>Recent content in Categories on My New Hugo Site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://www.cudabu.io/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 086f5c1

Please sign in to comment.