Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hutchinson <hutch7995@gmail.com>2019-09-28 21:52:54 +0300
committerJoe Hutchinson <hutch7995@gmail.com>2019-09-28 21:52:54 +0300
commit1036b537beba177b4de562542a98d632e67911d1 (patch)
treedc0079fef2a3193b10a8cbe852ab55da16f2d610
parent4a13ce63375efc8a76253fed066deff23e72631d (diff)
parent9b3c916750749a522830edbd4227084328e4eceb (diff)
Merge branch 'mikijov-css-override'
-rw-r--r--README.md2
-rw-r--r--exampleSite/content/about/index.md (renamed from exampleSite/content/about.md)0
-rw-r--r--exampleSite/content/post/aether-features/index.md (renamed from exampleSite/content/post/aether-features.md)12
-rw-r--r--exampleSite/content/post/aether-features/mdd-iphone.jpg (renamed from exampleSite/static/img/mdd-iphone.jpg)bin796307 -> 796307 bytes
-rw-r--r--exampleSite/content/post/aether-theme/index.md (renamed from exampleSite/content/post/aether-theme.md)6
-rw-r--r--exampleSite/content/post/aether-theme/mdd-macbook.jpg (renamed from exampleSite/static/img/mdd-macbook.jpg)bin564068 -> 564068 bytes
-rw-r--r--exampleSite/content/post/creating-a-new-theme/index.md (renamed from exampleSite/content/post/creating-a-new-theme.md)4
-rw-r--r--exampleSite/content/post/creating-a-new-theme/nyc.jpg (renamed from exampleSite/static/img/nyc.jpg)bin267164 -> 267164 bytes
-rw-r--r--exampleSite/content/post/goisforlovers/index.md (renamed from exampleSite/content/post/goisforlovers.md)6
-rw-r--r--exampleSite/content/post/goisforlovers/lucas-benjamin-565254-unsplash.jpg (renamed from exampleSite/static/img/lucas-benjamin-565254-unsplash.jpg)bin134908 -> 134908 bytes
-rw-r--r--exampleSite/content/post/hugoisforlovers/andrew-neel-609846-unsplash.jpg (renamed from exampleSite/static/img/andrew-neel-609846-unsplash.jpg)bin97595 -> 97595 bytes
-rw-r--r--exampleSite/content/post/hugoisforlovers/index.md (renamed from exampleSite/content/post/hugoisforlovers.md)3
-rw-r--r--exampleSite/content/post/migrate-from-jekyll/index.md (renamed from exampleSite/content/post/migrate-from-jekyll.md)4
-rw-r--r--exampleSite/content/post/migrate-from-jekyll/yan-ots-257617-unsplash.jpg (renamed from exampleSite/static/img/yan-ots-257617-unsplash.jpg)bin129013 -> 129013 bytes
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/partials/head.html3
16 files changed, 35 insertions, 11 deletions
diff --git a/README.md b/README.md
index a991476..e412882 100644
--- a/README.md
+++ b/README.md
@@ -128,6 +128,8 @@ date: the date
description: "This is the subtext above the main heading in small letters"
---
```
+#### Overriding CSS
+To override CSS, you should create file `project_root/assets/css/override.css` and place all your CSS inside it. This file will be merged with standard CSS when the site is generated.
## Helpful Links
[Aether Blog Post](https://www.joehutch.com/post/aether-theme/) - See aether in action and learn more about the theme
diff --git a/exampleSite/content/about.md b/exampleSite/content/about/index.md
index 263ab34..263ab34 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about/index.md
diff --git a/exampleSite/content/post/aether-features.md b/exampleSite/content/post/aether-features/index.md
index 02345ed..c29d9bc 100644
--- a/exampleSite/content/post/aether-features.md
+++ b/exampleSite/content/post/aether-features/index.md
@@ -3,11 +3,13 @@ title: "Aether Features"
date: 2018-12-19T10:35:35-05:00
description: "Hugo combined with the Aether theme turns easy to write markdown into powerful web pages. KaTeX, Highlight.js, and Hugo provides the ability to create mathmatical symobols, equations, highlighted code, tables, lists, and much more."
categories: ["Features"]
-featuredImage: "img/mdd-iphone.jpg"
dropCap: true
displayInMenu: false
displayInList: true
draft: false
+resources:
+- name: featuredImage
+ src: "mdd-iphone.jpg"
---
Hugo combined with the Aether theme turns easy to write markdown into powerful web pages. KaTeX, Highlight.js, and Hugo provides the ability to create mathmatical symobols, equations, highlighted code, tables, lists, and much more.
@@ -109,18 +111,18 @@ Here is `var s = "Hello World"` inline code
## Images
```md
-![NYC Skyline](/img/nyc.jpg)
+![NYC Skyline](/post/aether-features/mdd-iphone.jpg)
```
-![NYC Skyline](/img/nyc.jpg)
+![NYC Skyline](/post/aether-features/mdd-iphone.jpg)
## Small Images
```md
-{{</* smallimg src="/img/nyc.jpg" alt="NYC Skyline" smartfloat="left" width="250px" */>}}
+{{</* smallimg src="featuredImage" alt="NYC Skyline" smartfloat="left" width="250px" */>}}
```
-{{<smallimg src="/img/nyc.jpg" alt="NYC Skyline" smartfloat="left" width="250px">}}
+{{<smallimg src="featuredImage" alt="aether theme displayed on an iPhone" smartfloat="left" width="250px">}}
This image floats to the left of this paragraph and is 250px wide. Its aspect ratio is maintained so it will not stretch. The picture shows the New York skyline. You can see how the design is responsive and how the cards intelligently fit to the display. With flexbox and css grid, heavy frameworks such as bootstrap aren't necessary to create beautiful responsive designs. The cards in aether use flexbox to change the image from the right side on desktops to the top on mobile.
diff --git a/exampleSite/static/img/mdd-iphone.jpg b/exampleSite/content/post/aether-features/mdd-iphone.jpg
index c6ae062..c6ae062 100644
--- a/exampleSite/static/img/mdd-iphone.jpg
+++ b/exampleSite/content/post/aether-features/mdd-iphone.jpg
Binary files differ
diff --git a/exampleSite/content/post/aether-theme.md b/exampleSite/content/post/aether-theme/index.md
index 3c51967..9c6fd20 100644
--- a/exampleSite/content/post/aether-theme.md
+++ b/exampleSite/content/post/aether-theme/index.md
@@ -3,11 +3,15 @@ title: "Aether: A Clean Theme for Hugo"
date: 2018-05-02T14:33:42-04:00
description: " Aether is new theme for Hugo that emphasizes motion, material, and depth as design elements. Distracting styling and page elements are forgone to focus on the content."
categories: ["Web"]
-featuredImage: "img/mdd-macbook.jpg"
dropCap: true
displayInMenu: false
displayInList: true
draft: false
+resources:
+- name: featuredImage
+ src: "mdd-macbook.jpg"
+ params:
+ description: "A MacBook showing a website using the aether theme"
---
Today's web is a frustrating mess of pop-ups, intrusive banners, and ads obstructing the content. I designed aether to be free of all these distractions and simply highlight the content. The result feels more like a native application than a website. Interactions are intuitive, content is the focus, and distractions are omitted.
diff --git a/exampleSite/static/img/mdd-macbook.jpg b/exampleSite/content/post/aether-theme/mdd-macbook.jpg
index d330bd9..d330bd9 100644
--- a/exampleSite/static/img/mdd-macbook.jpg
+++ b/exampleSite/content/post/aether-theme/mdd-macbook.jpg
Binary files differ
diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/post/creating-a-new-theme/index.md
index 26ab8a4..8159821 100644
--- a/exampleSite/content/post/creating-a-new-theme.md
+++ b/exampleSite/content/post/creating-a-new-theme/index.md
@@ -2,11 +2,13 @@
author: "Michael Henderson"
date: 2014-09-28
title: Creating a New Theme
-featuredImage: "img/nyc.jpg"
dropCap: true
displayInMenu: false
displayInList: true
draft: false
+resources:
+- name: featuredImage
+ src: "nyc.jpg"
---
diff --git a/exampleSite/static/img/nyc.jpg b/exampleSite/content/post/creating-a-new-theme/nyc.jpg
index 3c1b202..3c1b202 100644
--- a/exampleSite/static/img/nyc.jpg
+++ b/exampleSite/content/post/creating-a-new-theme/nyc.jpg
Binary files differ
diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/post/goisforlovers/index.md
index 60fcea2..f581909 100644
--- a/exampleSite/content/post/goisforlovers.md
+++ b/exampleSite/content/post/goisforlovers/index.md
@@ -1,6 +1,5 @@
+++
title = "(Hu)go Template Primer"
-featuredImage = "img/lucas-benjamin-565254-unsplash.jpg"
displayInMenu = false
displayInList = true
draft = false
@@ -16,6 +15,11 @@ categories = [
"Development",
"golang",
]
+[[resources]]
+ name = "featuredImage"
+ src = "lucas-benjamin-565254-unsplash.jpg"
+ [resources.params]
+ description = "Alt description for the featured image"
+++
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
diff --git a/exampleSite/static/img/lucas-benjamin-565254-unsplash.jpg b/exampleSite/content/post/goisforlovers/lucas-benjamin-565254-unsplash.jpg
index a5489f7..a5489f7 100644
--- a/exampleSite/static/img/lucas-benjamin-565254-unsplash.jpg
+++ b/exampleSite/content/post/goisforlovers/lucas-benjamin-565254-unsplash.jpg
Binary files differ
diff --git a/exampleSite/static/img/andrew-neel-609846-unsplash.jpg b/exampleSite/content/post/hugoisforlovers/andrew-neel-609846-unsplash.jpg
index 5859e34..5859e34 100644
--- a/exampleSite/static/img/andrew-neel-609846-unsplash.jpg
+++ b/exampleSite/content/post/hugoisforlovers/andrew-neel-609846-unsplash.jpg
Binary files differ
diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/post/hugoisforlovers/index.md
index 8339850..52ebf7d 100644
--- a/exampleSite/content/post/hugoisforlovers.md
+++ b/exampleSite/content/post/hugoisforlovers/index.md
@@ -15,6 +15,9 @@ categories = [
"Development",
"golang",
]
+[[resources]]
+ name = "featuredImage"
+ src = "andrew-neel-609846-unsplash.jpg"
+++
## Step 1. Install Hugo
diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/post/migrate-from-jekyll/index.md
index 369b756..7b323ab 100644
--- a/exampleSite/content/post/migrate-from-jekyll.md
+++ b/exampleSite/content/post/migrate-from-jekyll/index.md
@@ -1,10 +1,12 @@
---
date: 2014-03-10
-featuredImage: "img/yan-ots-257617-unsplash.jpg"
displayInMenu: false
displayInList: true
draft: false
title: Migrate to Hugo from Jekyll
+resources:
+- name: featuredImage
+ src: "yan-ots-257617-unsplash.jpg"
---
## Move static content to `static`
diff --git a/exampleSite/static/img/yan-ots-257617-unsplash.jpg b/exampleSite/content/post/migrate-from-jekyll/yan-ots-257617-unsplash.jpg
index 83b83de..83b83de 100644
--- a/exampleSite/static/img/yan-ots-257617-unsplash.jpg
+++ b/exampleSite/content/post/migrate-from-jekyll/yan-ots-257617-unsplash.jpg
Binary files differ
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 145d7f3..0c9fb7e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -15,7 +15,11 @@
{{ . }}
</section>
{{- end }}
- {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
+ {{ $pages := .Pages }}
+ {{ if .IsHome }}
+ {{ $pages = .Site.RegularPages }}
+ {{ end }}
+ {{ $paginator := .Paginate (where $pages "Params.displayinlist" "!=" false) -}}
{{- range $paginator.Pages -}}
{{ .Render "li" }}
{{- end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 222fdc8..79eb808 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -24,7 +24,8 @@
{{ $mainStyle := resources.Get "css/style.css" }}
{{ $xcodeStyle := resources.Get "css/xcode.css" }}
{{ $fontStyle := resources.Get "css/latolatinfonts.css" }}
- {{ $style := slice $xcodeStyle $fontStyle $mainStyle | resources.Concat "css/concated.css" | minify }}
+ {{ $overrideStyle := resources.Get "css/override.css" }}
+ {{ $style := slice $xcodeStyle $fontStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}