hugo quickstart
This commit is contained in:
parent
258e7bb7a4
commit
9e28847a07
31 changed files with 587 additions and 14 deletions
BIN
.cache/bin/hugo
Executable file
BIN
.cache/bin/hugo
Executable file
Binary file not shown.
BIN
.cache/hugo.tar.gz
Normal file
BIN
.cache/hugo.tar.gz
Normal file
Binary file not shown.
5
.env
Normal file
5
.env
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
|
export PATH=$PATH:${SCRIPT_DIR}/.cache/bin
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "themes/ananke"]
|
||||||
|
path = themes/ananke
|
||||||
|
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
||||||
0
.hugo_build.lock
Normal file
0
.hugo_build.lock
Normal file
30
Makefile
30
Makefile
|
|
@ -1,9 +1,29 @@
|
||||||
HUGO_BIN = cache/bin/hugo
|
CACHE_DIR = .cache/
|
||||||
|
PROJECT_SRC = ./
|
||||||
|
|
||||||
install-hugo: $(HUGO_BIN)
|
HUGO = $(CACHE_DIR)/bin/hugo
|
||||||
$(HUGO_BIN):
|
|
||||||
#mv $$(find cache -name "hugo_*_linux-amd64.tar.gz") cache/hugo.tar.gz
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setup: $(HUGO)
|
||||||
|
git submodule update --recursive --remote
|
||||||
|
|
||||||
|
server: $(HUGO)
|
||||||
|
cd $(PROJECT_SRC) && $(PWD)/$(HUGO) server --buildDrafts
|
||||||
|
|
||||||
|
$(HUGO): $(CACHE_DIR)/hugo.tar.gz
|
||||||
|
mkdir -p $(CACHE_DIR)/bin
|
||||||
|
tar -zxvf $(CACHE_DIR)/hugo.tar.gz \
|
||||||
|
-C $(CACHE_DIR)/bin \
|
||||||
|
hugo
|
||||||
|
$(CACHE_DIR)/hugo.tar.gz:
|
||||||
|
mkdir -p $(CACHE_DIR)/
|
||||||
|
./tools/github-release-downloader.sh \
|
||||||
|
gohugoio hugo \
|
||||||
|
"_linux-amd64.tar.gz" \
|
||||||
|
$(CACHE_DIR)/hugo.tar.gz
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./cache/
|
rm -rf $(CACHE_DIR)/
|
||||||
|
|
||||||
|
#git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
||||||
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
date = {{ .Date }}
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
0
assets/.empty
Normal file
0
assets/.empty
Normal file
0
content/.empty
Normal file
0
content/.empty
Normal file
0
data/.empty
Normal file
0
data/.empty
Normal file
4
hugo.toml
Normal file
4
hugo.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
baseURL = 'https://example.org/'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'My New Hugo Site'
|
||||||
|
theme = 'ananke'
|
||||||
0
i18n/.empty
Normal file
0
i18n/.empty
Normal file
0
layouts/.empty
Normal file
0
layouts/.empty
Normal file
0
public/.empty
Normal file
0
public/.empty
Normal file
103
public/404.html
Normal file
103
public/404.html
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<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.134.2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/ananke/css/main.min.css" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/404.html">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://localhost:1313/404.html">
|
||||||
|
<meta property="og:site_name" content="My New Hugo Site">
|
||||||
|
<meta property="og:title" content="404 Page not found">
|
||||||
|
<meta property="og:locale" content="en_us">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
<meta itemprop="name" content="404 Page not found">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:title" content="404 Page not found">
|
||||||
|
|
||||||
|
|
||||||
|
</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="http://localhost:1313/" >
|
||||||
|
© My New Hugo Site 2024
|
||||||
|
</a>
|
||||||
|
<div>
|
||||||
|
<div class="ananke-socials">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
13
public/ananke/css/main.css.map
Normal file
13
public/ananke/css/main.css.map
Normal file
File diff suppressed because one or more lines are too long
1
public/ananke/css/main.min.css
vendored
Normal file
1
public/ananke/css/main.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
120
public/categories/index.html
Normal file
120
public/categories/index.html
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<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.134.2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<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="http://localhost:1313/categories/">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://localhost:1313/categories/">
|
||||||
|
<meta property="og:site_name" content="My New Hugo Site">
|
||||||
|
<meta property="og:title" content="Categories">
|
||||||
|
<meta property="og:locale" content="en_us">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
<meta itemprop="name" content="Categories">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:title" content="Categories">
|
||||||
|
|
||||||
|
|
||||||
|
</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="http://localhost:1313/" >
|
||||||
|
© My New Hugo Site 2024
|
||||||
|
</a>
|
||||||
|
<div>
|
||||||
|
<div class="ananke-socials">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
public/categories/index.xml
Normal file
11
public/categories/index.xml
Normal file
|
|
@ -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>http://localhost:1313/categories/</link>
|
||||||
|
<description>Recent content in Categories on My New Hugo Site</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
BIN
public/images/gohugo-default-sample-hero-image.jpg
Normal file
BIN
public/images/gohugo-default-sample-hero-image.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 276 KiB |
124
public/index.html
Normal file
124
public/index.html
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<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.134.2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/ananke/css/main.min.css" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link href="/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Site" />
|
||||||
|
<link href="/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Site" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://localhost:1313/">
|
||||||
|
<meta property="og:site_name" content="My New Hugo Site">
|
||||||
|
<meta property="og:title" content="My New Hugo Site">
|
||||||
|
<meta property="og:locale" content="en_us">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
<meta itemprop="name" content="My New Hugo Site">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:title" content="My New Hugo Site">
|
||||||
|
|
||||||
|
|
||||||
|
</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">
|
||||||
|
My New Hugo Site
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main class="pb7" role="main">
|
||||||
|
|
||||||
|
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
|
||||||
|
|
||||||
|
</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="http://localhost:1313/" >
|
||||||
|
© My New Hugo Site 2024
|
||||||
|
</a>
|
||||||
|
<div>
|
||||||
|
<div class="ananke-socials">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
public/index.xml
Normal file
11
public/index.xml
Normal file
|
|
@ -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>My New Hugo Site</title>
|
||||||
|
<link>http://localhost:1313/</link>
|
||||||
|
<description>Recent content on My New Hugo Site</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
11
public/sitemap.xml
Normal file
11
public/sitemap.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/categories/</loc>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/</loc>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/tags/</loc>
|
||||||
|
</url>
|
||||||
|
</urlset>
|
||||||
120
public/tags/index.html
Normal file
120
public/tags/index.html
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-us">
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<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.134.2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/ananke/css/main.min.css" >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link href="/tags/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Site" />
|
||||||
|
<link href="/tags/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Site" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/tags/">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:url" content="http://localhost:1313/tags/">
|
||||||
|
<meta property="og:site_name" content="My New Hugo Site">
|
||||||
|
<meta property="og:title" content="Tags">
|
||||||
|
<meta property="og:locale" content="en_us">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
|
||||||
|
<meta itemprop="name" content="Tags">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:title" content="Tags">
|
||||||
|
|
||||||
|
|
||||||
|
</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">
|
||||||
|
Tags
|
||||||
|
</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="http://localhost:1313/" >
|
||||||
|
© My New Hugo Site 2024
|
||||||
|
</a>
|
||||||
|
<div>
|
||||||
|
<div class="ananke-socials">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
11
public/tags/index.xml
Normal file
11
public/tags/index.xml
Normal file
|
|
@ -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>Tags on My New Hugo Site</title>
|
||||||
|
<link>http://localhost:1313/tags/</link>
|
||||||
|
<description>Recent content in Tags on My New Hugo Site</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"/ananke/css/main.min.css","MediaType":"text/css","Data":{}}
|
||||||
0
static/.empty
Normal file
0
static/.empty
Normal file
0
themes/.empty
Normal file
0
themes/.empty
Normal file
1
themes/ananke
Submodule
1
themes/ananke
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit af9d8e86fc3bcc5aeeaa4f9e907c0f6de33f07d7
|
||||||
|
|
@ -8,24 +8,29 @@
|
||||||
# $ ./github-release-downloader.sh \
|
# $ ./github-release-downloader.sh \
|
||||||
# <GITHUB_ORG> \
|
# <GITHUB_ORG> \
|
||||||
# <GITHUB_REPO> \
|
# <GITHUB_REPO> \
|
||||||
# <SEARCH_PATTERN>
|
# <SEARCH_PATTERN> \
|
||||||
|
# <OUTPUT_FILE_PATH (optional)>
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# $ ./github-release-downloader.sh \
|
# $ ./github-release-downloader.sh \
|
||||||
# gohugoio \
|
# gohugoio \
|
||||||
# hugo \
|
# hugo \
|
||||||
# "_linux-amd64.tar.gz"
|
# "_linux-amd64.tar.gz" \
|
||||||
|
# ./hugo.tar.gz
|
||||||
#
|
#
|
||||||
# Inspired by:
|
# Inspired by:
|
||||||
# https://gist.github.com/umohi/bfc7ad9a845fc10289c03d532e3d2c2f
|
# https://gist.github.com/umohi/bfc7ad9a845fc10289c03d532e3d2c2f
|
||||||
|
|
||||||
# START
|
# START
|
||||||
|
|
||||||
# Parameters
|
# Parameters (required)
|
||||||
declare -r GITHUB_ORG=${GITHUB_ORG:-$1}
|
declare -r GITHUB_ORG=${GITHUB_ORG:-$1}
|
||||||
declare -r GITHUB_REPO=${GITHUB_REPO:-$2}
|
declare -r GITHUB_REPO=${GITHUB_REPO:-$2}
|
||||||
declare -r SEARCH_PATTERN=${SEARCH_PATTERN:-$3}
|
declare -r SEARCH_PATTERN=${SEARCH_PATTERN:-$3}
|
||||||
|
|
||||||
|
# Parameters (optional)
|
||||||
|
declare OUTPUT_FILE_PATH=${OUTPUT_FILE_PATH:-$4}
|
||||||
|
|
||||||
# Helpers
|
# Helpers
|
||||||
if [ -z "$TERM" ] || [ "$TERM" == "dumb" ]; then
|
if [ -z "$TERM" ] || [ "$TERM" == "dumb" ]; then
|
||||||
tput() {
|
tput() {
|
||||||
|
|
@ -195,16 +200,19 @@ declare ASSET
|
||||||
# Main
|
# Main
|
||||||
function main() {
|
function main() {
|
||||||
log_info "Parameters:"
|
log_info "Parameters:"
|
||||||
log_info " GITHUB_ORG : ${GITHUB_ORG}"
|
log_info " GITHUB_ORG : ${GITHUB_ORG}"
|
||||||
log_info " GITHUB_REPO : ${GITHUB_REPO}"
|
log_info " GITHUB_REPO : ${GITHUB_REPO}"
|
||||||
log_info " SEARCH_PATTERN : ${SEARCH_PATTERN}"
|
log_info " SEARCH_PATTERN : ${SEARCH_PATTERN}"
|
||||||
|
log_info " OUTPUT_FILE_PATH : ${OUTPUT_FILE_PATH}"
|
||||||
|
|
||||||
# Retrieve
|
# Retrieve
|
||||||
get_latest_release
|
get_latest_release
|
||||||
get_release_assets ${RELEASE_LATEST_NAME}
|
get_release_assets ${RELEASE_LATEST_NAME}
|
||||||
search_asset_by_name ${SEARCH_PATTERN}
|
search_asset_by_name ${SEARCH_PATTERN}
|
||||||
|
|
||||||
declare -r OUTPUT_FILE_PATH="$(pwd)/${ASSET_NAME}"
|
if [[ "${OUTPUT_FILE_PATH}" == "" ]]; then
|
||||||
|
OUTPUT_FILE_PATH="$(pwd)/${ASSET_NAME}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
if [[ -f "${OUTPUT_FILE_PATH}" ]]; then
|
if [[ -f "${OUTPUT_FILE_PATH}" ]]; then
|
||||||
|
|
@ -213,7 +221,7 @@ function main() {
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
log_info "Downloading..."
|
log_info "Downloading..."
|
||||||
h_run "curl --progress-bar -o ${OUTPUT_FILE_PATH} ${ASSET_URL}"
|
h_run "curl -SL --progress-bar -o ${OUTPUT_FILE_PATH} ${ASSET_URL}"
|
||||||
log_success "Saved on: ${OUTPUT_FILE_PATH}"
|
log_success "Saved on: ${OUTPUT_FILE_PATH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue