diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-05 15:47:59 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-06 11:09:41 +0100 |
commit | 76c1248f70300e7c10f24d8c5a4eb095eddc6da5 (patch) | |
tree | c8678f6e6b7e8f3cb99c6386b0a25d578643bea1 /examples | |
parent | 9e76507da289e0ef0b24e820ef0ce139900e2250 (diff) |
Remove the examples/ folder
These are not maintained and do not belong in this repository.
Diffstat (limited to 'examples')
59 files changed, 0 insertions, 6141 deletions
diff --git a/examples/blog/.gitignore b/examples/blog/.gitignore deleted file mode 100644 index 958340e12..000000000 --- a/examples/blog/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# Hugo default output directory -/public - -## OS Files -# Windows -Thumbs.db -ehthumbs.db -Desktop.ini -$RECYCLE.BIN/ - -# OSX -.DS_Store diff --git a/examples/blog/README.md b/examples/blog/README.md deleted file mode 100644 index 4c68edac8..000000000 --- a/examples/blog/README.md +++ /dev/null @@ -1,42 +0,0 @@ -Hugo Example Blog -================= - -This repository provides a fully-working example of a [Hugo](https://github.com/gohugoio/hugo)-powered blog. Many -Hugo-specific features are used as a way to see them in action, and hopefully ease the learning curve for creating your -very own site with Hugo. - -Features --------- - -- Recent Posts at main index -- Indexes for `tags` and `categories` -- Post information block, with links for all `tags` and `categories` post belongs to -- [Bootstrap 3](https://getbootstrap.com/) ready - - Currently using the [Yeti](https://bootswatch.com/yeti/) theme from https://bootswatch.com/ - -Common things that should be added in the near future *(pull requests are welcome!)*: - -- Disqus integration -- More content types to demonstrate different layout methods - - About Me - - Contact - -Getting Started ---------------- - -To get started, you should simply fork or clone this repository! That's definitely an important first step. - -[Install Hugo](https://gohugo.io/getting-started/installing) in a way that best suits your environment and comfort level. - -Edit `config.toml` and change the default properties to suit your own information. This is not required to run the -example, but this is the global configuration file and you're going to need to use it eventually. Start here! - -In a command prompt or terminal, navigate to the path that contains your `config.toml` file and run `hugo`. That's it! -You should now have a `public` directory with a complete blog! Open `public/index.html` in your browser and bask. - -If that wasn't amazing enough, from the same terminal, run `hugo server`. This will watch your directories for changes -and rebuild the site immediately, *and* it will make these changes available at http://localhost:1313/ so you can view -your finished site in your browser. Go on, try it. This is one of the best ways to preview your site while working on it. - -To further learn Hugo and learn more, read through the Hugo [documentation](https://gohugo.io/getting-started/) -or browse around the files in this repository. Have fun! diff --git a/examples/blog/config.toml b/examples/blog/config.toml deleted file mode 100644 index b402f2c7f..000000000 --- a/examples/blog/config.toml +++ /dev/null @@ -1,4 +0,0 @@ -baseURL = "http://blog.hugoexample.com/" -languageCode = "en-us" -title = "Hugo Example Blog" -canonifyURLs = true diff --git a/examples/blog/content/post/another-post.md b/examples/blog/content/post/another-post.md deleted file mode 100644 index 057c2d27b..000000000 --- a/examples/blog/content/post/another-post.md +++ /dev/null @@ -1,57 +0,0 @@ -+++ -title = "Another Hugo Post" -description = "Nothing special, but one post is boring." -date = "2014-09-02" -categories = [ "example", "configuration" ] -tags = [ - "example", - "hugo", - "toml" -] -+++ - -TOML, YAML, JSON --- Oh my! -------------------------- - -One of the nifty Hugo features we should cover: flexible configuration and front matter formats! This entry has front -matter in `toml`, unlike the last one which used `yaml`, and `json` is also available if that's your preference. - -<!--more--> - -The `toml` front matter used on this entry: - -``` -+++ -title = "Another Hugo Post" -description = "Nothing special, but one post is boring." -date = "2014-09-02" -categories = [ "example", "configuration" ] -tags = [ - "example", - "hugo", - "toml" -] -+++ -``` - -This flexibility also extends to your site's global configuration file. You're free to use any format you prefer::simply -name the file `config.yaml`, `config.toml` or `config.json`, and go on your merry way. - -JSON Example ------------- - -How would this entry's front matter look in `json`? That's easy enough to demonstrate: - -``` -{ - "title": "Another Hugo Post", - "description": "Nothing special, but one post is boring.", - "date": "2014-09-02", - "categories": [ "example", "configuration" ], - "tags": [ - "example", - "hugo", - "toml" - ], -} -``` diff --git a/examples/blog/content/post/hello-hugo.md b/examples/blog/content/post/hello-hugo.md deleted file mode 100644 index f58886ee8..000000000 --- a/examples/blog/content/post/hello-hugo.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: "Hello Hugo!" -description: "Saying 'Hello' from Hugo" -date: "2014-09-01" -categories: - - "example" - - "hello" -tags: - - "example" - - "hugo" - - "blog" ---- - -Hello from Hugo! If you're reading this in your browser, good job! The file `content/post/hello-hugo.md` has been -converted into a complete HTML document by Hugo. Isn't that pretty nifty? - -A Section ---------- - -Here's a simple titled section where you can place whatever information you want. - -You can use inline HTML if you want, but really there's not much that Markdown can't do. - -Showing off with Markdown -------------------------- - -A full cheat sheet can be found [here](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) -or through [Google](https://google.com/). - -There are some *easy* examples for styling, though. I can't **emphasize** that enough. -Creating [links](https://google.com/) or `inline code` blocks are very straightforward. - -``` -There are some *easy* examples for styling, though. I can't **emphasize** that enough. -Creating [links](https://google.com/) or `inline code` blocks are very straightforward. -``` - -Front Matter for Fun --------------------- - -This is the meta data for this post. It is located at the top of the `content/post/hello-hugo.md` markdown file. - -``` ---- -title: "Hello Hugo!" -description: "Saying 'Hello' from Hugo" -date: "2014-09-01" -categories: - - "example" - - "hello" -tags: - - "example" - - "hugo" - - "blog" ---- -``` - -This section, called 'Front Matter', is what tells Hugo about the content in this file: the `title` of the item, the -`description`, and the `date` it was posted. In our example, we've added two custom bits of data too. The `categories` and -`tags` sections are used in this example for indexing/grouping content. You will learn more about what that means by -examining the code in this example and through reading the Hugo [documentation](http://gohugo.io/overview/introduction). diff --git a/examples/blog/layouts/_default/single.html b/examples/blog/layouts/_default/single.html deleted file mode 100644 index 13a53f666..000000000 --- a/examples/blog/layouts/_default/single.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ partial "header.html" . }} -<body> -{{ partial "navbar.html" . }} -<div class="container"> - <div class="row"> - <div class="col-md-9"> - <div class="well well-sm"> - <h3>{{ .Title }}<br> <small>{{ .Description }}</small></h3> - <hr> - {{ .Content }} - </div> - </div> - - <!-- Sidebar --> - <div class="col-md-3"> - {{ partial "menu.html" . }} - </div> - </div> -{{ partial "footer.copyright.html" . }} -</div> -{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/categories/list.html b/examples/blog/layouts/categories/list.html deleted file mode 100644 index 0390d77c2..000000000 --- a/examples/blog/layouts/categories/list.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ partial "header.html" . }} - -<body> - {{ partial "navbar.html" . }} - <div class="container"> - <div class="row"> - <div class="col-md-9"> - <div class="well well-sm"> - <strong>Items in category <code>{{ .Title | lower }}</code></strong> - <ul class="list-unstyled"> - {{ range .Data.Pages }} - {{ .Render "li" }} - {{ end}} - </ul> - </div> - </div> - - <!-- Sidebar --> - <div class="col-md-3"> - {{ partial "menu.html" . }} - </div> - </div> - {{ partial "footer.copyright.html" . }} - </div> - {{ partial "footer.html" . }}
\ No newline at end of file diff --git a/examples/blog/layouts/index.html b/examples/blog/layouts/index.html deleted file mode 100644 index a69100409..000000000 --- a/examples/blog/layouts/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ partial "header.html" . }} -<body> -{{ partial "navbar.html" . }} -<div class="container"> - <div class="row"> - <div class="col-md-9"> - {{ range first 10 .Data.Pages }} - {{ .Render "summary" }} - {{ end }} - </div> - - <!-- Sidebar --> - <div class="col-md-3"> - {{ partial "menu.html" . }} - </div> - </div> -{{ partial "footer.copyright.html" . }} -</div> -{{ partial "footer.html" . }} diff --git a/examples/blog/layouts/partials/footer.copyright.html b/examples/blog/layouts/partials/footer.copyright.html deleted file mode 100644 index 7f7b5fc7b..000000000 --- a/examples/blog/layouts/partials/footer.copyright.html +++ /dev/null @@ -1,9 +0,0 @@ - <footer> - <div class="row"> - <hr> - <div class="col-sm-12"> - <p>© Enthusiastic Hugo User {{ now.Format "2006" }} · - Built with <a href="https://github.com/gohugoio/hugo">Hugo</a></p> - </div> - </div> - </footer> diff --git a/examples/blog/layouts/partials/footer.html b/examples/blog/layouts/partials/footer.html deleted file mode 100644 index 8945fa4ed..000000000 --- a/examples/blog/layouts/partials/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - - <script src="/js/jquery-1.11.3.min.js"></script> - <script src="/js/bootstrap.js"></script> -</body> -</html> diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html deleted file mode 100644 index 94de4c123..000000000 --- a/examples/blog/layouts/partials/header.html +++ /dev/null @@ -1,13 +0,0 @@ -<!doctype html> -<html lang="en"> - -<head> - {{ partial "meta.html" . }} - - <title>{{ .Title }} - {{ .Site.BaseURL }}</title> - <link rel="canonical" href="{{ .Permalink }}"> - {{ partial "header.includes.html" . }} - {{ with .OutputFormats.Get "RSS" -}} - {{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType $.Site.Title | safeHTML }} - {{- end }} -</head>
\ No newline at end of file diff --git a/examples/blog/layouts/partials/header.includes.html b/examples/blog/layouts/partials/header.includes.html deleted file mode 100644 index 767e3eee1..000000000 --- a/examples/blog/layouts/partials/header.includes.html +++ /dev/null @@ -1,4 +0,0 @@ - - <link href="/css/bootstrap.min.css" rel="stylesheet"> - <link href="/css/font-awesome.css" rel="stylesheet"> - <link href="/css/custom.css" rel="stylesheet"> diff --git a/examples/blog/layouts/partials/menu.html b/examples/blog/layouts/partials/menu.html deleted file mode 100644 index 61ce0c6b5..000000000 --- a/examples/blog/layouts/partials/menu.html +++ /dev/null @@ -1,15 +0,0 @@ - <div class="panel panel-default"> - <div class="panel-heading" style="padding: 2px 15px;"> - <h4>Connect. Socialize.</h4> - </div> - <div class="panel-body"> - <a href="https://github.com/SomeSillyUserNameHere/" class="btn btn-primary btn-xs"><i class="fa fa-github-square fa-2x"></i></a> - <a href="https://www.facebook.com/SomeSillyUserNameHere" class="btn btn-info btn-xs"><i class="fa fa-facebook-square fa-2x"></i></a> - - <div class="alert alert-info alert-dismissable" style="margin-top:25px;margin-bottom:5px;"> - <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> - <strong>Hey, listen!</strong><br> - You should modify the <code>layouts/partials/menu.html</code> template and include your own profile links. - </div> - </div> - </div> diff --git a/examples/blog/layouts/partials/meta.html b/examples/blog/layouts/partials/meta.html deleted file mode 100644 index 71346030e..000000000 --- a/examples/blog/layouts/partials/meta.html +++ /dev/null @@ -1,5 +0,0 @@ - - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="description" content="{{ .Description }}"> - <meta name="author" content="A Hugo User"> <!-- This should be modified to be your name, if you want to include this information --> diff --git a/examples/blog/layouts/partials/navbar.html b/examples/blog/layouts/partials/navbar.html deleted file mode 100644 index b15c24630..000000000 --- a/examples/blog/layouts/partials/navbar.html +++ /dev/null @@ -1,22 +0,0 @@ - <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> - <div class="container"> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> - <span class="sr-only">Toggle Navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> - </div> - <div class="collapse navbar-collapse navbar-ex1-collapse"> - <ul class="nav navbar-nav" |