[tests] Add support for probes.json (#8279)

Previously, our test fixtures used to use a probes prop in `vercel.json` that was removed right before it was deployed.

This PR allows a separate `probes.json` file with the same content to separate the test fixture input from the test probes.

This allows us to test real "zero config" deployments without a `vercel.json` file.
This commit is contained in:
Steven
2022-08-03 20:15:50 -04:00
committed by GitHub
parent 2b101d4692
commit bfc553db11
196 changed files with 120 additions and 4305 deletions

View File

@@ -1,14 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"zeroConfig": true,
"framework": "gatsby"
}
}
],
"probes": [{ "path": "/", "mustContain": "Welcome to your new Gatsby site" }]
}

View File

@@ -0,0 +1,3 @@
{
"probes": [{ "path": "/", "mustContain": "Welcome to your new Gatsby site" }]
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Welcome to your new Gatsby site" },
{

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Svelte app" },
{ "path": "/bundle.js", "mustContain": "Hello" },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "React App" },
{ "path": "/testing-output-dir.txt", "mustContain": "This is some content" }

View File

@@ -1,14 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"zeroConfig": true
}
}
],
"probes": [
{
"path": "/",

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Angular + Node.js API" },
{ "path": "/main-es2015.js", "mustContain": "Loading date..." },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "AngularApp" },
{ "path": "/main-es2015.js", "mustContain": "Tour of Heroes" },

View File

@@ -1,14 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "15-preact" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "15-preact" }
]
}

View File

@@ -0,0 +1,6 @@
{
"probes": [
{ "path": "/", "mustContain": "15-preact" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "15-preact" }
]
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Hello World" },
{ "path": "/", "mustContain": "Hexo" },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Home" },
{ "path": "/", "mustContain": "Gridsome" },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "/umi.css" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "/umi.css" },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "My App" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "My App" },

View File

@@ -1,14 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Site" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "Site" }
]
}

View File

@@ -0,0 +1,6 @@
{
"probes": [
{ "path": "/", "mustContain": "Site" },
{ "path": "/iudieufwunifiwwnuwfuw", "mustContain": "Site" }
]
}

View File

@@ -1,16 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "https://files-dwshfhr7d.now.sh",
"config": {
"zeroConfig": true,
"framework": "docusaurus"
}
}
],
"probes": [
{ "path": "/", "mustContain": "Test Site · A website for testing" }
]
}

View File

@@ -0,0 +1,5 @@
{
"probes": [
{ "path": "/", "mustContain": "Test Site · A website for testing" }
]
}

View File

@@ -1,10 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
]
}

View File

@@ -1,14 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "My Site" },
{ "path": "/docs/doc1", "mustContain": "Style Guide" }
]
}

View File

@@ -0,0 +1,6 @@
{
"probes": [
{ "path": "/", "mustContain": "My Site" },
{ "path": "/docs/doc1", "mustContain": "Style Guide" }
]
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Great" },
{ "path": "/about", "mustContain": "page" },

View File

@@ -1,10 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build"
}
],
"probes": [{ "path": "/", "mustContain": "mypage" }]
}

View File

@@ -0,0 +1,3 @@
{
"probes": [{ "path": "/", "mustContain": "mypage" }]
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{
"path": "/",

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "React App" },
{ "path": "/testing-output-dir.txt", "mustContain": "This is some content" }

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "<h1>Latest 3 Posts</h1>" },
{ "path": "/about", "mustContain": "<h1>About Me</h1>" },

View File

@@ -1,3 +0,0 @@
_site
.sass-cache
.jekyll-metadata

View File

@@ -1,24 +0,0 @@
---
layout: default
---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

View File

@@ -1,34 +0,0 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.6"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?

View File

@@ -1,82 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.11.1)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.6)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-feed (0.12.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.3)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (3.10.0)
ruby_dep (1.5.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
tzinfo-data (1.2019.2)
tzinfo (>= 1.0.0)
wdm (0.1.1)
PLATFORMS
ruby
DEPENDENCIES
jekyll (~> 3.8.6)
jekyll-feed (~> 0.6)
minima (~> 2.0)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.0)
BUNDLED WITH
2.0.2

View File

@@ -1,43 +0,0 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll
# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/

View File

@@ -1,25 +0,0 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2019-09-06 15:36:47 -0400
categories: jekyll update
---
Youll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekylls GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
[jekyll-docs]: https://jekyllrb.com/docs/home
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/

View File

@@ -1,17 +0,0 @@
---
layout: page
title: About
permalink: /about/
---
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
You can find the source code for Minima at GitHub:
[jekyll][jekyll-organization] /
[minima](https://github.com/jekyll/minima)
You can find the source code for Jekyll at GitHub:
[jekyll][jekyll-organization] /
[jekyll](https://github.com/jekyll/jekyll)
[jekyll-organization]: https://github.com/jekyll

View File

@@ -1,6 +0,0 @@
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
---

View File

@@ -1,20 +0,0 @@
{
"builds": [
{
"src": "_config.yml",
"use": "@vercel/static-build",
"config": {
"zeroConfig": true,
"framework": "jekyll"
}
}
],
"probes": [
{ "path": "/", "mustContain": "Your awesome title" },
{ "path": "/about/", "mustContain": "You can find out more info" },
{
"path": "/jekyll/update/2019/09/06/welcome-to-jekyll.html",
"mustContain": "Go ahead and edit it"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"private": true,
"scripts": {
"build": "jekyll build && mv _site public"
}
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Your awesome title" },
{ "path": "/about/", "mustContain": "You can find out more info" },

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "My New Hugo Site" },
{ "path": "/", "mustContain": "read more" },

View File

@@ -1,3 +0,0 @@
public
.env
processed_images/

View File

@@ -1,14 +0,0 @@
base_url = "/"
compile_sass = false
theme = "feather"
highlight_code = true
build_search_index = false
title = "Hello World"
description = "A an example zola website with a theme"
default_language = "en"
generate_categories_pages = true
generate_tags_pages = true
generate_rss = true
[extra]
#feather_header_image = "/example.svg"

View File

@@ -1,17 +0,0 @@
+++
title = "Hello Universe"
weight = 1
[extra]
number = "1"
+++
## This is the first.
Hello to anyone out there. Thanks for coming to my Ted Talk. Goodnight!
<!-- more -->
## Keywords
_default, first, hello_

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,19 +0,0 @@
+++
title = "Never Gonna Give You Up"
weight = 2
[extra]
number = "2"
+++
{{youtube(id="dQw4w9WgXcQ") }}
## Let's talk about youtube
Everyone loves youtube because of the endless videos. I could never give up youtube, could you?
<!-- more -->
## Keywords
_youtube, video, never_

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,4 +0,0 @@
+++
# Whether to sort pages by "date", "weight", or "none". More on that below
sort_by = "weight"
+++

View File

@@ -1,19 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "config.toml",
"use": "@vercel/static-build",
"config": {
"zeroConfig": true,
"framework": "zola"
}
}
],
"probes": [
{ "path": "/", "mustContain": "The goal is to demonstrate" },
{ "path": "/robots.txt", "mustContain": "User-agent" },
{ "path": "/1/", "mustContain": "Thanks for coming to my Ted Talk" },
{ "path": "/2/", "mustContain": "www.youtube.com" }
]
}

View File

@@ -1 +0,0 @@
User-agent: *

View File

@@ -1,3 +0,0 @@
static/files/
static/images/
public/

View File

@@ -1,29 +0,0 @@
BSD 3-Clause License
Copyright (c) 2018, Alexander Lozada
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -1,75 +0,0 @@
# feather
A lightweight theme for gutenberg
Feather is a blog theme specifically designed for the static site generator [Gutenberg](https://github.com/Keats/gutenberg). It's as far as
I know the first theme for the platform that isn't a port or just contained within template files.
Feather is _not_ intended for anything other than blogs.
# Developing & Contributing
Because feather comes with example content, you can run the theme just like any Gutenberg
blog with `gutenberg serve`. Your changes will autoreload!
## Considerations
Please don't edit the `content` folder directly for your own blog, use it as a theme like
intended!
# Usage
Using feather is easy. Install [Gutenberg](https://github.com/Keats/gutenberg) and follow
[the guide for creating a site and using a theme](https://www.getgutenberg.io/documentation/themes/installing-and-using-themes/). Then,
add `theme = "feather"` to your `config.toml` file.
If you intend to publish your site to Github Pages, please check out [this tutorial](http://vaporsoft.net/publishing-gutenberg-to-github/).
## Options
Gutenberg allows themes to [define `[extra]` variables](https://www.getgutenberg.io/documentation/getting-started/configuration/)
in the config. Here's a full list of theme variables with example values and comments.
```
[extra]
# specify an image for the big header at the top of the page.
# this will be a background cover image, so make it large enough
# so that it won't upscale enough to pixelate
feather_header_image = "/theme_images/default.gif"
# if you want comments, add your disqus embed code here.
# you can obtain a code on the disqus website.
feather_disqus_code = "<div id='disqus_thread'></div><script> var disqus_config = ... etc ... etc ..."
# if you'd like people to be able to donate to you, you can include a donate link
# to be displayed in the footer of the website.
feather_donate_link = "https://paypal.me/piedoomy"
# if you want analytics, add your tracking code HTML here.
feather_analytics = "<script async src='https://www.googletagmanager.com/gtag/... etc ... etc ..."
```
## Features
Feather also provides several features optional.
- [x] Categories page
- [x] Tags page
- [x] Sorting chronologically
- [x] Comments
- [x] Analytics
- [x] Donate links
## Using Categories and Tags
In order to use categories and tags, you'll need to enable their compilation by adding the following lines to your `config.toml`
(make sure they aren't under `[extra]`):
```toml
generate_categories_pages = true
generate_tags_pages = true
```
# Live demo
[My dev site](http://vaporsoft.net/) uses the latest version of feather.

View File

@@ -1,29 +0,0 @@
# This is an example file to help you get started.
# This also lets you run `gutenberg serve` just in the themes directory
# for easier development.
# The URL the site will be built for
base_url = "http://localhost:1111"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme`
# variable to a theme supported by Gutenberg
highlight_code = true
# This is commented out here since we're using it like a template
# but you should use this line when using feather as a theme
# theme = "feather"
generate_categories_pages = true
generate_tags_pages = true
[extra]
feather_disqus_code = "<div id='disqus_thread'><div style='background: lightgrey; text-align: center; color: grey; padding: 100px 24px;'>Comments mockup</div></div>"
feather_donate_link = "https://paypal.me/piedoomy"
feather_analytics = "<script>return;</script>"

View File

@@ -1,3 +0,0 @@
+++
sort_by = "date"
+++

View File

@@ -1,9 +0,0 @@
+++
title = "Categories part 2"
date = 2018-01-05
category = "other"
+++
# Categories and tags
Look, you can click the category up there to see more posts like this!

View File

@@ -1,9 +0,0 @@
+++
title = "Categories yeah!"
date = 2018-01-06
category = "test"
+++
# Categories and tags
Look, you can click the category up there to see more posts like this!

File diff suppressed because one or more lines are too long

View File

@@ -1,381 +0,0 @@
/*__ _ _
/ _| | | | |
| |_ ___ __ _| |_| |__ ___ _ __
| _/ _ \/ _` | __| '_ \ / _ \ '__|
| || __/ (_| | |_| | | | __/ |
|_| \___|\__,_|\__|_| |_|\___|_|
*/
// Variables and Mixins
$break-small: 500px; // at what point the site becomes "mobile"
$hpadding: 48px; // The side-padding
$hpadding-small: 16px; // The side-padding on mobile
$link-color: #ed1249;
// ------------------------------------------------ //
// Animations //
// -------------------------------------------------//
// Fade in animation
@keyframes fadein{
0% { opacity:0; }
100% { opacity:1; }
}
@-webkit-keyframes fadein{
0% { opacity:0; }
100% { opacity:1; }
}
// ------------------------------------------------ //
// Typography //
// -------------------------------------------------//
body {
font-family: "Nunito",Helvetica,Arial,sans-serif;
}
// Headers
h1,h2,h3,h4,h5,h6 {
font-weight: 700;
margin-bottom: 12px;
line-height: 1.2;
color: #414142;
}
h1 {
font-size: 72px;
}
h2 {
font-size: 48px;
}
h3 {
font-size: 36px;
}
h4 {
font-size: 24px;
}
.title-and-info {
margin-bottom: 36px;
h1,h2,h3,h4,h5,h6 {
margin-bottom: 16px;
}
}
// Horizonal lines
hr {
height: 1px;
width: calc(100% - 96px);
background: #edeeef;
height: 1px;
border: none;
margin-bottom: 48px;
@media (max-width: $break-small){
width: calc(100% - 32px);
}
}
// paragraphs and lists
p, ul, ol {
font-weight: 300;
line-height: 1.5;
font-size: 20px;
margin-bottom: 16px;
}
.highlight {
color: $link-color;
}
ul, ol {
p {
padding: 0 0 !important;
}
@media (max-width: $break-small){
list-style-position: inside;
}
}
li {
padding: 6px 0;
}
// text styles
em {
font-style: italic;
}
strong {
font-weight: bold;
}
// blockquotes
blockquote {
font-style: italic;
color: #777777;
border-left: 3px solid #edeeef;
max-width: 600px;
blockquote {
// add margin to nested blockquotes
margin-left: 8px;
margin-bottom: 0;
p {
margin: 12px 0;
}
}
p {
margin: 0;
}
margin: 36px 0;
}
// Links and Selections
a {
font-weight: bold;
color:$link-color;
text-decoration: none;
}
::selection {
background: rgba(237, 18, 73,0.5); /* WebKit/Blink Browsers */
}
::-moz-selection {
background: rgba(237, 18, 73,0.5); /* Gecko Browsers */
}
// Code
pre, code {
font-family: "Lucida Console", Monaco, monospace;
}
// Misc.
.date, .info { // the small text that shows info related to dates, etc.
font-weight: 300;
text-transform: uppercase;
font-size: 12px;
color: grey;
}
// overall rules
body {
overflow-wrap: break-word;
}
section {
margin: 46px 0;
}
.container {
max-width: 700px;
margin: 0 auto;
padding: 0 40px;
// exclude the padding from spans in code
pre span {
padding: 0 0;
}
article {
// reduce header size for items within
// an article (e.g. a blog post)
h1,h2,h3,h4,h5,h6 {
margin-top: 36px;
margin-bottom: 12px;
}
h1 {
font-size: 36px;
}
h2 {
font-size: 24px;
}
h3,h4,h5,h6 {
font-size: 18px;
}
}
}
.nav {
display: block;
text-align:center;
list-style-type: none;
margin:50px;
}
.nav li {
display: inline-block;
padding:10px;
background-color: $link-color;
border-radius: 4px;
}
.nav li a {
color: white;
}
.info {
padding: 0 $hpadding;
span {
padding: 0px;
a {
text-decoration: none;
color: inherit;
font-weight: inherit;
&:hover {
text-decoration: underline !important;
}
}
}
.divider:before {
padding: 0 8px;
content: "";
}
@media (max-width: $break-small){
padding: 0 $hpadding-small;
}
}
// ------------------------------------------------ //
// Code Blocks //
// -------------------------------------------------//
// an optional filename field that goes before a pre
.filename {
display: block;
background: #444c5b;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
position: relative;
bottom: -40px;
div {
font-size: 14px;
font-family: "Lucida Console", Monaco, monospace;
color: #c0c5ce;
background: #2b303b;
display: inline-block;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
padding: 0 $hpadding;
padding-top: 16px;
padding-bottom: 6px;
}
@media (max-width: $break-small) {
border-radius: 0;
div {
padding-left: $hpadding;
padding-right: $hpadding;
border-radius: 0;
}
}
}
// inline code
code {
white-space: pre;
white-space: pre-wrap;
background: #edeef2;
border-radius: 4px;
padding: 2px 6px;
}
pre {
display: block;
margin: 36px 0;
padding: 36px $hpadding;
border-radius: 4px;
font-size: .8rem;
line-height: 1.4;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
background-color: #f9f9f9;
code {
padding: 0;
font-size: 100%;
color: inherit;
background-color: transparent;
}
@media (max-width: $break-small){
padding-left: $hpadding-small;
padding-right: $hpadding-small;
border-radius: 0;
}
}
// ------------------------------------------------ //
// Images & Formatting //
// -------------------------------------------------//
// Header
.header-image {
height: 50vh;
width: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
min-height: 300px;
background-color: #111;
}
// Fade in images on load
.container img {
display: block;
opacity: 0;
border-radius: 4px;
-webkit-animation: 0.5s ease 0s normal forwards 1 fadein;
animation: 0.5s ease 0s normal forwards 1 fadein;
}
img.loaded {
opacity: 1;
}
.thumb {
float: left;
margin-right: 20px;
}
// video stuff
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px; height: 0; overflow: hidden;
margin-bottom: 40px;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// ------------------------------------------------ //
// Footer //
// -------------------------------------------------//
// Main container
footer {
background: #f5f5f5;
text-align: center;
display: block;
padding: 24px $hpadding;
@media (max-width: $break-small){
padding-left: $hpadding;
padding-right: $hpadding;
}
}

View File

@@ -1,37 +0,0 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline; }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block; }
body {
line-height: 1; }
blockquote, q {
quotes: none; }
blockquote {
&:before, &:after {
content: '';
content: none; } }
q {
&:before, &:after {
content: '';
content: none; } }
table {
border-collapse: collapse;
border-spacing: 0; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -1,52 +0,0 @@
// Small script to handle image resizing
var images = (function() {
var images = {
// find and return an array of all images in a document
//
// Returns: Array<Element>
findAllImages: function() {
return document.querySelectorAll('IMG');
},
// strips away a parent `p` tag from an image which is often
// created when markdown is translated into HTML
//
// Args: Array<Element>
// Returns: ()
stripParagraphFromImage: function(ims) {
ims.forEach(function(image) {
// remove the parent element.
// Isn't JS' DOM library a dream?
image.parentNode.parentNode.insertBefore(image, image.parentNode);
});
},
// Adjusts max-width of items so that images will not be stretched out
//
// Args:
// - `ims` - Array<Element>
// - `minWidth` - int - the minimum width an image needs to be in order to have 100% width
attachLoadResizeHandler: function(ims, minWidth) {
ims.forEach(function(image) {
image.addEventListener('load', function(e) {
images.resizeImage(e.target, minWidth);
});
// call immediately in case loaded already
if (image.complete) {
images.resizeImage(image, minWidth);
}
});
},
//
resizeImage: function(image, minWidth) {
console.log(minWidth);
if (image.naturalWidth >= minWidth) {
image.style.width = '100%';
}
image.classList.add('loaded');
},
};
return images;
})();

View File

@@ -1,17 +0,0 @@
var app = (function() {
app = {
init: function() {
// attach onload resize to images
var im = images.findAllImages();
var w = document.querySelector('.container').clientWidth;
images.attachLoadResizeHandler(im, w - 100);
images.stripParagraphFromImage(im);
},
};
window.onload = function() {
app.init();
};
return app;
})();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

View File

@@ -1,19 +0,0 @@
{% extends "index.html" %}
{% block content %}
<div class="container">
<section>
<h2> Categories </h2>
</section>
<div class="posts">
{% for category in categories %}
<section>
<a class='header-link' href="{{category.slug}}">
<h4 class="title"> {{ category.name }} </h4>
</a>
</section>
<hr/>
{% endfor %}
</div>
</div>
{% endblock content %}

View File

@@ -1,22 +0,0 @@
{% extends "index.html" %}
{% block content %}
<div class="container">
<section>
<h2> {{ category.name }} </h2>
</section>
<div class="posts">
{% for page in category.pages %}
<section>
<a class='header-link' href="{{ page.permalink }}">
<h3 class="title"> {{ page.title }} </h3>
</a>
<p>
{{ page.content | safe | striptags | truncate }}
</p>
</section>
<hr/>
{% endfor %}
</div>
</div>
{% endblock content %}

View File

@@ -1,99 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<!-- css -->
<link rel="stylesheet" href="/reset.css">
<link rel="stylesheet" href="/feather.css">
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:400,700" rel="stylesheet" type="text/css">
<!-- js -->
{% if config.extra.feather_analytics %} {{ config.extra.feather_analytics | safe
}}
{% endif %} {% if config.generate_rss %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path=" rss.xml ", trailing_slash=false) }}">
{%
endif %} {% block extra_head %} {% endblock extra_head %}
</head>
<body>
<a href="/">
<div class='header-image' style='background-image: url({% if config.extra.feather_header_image %}{{ config.extra.feather_header_image }}{% else %}/theme_images/default.gif{% endif %});'>
</div>
</a>
{% block content %}
<div class="container">
<div class="posts">
<section>
<h3 class="title">About</h3>
<p>
"Hello, World!" is an example zola website which was built with
<a href="https://www.rust-lang.org/">Rust</a>
. The goal is to demonstrate how zola builds and deploys static websites.
</p>
</section>
</div>
<h3 class="title">Blog</h3>
<div class="posts">
{{ section.content }} {% for page in section.pages | reverse %}
<section>
<a class="episodelink" href="{{ page.permalink }}">
<h4 class="title"><span class="highlight">#{{ page.extra.number }}</span> {{ page.title }} </h4>
</a>
<div class="thumb">
{% set thumb = page.extra.number ~ "/thumb.jpg" %}
<img src="{{ resize_image(path=thumb, width=160, height=160, quality=100) }}" />
</div>
<p>
{{ page.summary | safe | striptags | truncate }}
<a class="episodelink" href="{{ page.permalink }}">continue reading...</a>
</p>
<!-- TODO: modularize this so we don't repeat ourselves -->
<div class='info'>
{% if page.date %}
<span class='divider' />
<span>{{ page.date | date(format="%d %B %Y") }}</span>
{% endif %} {% if page.category %}
<span class='divider' />
<!-- link to page category if user is building categories -->
{% if config.generate_categories_pages %}
<span><a href="/categories/{{page.category | slugify }}">{{ page.category }}</a></span>
{% else %}
<span>{{ page.category }}</span>
{% endif %} {% endif %}
</div>
</section>
<hr /> {% endfor %}
</div>
</div>
{% endblock content %}
<ul class="nav">
<li><a href="https://www.getzola.org">See Zola Docs</a></li>
</ul>
<footer>
Adapted from feather theme by <a href="https://github.com/piedoom/feather">doomy</a>&nbsp;&nbsp;-&nbsp;&nbsp;
Built
with <a href="https://github.com/getzola/zola">Zola</a>
{% if config.extra.feather_donate_link %}&nbsp;&nbsp;-&nbsp;&nbsp; <a href={{config.extra.feather_donate_link}}>Donate
on Patreon ❤️</a>
{% endif %}
</footer>
</body>
</html>

View File

@@ -1,27 +0,0 @@
{% extends "index.html" %} {% block content %}
<div class='container'>
<section class="post">
<div class="title-and-info">
<h4>Post #{{page.extra.number}}</h4>
<h2>{{ page.title }}</h2>
<div class="info">
{% if page.date %}
<span class='divider' />
<span>{{ page.date | date(format="%d %B %Y") }}</span>
{% endif %} {% if page.category %}
<span class='divider' />
<!-- link to page category if user is building categories -->
{% if config.generate_categories_pages %}
<span><a href="/categories/{{page.category}}">{{ page.category }}</a></span>
{% else %}
<span>{{ page.category }}</span>
{% endif %} {% endif %}
</div>
</div>
<article>
{{ page.content | safe }}
</article>
</section>
</div>
{% endblock content %}

View File

@@ -1,5 +0,0 @@
<div class="video-container">
<iframe src="https://www.youtube.com/embed/{% if bwu %}_{% endif %}{{id}}{% if autoplay %}?autoplay=1{% endif %}"
webkitallowfullscreen mozallowfullscreen allowfullscreen>
</iframe>
</div>

View File

@@ -1,19 +0,0 @@
{% extends "index.html" %} {% block content %}
<div class="container">
<section>
<h2> {{ tag.name }} </h2>
</section>
<div class="posts">
{% for page in tag.pages %}
<section>
<a class='header-link' href="{{ page.permalink }}">
<h3 class="title"> {{ page.title }} </h3>
</a>
<p>
{{ page.content | safe | striptags | truncate }}
</p>
</section>
<hr/> {% endfor %}
</div>
</div>
{% endblock content %}

View File

@@ -1,19 +0,0 @@
{% extends "index.html" %}
{% block content %}
<div class="container">
<section>
<h2> Tags </h2>
</section>
<div class="posts">
{% for tag in tags %}
<section>
<a class='header-link' href="{{tag.slug}}">
<h4 class="title"> {{ tag.name }} </h4>
</a>
</section>
<hr/>
{% endfor %}
</div>
</div>
{% endblock content %}

View File

@@ -1,15 +0,0 @@
name = "feather"
description = "A modern blog theme"
license = "MIT"
homepage = "https://github.com/piedoom/feather"
min_version = "0.3.4"
[extra]
feather_header_image = "/theme_images/default.gif"
feather_disqus_code = ""
feather_donate_link = ""
feather_analytics = ""
[author]
name = "doomy"
homepage = "https://alexanderlozada.com"

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "The goal is to demonstrate" },
{ "path": "/robots.txt", "mustContain": "User-agent" },

View File

@@ -1,22 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"build": {
"env": {
"HUGO_VERSION": "0.58.1",
"ZOLA_VERSION": "0.7.0",
"GUTENBERG_VERSION": "0.4.1"
}
},
"probes": [
{ "path": "/hugo.txt", "mustContain": "0.58.1" },
{ "path": "/zola.txt", "mustContain": "0.7.0" },
{ "path": "/gutenberg.txt", "mustContain": "0.4.1" }
]
}

View File

@@ -0,0 +1,7 @@
{
"probes": [
{ "path": "/hugo.txt", "mustContain": "0.58.1" },
{ "path": "/zola.txt", "mustContain": "0.7.0" },
{ "path": "/gutenberg.txt", "mustContain": "0.4.1" }
]
}

View File

@@ -0,0 +1,9 @@
{
"build": {
"env": {
"HUGO_VERSION": "0.58.1",
"ZOLA_VERSION": "0.7.0",
"GUTENBERG_VERSION": "0.4.1"
}
}
}

View File

@@ -1,16 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"build": {
"env": {
"HUGO_VERSION": "0.42"
}
},
"probes": [{ "path": "/", "mustContain": "0.42" }]
}

View File

@@ -0,0 +1,3 @@
{
"probes": [{ "path": "/", "mustContain": "0.42" }]
}

View File

@@ -0,0 +1,7 @@
{
"build": {
"env": {
"HUGO_VERSION": "0.42"
}
}
}

View File

@@ -1,20 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"build": {
"env": {
"BUNDLE_WITHOUT": "development:test"
}
},
"probes": [
{ "path": "/jekyll.txt", "mustContain": "not found" },
{ "path": "/middleman.txt", "mustContain": "not found" },
{ "path": "/dimples.txt", "mustContain": "dimples" }
]
}

View File

@@ -0,0 +1,7 @@
{
"probes": [
{ "path": "/jekyll.txt", "mustContain": "not found" },
{ "path": "/middleman.txt", "mustContain": "not found" },
{ "path": "/dimples.txt", "mustContain": "dimples" }
]
}

View File

@@ -0,0 +1,7 @@
{
"build": {
"env": {
"BUNDLE_WITHOUT": "development:test"
}
}
}

View File

@@ -1,15 +0,0 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"build": {
"env": {
"HUGO_VERSION": "0.0.0"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"build": {
"env": {
"HUGO_VERSION": "0.0.0"
}
}
}

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Other articles" },
{

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "For full documentation visit" },
{ "path": "/another/", "mustContain": "This is another page" }

View File

@@ -1,12 +1,4 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": { "zeroConfig": true }
}
],
"probes": [
{ "path": "/", "mustContain": "Welcome to the Stencil App Starter" },
{

View File

@@ -1 +0,0 @@
finished-hugo-page

View File

@@ -1,5 +0,0 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View File

@@ -1,5 +0,0 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"
publishDir = "finished-hugo-page"

View File

@@ -1,5 +0,0 @@
---
title: 'My First Post'
date: 2019-12-19T16:20:43+01:00
draft: true
---

View File

@@ -1,18 +0,0 @@
{
"builds": [
{
"use": "@vercel/static-build",
"src": "config.toml",
"config": {
"zeroConfig": true,
"framework": "hugo"
}
}
],
"build": {
"env": {
"VERCEL_BUILDER_DEBUG": "1"
}
},
"probes": [{ "path": "/", "mustContain": "My First Post" }]
}

View File

@@ -1,30 +0,0 @@
# OS
.DS_Store
Thumbs.db
# IDEs
.buildpath
.project
.settings/
.build/
.idea/
public/
nbproject/
# Vagrant
.vagrant/
# FE Setup
.bin/node_modules/
/node_modules/
src/node_modules/
src/npm-debug.log.*
npm-debug.log
/npm-debug.log*
/dist/
/src/client.config.json
/styleguide/
/docs/
/junit.xml
partials/structure/stylesheet.html

View File

@@ -1,122 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [2.5.5](https://github.com/budparr/gohugo-theme-ananke/compare/2.5.1...2.5.5) - 2019-11-15
### Merged
- Remove stray grave accent [`#231`](https://github.com/budparr/gohugo-theme-ananke/pull/231)
- Add Slack to social options [`#236`](https://github.com/budparr/gohugo-theme-ananke/pull/236)
- Fix URL for menus [`#230`](https://github.com/budparr/gohugo-theme-ananke/pull/230)
- Fix word count heading typo in README.md [`#222`](https://github.com/budparr/gohugo-theme-ananke/pull/222)
- Add auto-changelog [`#228`](https://github.com/budparr/gohugo-theme-ananke/pull/228)
- Fix stackbit issues [`#226`](https://github.com/budparr/gohugo-theme-ananke/pull/226)
- Add Stackbit Configuration [`#223`](https://github.com/budparr/gohugo-theme-ananke/pull/223)
- Replace {{ .URL }} with {{ .Permalink }} [`#216`](https://github.com/budparr/gohugo-theme-ananke/pull/216)
- Adds an author to blog posts. [`#209`](https://github.com/budparr/gohugo-theme-ananke/pull/209)
- Fixes #212. [`#213`](https://github.com/budparr/gohugo-theme-ananke/pull/213)
- Add ukrainian translation [`#214`](https://github.com/budparr/gohugo-theme-ananke/pull/214)
- Add swedish translation [`#208`](https://github.com/budparr/gohugo-theme-ananke/pull/208)
- Deprecation messages fixes. [`#196`](https://github.com/budparr/gohugo-theme-ananke/pull/196)
- Fix README instructions [`#204`](https://github.com/budparr/gohugo-theme-ananke/pull/204)
- Use git submodules [`#183`](https://github.com/budparr/gohugo-theme-ananke/pull/183)
- Remove Google News meta tags [`#197`](https://github.com/budparr/gohugo-theme-ananke/pull/197)
### Fixed
- Fix URL for menus (#230) [`#229`](https://github.com/budparr/gohugo-theme-ananke/issues/229)
- Add auto-changelog (#228) [`#227`](https://github.com/budparr/gohugo-theme-ananke/issues/227) [`#227`](https://github.com/budparr/gohugo-theme-ananke/issues/227)
- Fix stackbit issues (#226) [`#224`](https://github.com/budparr/gohugo-theme-ananke/issues/224)
- Add Stackbit Configuration (#223) [`#200`](https://github.com/budparr/gohugo-theme-ananke/issues/200)
- Fixes #212. (#213) [`#212`](https://github.com/budparr/gohugo-theme-ananke/issues/212)
- Deprecation messages fixes. (#196) [`#180`](https://github.com/budparr/gohugo-theme-ananke/issues/180)
## 2.5.1 - 2019-08-12
### Merged
- remove deprecated meta tags for old Windows Mobile and BlackBerry [`#191`](https://github.com/budparr/gohugo-theme-ananke/pull/191)
- localization for form-contact shortcode [`#185`](https://github.com/budparr/gohugo-theme-ananke/pull/185)
- Fix min_version [`#189`](https://github.com/budparr/gohugo-theme-ananke/pull/189)
- Add portuguese translation [`#179`](https://github.com/budparr/gohugo-theme-ananke/pull/179)
- Add commento [`#178`](https://github.com/budparr/gohugo-theme-ananke/pull/178)
- feat: add RU translation [`#177`](https://github.com/budparr/gohugo-theme-ananke/pull/177)
- Spanish Translation [`#175`](https://github.com/budparr/gohugo-theme-ananke/pull/175)
- Dutch translations. [`#171`](https://github.com/budparr/gohugo-theme-ananke/pull/171)
- Correcting issue with cached i18n menu [`#174`](https://github.com/budparr/gohugo-theme-ananke/pull/174)
- Create zh.toml [`#170`](https://github.com/budparr/gohugo-theme-ananke/pull/170)
- Fix TOC header [`#168`](https://github.com/budparr/gohugo-theme-ananke/pull/168)
- Optimisation "partialCached" [`#165`](https://github.com/budparr/gohugo-theme-ananke/pull/165)
- Add a link to "mastodon" [`#159`](https://github.com/budparr/gohugo-theme-ananke/pull/159)
- Create fr.toml [`#157`](https://github.com/budparr/gohugo-theme-ananke/pull/157)
- add i18n translation support [`#156`](https://github.com/budparr/gohugo-theme-ananke/pull/156)
- Support hiding the featured image header text. [`#155`](https://github.com/budparr/gohugo-theme-ananke/pull/155)
- enable localization/modification of "Recent" string [`#154`](https://github.com/budparr/gohugo-theme-ananke/pull/154)
- add basic support for post translations [`#144`](https://github.com/budparr/gohugo-theme-ananke/pull/144)
- Keep article padding throughout widths [`#152`](https://github.com/budparr/gohugo-theme-ananke/pull/152)
- Improve semantic structure of pages [`#151`](https://github.com/budparr/gohugo-theme-ananke/pull/151)
- Improve social link accessibility [`#147`](https://github.com/budparr/gohugo-theme-ananke/pull/147)
- Add explicit path to image example [`#146`](https://github.com/budparr/gohugo-theme-ananke/pull/146)
- Open social media links in new tab and add Medium icon [`#143`](https://github.com/budparr/gohugo-theme-ananke/pull/143)
- Make cover dimming class customisable. [`#140`](https://github.com/budparr/gohugo-theme-ananke/pull/140)
- Removed hardcoded theme sample hero image. This will allow the user to "blank" out the hero default set in the config. The if statement for blank was unreachable. [`#133`](https://github.com/budparr/gohugo-theme-ananke/pull/133)
- Use relative url function for custom CSS files [`#132`](https://github.com/budparr/gohugo-theme-ananke/pull/132)
- Add Gitlab to social icons [`#131`](https://github.com/budparr/gohugo-theme-ananke/pull/131)
- Add div to wrap social icons [`#128`](https://github.com/budparr/gohugo-theme-ananke/pull/128)
- Fix asset paths when baseURL has sub-folder [`#103`](https://github.com/budparr/gohugo-theme-ananke/pull/103)
- Add inheritance for social links. [`#107`](https://github.com/budparr/gohugo-theme-ananke/pull/107)
- Issue 98 [`#101`](https://github.com/budparr/gohugo-theme-ananke/pull/101)
- Replace Asset References with a data file instead of paths [`#96`](https://github.com/budparr/gohugo-theme-ananke/pull/96)
- Pre-2.0 Enhancements [`#94`](https://github.com/budparr/gohugo-theme-ananke/pull/94)
- Don't duplicate site title in home page TITLE tag [`#78`](https://github.com/budparr/gohugo-theme-ananke/pull/78)
- Fix pagination [`#76`](https://github.com/budparr/gohugo-theme-ananke/pull/76)
- #68|Parmeterize number of recent posts in index.html [`#69`](https://github.com/budparr/gohugo-theme-ananke/pull/69)
- Fix typo in single.html [`#67`](https://github.com/budparr/gohugo-theme-ananke/pull/67)
- Fixed line breaks in code (resolves budparr/gohugo-theme-ananke#56). [`#57`](https://github.com/budparr/gohugo-theme-ananke/pull/57)
- Favicons [`#54`](https://github.com/budparr/gohugo-theme-ananke/pull/54)
- indent fix [`#45`](https://github.com/budparr/gohugo-theme-ananke/pull/45)
- Social icon updates [`#51`](https://github.com/budparr/gohugo-theme-ananke/pull/51)
- Add GitHub social icon [`#48`](https://github.com/budparr/gohugo-theme-ananke/pull/48)
- Make Hero image work out-of-the box [`#40`](https://github.com/budparr/gohugo-theme-ananke/pull/40)
- Removed excess o in Facebook [`#34`](https://github.com/budparr/gohugo-theme-ananke/pull/34)
- Fixes #31 [`#32`](https://github.com/budparr/gohugo-theme-ananke/pull/32)
- Bp/fix now function Fixes #29 [`#30`](https://github.com/budparr/gohugo-theme-ananke/pull/30)
- fix clunky construction on home page to get section name [`#25`](https://github.com/budparr/gohugo-theme-ananke/pull/25)
- fix clunky construction on home page to get section name [`#24`](https://github.com/budparr/gohugo-theme-ananke/pull/24)
- fix clunky construction on home page to get section name [`#17`](https://github.com/budparr/gohugo-theme-ananke/pull/17)
- tweak hero default behavior [`#16`](https://github.com/budparr/gohugo-theme-ananke/pull/16)
- improve terms template [`#15`](https://github.com/budparr/gohugo-theme-ananke/pull/15)
- improve image handling for edge cases Fixes #11 [`#14`](https://github.com/budparr/gohugo-theme-ananke/pull/14)
- Improve featured image handling Ref #11 + minor homepage impvs [`#12`](https://github.com/budparr/gohugo-theme-ananke/pull/12)
- Dev changes [`#10`](https://github.com/budparr/gohugo-theme-ananke/pull/10)
- pull in dev changes [`#9`](https://github.com/budparr/gohugo-theme-ananke/pull/9)
- keeping things in order [`#8`](https://github.com/budparr/gohugo-theme-ananke/pull/8)
- Improve home page posts [`#7`](https://github.com/budparr/gohugo-theme-ananke/pull/7)
- make form email comment make more sense. Ref #5 [`#6`](https://github.com/budparr/gohugo-theme-ananke/pull/6)
- use a cleaner way to include language code [`#3`](https://github.com/budparr/gohugo-theme-ananke/pull/3)
- update from DEV [`#2`](https://github.com/budparr/gohugo-theme-ananke/pull/2)
- add taxonomy templates [`#1`](https://github.com/budparr/gohugo-theme-ananke/pull/1)
### Fixed
- Add blockquote styling [`#169`](https://github.com/budparr/gohugo-theme-ananke/issues/169)
- Keep article padding throughout widths (#152) [`#130`](https://github.com/budparr/gohugo-theme-ananke/issues/130)
- Update readme for formspree change [`#150`](https://github.com/budparr/gohugo-theme-ananke/issues/150)
- Improve semantic structure of pages (#151) [`#149`](https://github.com/budparr/gohugo-theme-ananke/issues/149)
- Add global background color class to footer [`#135`](https://github.com/budparr/gohugo-theme-ananke/issues/135)
- Add div to wrap social icons (#128) [`#127`](https://github.com/budparr/gohugo-theme-ananke/issues/127)
- Fix article padding on mobile [`#115`](https://github.com/budparr/gohugo-theme-ananke/issues/115)
- Make asset paths absolute [`#97`](https://github.com/budparr/gohugo-theme-ananke/issues/97)
- Fix linkedin icon to match the other social icons [`#70`](https://github.com/budparr/gohugo-theme-ananke/issues/70)
- Be smarter about linking to posts on home page. [`#50`](https://github.com/budparr/gohugo-theme-ananke/issues/50)
- Add body_classes parameter to body [`#43`](https://github.com/budparr/gohugo-theme-ananke/issues/43)
- Fixes #31 (#32) [`#31`](https://github.com/budparr/gohugo-theme-ananke/issues/31)
- Bp/fix now function Fixes #29 (#30) [`#29`](https://github.com/budparr/gohugo-theme-ananke/issues/29)
- Merge pull request #14 from budparr/dev [`#11`](https://github.com/budparr/gohugo-theme-ananke/issues/11)
- improve image handling for edge cases Fixes #11 [`#11`](https://github.com/budparr/gohugo-theme-ananke/issues/11)

View File

@@ -1,20 +0,0 @@
The MIT License (MIT)
Copyright (c) 2016 Bud Parr
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,152 +0,0 @@
# Ananke, A theme for [Hugo](http://gohugo.io/), a framework for building websites.
The intent of this theme is to provide a solid starting place for Hugo sites with basic features and include best practices for performance, accessibility, and rapid development.
![screenshot](https://raw.githubusercontent.com/budparr/gohugo-theme-ananke/master/images/screenshot.png)
[DEMO](https://gohugo-ananke-theme-demo.netlify.com/)
Features
- Responsive
- Accessible
- Contact form
- Custom Robots.txt (changes values based on environment)
- Internal templates for meta data, google analytics, and DISQUS or COMMENTO comments
- RSS Discovery
- Table of Contents (must declare `toc: true` in post parameter)
- Stackbit configuration ([Stackbit](https://www.stackbit.com))
Also includes examples of Hugo Features or Functions:
- Pagination (internal template)
- Taxonomies
- Archetypes
- Custom shortcode
- Related content
- Hugo built-in menu
- i18n
- `with`
- `HUGO_ENV`
- `first`
- `after`
- `sort`
- Site LanguageCode
- `where`
- Content Views
- Partials
- Template layouts (type "post" uses a special list template, single template, and a content view)
- Tags
- `len`
- Conditionals
- `ge` (greater than or equal to)
- `.Site.Params.mainSections` to avoid hard-coding "blog," etc. [[release note](https://github.com/spf13/hugo/blob/66ec6305f6cb450ddf9c489854146bac02f7dca1/docs/content/meta/release-notes.md#enhancements)]
This theme uses the "Tachyons" CSS library. This will allow you to manipulate the design of the theme by changing class names in HTML without touching the original CSS files. For more information see the [Tachyons website](http://tachyons.io/).
## Installation
Inside the folder of your Hugo site run:
$ git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
## Getting started
After installing the theme successfully it requires a just a few more steps to get your site running.
### The config file
Take a look inside the [`exampleSite`](https://github.com/budparr/gohugo-theme-ananke/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](https://github.com/budparr/gohugo-theme-ananke/blob/master/exampleSite/config.toml). To use it, copy the [`config.toml`](https://github.com/budparr/gohugo-theme-ananke/blob/master/exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change the strings in this theme.
You may need to delete the line: `themesDir = "../.."`
### Add comments
To enable comments, add following to your config file:
- DISQUS: `disqusShortname = YOURSHORTNAME`
- COMMENTO:
```
[params]
commentoEnable = true
```
### Change the hero background
For any page or post you can add a featured image by including the local path in front matter (see content in the `exampleSite/content/_readme.md` file for examples): `featured_image: '/images/gohugo-default-sample-hero-image.jpg'`
If you would like to hide the header text on the featured image on a page, set `omit_header_text` to `true`. See `exampleSite/content/contact.md` for an example.
You don't need an image though. The default background color is black, but you can change the color, by changing the default color class in the config.toml file. Choose a background color from any on the [Tachyons](http://tachyons.io/docs/themes/skins/) library site, and preface it with "bg-"
example: `background_color_class = "bg-blue"` or `background_color_class = "bg-gray"`
### Activate the contact form
This theme includes a shortcode for a contact form that you can add to any page (there is an example on the contact page in the exampleSite folder). One option is to use [formspree.io](//formspree.io/) as proxy to send the actual email. Each month, visitors can send you up to one thousand emails without incurring extra charges. Visit the Formspree site to get the "action" link and add it to your shortcode like this:
```
{{< form-contact action="https://formspree.io/your@email.com" >}}
```
### Update font or body classes
The theme is set, by default, to use a near-white background color and the "Avenir" or serif typeface. You can change these in your config file with the `body_classes` parameter, like this:
```
[params]
body_classes = "avenir bg-near-white"
```
which will give you a body class like this:
```
<body class="avenir bg-near-white">
```
You can find a list of available typefaces [here](https://github.com/tachyons-css/tachyons/blob/v4.7.0/src/_font-family.css).
And a list of background colors [here](https://github.com/tachyons-css/tachyons/blob/v4.7.0/src/_skins.css#L96).
_n.b. in future versions we will likely separate the typeface and other body classes._
### Custom CSS
You can override the built-in css by using your own. Just put your own css files in the `static` directory of your website (the one in the theme directory also works but is not recommended) and modify the `custom_css` parameter in your config file. The path referenced in the parameter should be relative to the `static` folder. These css files will be added through the `header` partial after the built-in css file.
For example, if your css files are `static/css/custom.css` and `static/css/custom2.css` then add the following to the config file:
```
[params]
custom_css = ["css/custom.css","css/custom2.css"]
```
### Show Reading Time and Word Count
If you add a key of `show_reading_time` true to either the Config Params, a page or section's front matter, articles will show the reading time and word count.
### Nearly finished
In order to see your site in action, run Hugo's built-in local server.
`$ hugo server`
Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.
## Production
To run in production (e.g. to have Google Analytics show up), run `HUGO_ENV=production` before your build command. For example:
```
HUGO_ENV=production hugo
```
## Contributing
If you find a bug or have an idea for a feature, feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know.
TODO:
- fix hard-coded link to [section](https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/index.html#L32)

View File

@@ -1,7 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = {{ .Date }}
tags = []
featured_image = ""
description = ""
+++

View File

@@ -1,6 +0,0 @@
{
"app": {
"js": "js/app.3fc0f988d21662902933.js",
"css": "css/app.d98f2eb6bcd1eaedb7edf166bd16af26.css"
}
}

View File

@@ -1,34 +0,0 @@
title = "Notre-Dame de Paris"
baseURL = "https://example.com"
languageCode = "en-us"
theme = "gohugo-theme-ananke"
themesDir = "../.."
MetaDataFormat = "yaml"
DefaultContentLanguage = "en"
SectionPagesMenu = "main"
Paginate = 3 # this is set low for demonstrating with dummy content. Set to a higher number
googleAnalytics = ""
enableRobotsTXT = true
[sitemap]
changefreq = "monthly"
priority = 0.5
filename = "sitemap.xml"
[params]
favicon = ""
description = "The last theme you'll ever need. Maybe."
facebook = ""
twitter = "https://twitter.com/GoHugoIO"
instagram = ""
youtube = ""
github = ""
gitlab = ""
linkedin = ""
mastodon = ""
slack = ""
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
background_color_class = "bg-black"
featured_image = "/images/gohugo-default-sample-hero-image.jpg"
recent_posts_number = 2

Some files were not shown because too many files have changed in this diff Show More