Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
💄 update style etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
canstand committed Nov 16, 2021
1 parent 91ac63d commit 48cab1f
Show file tree
Hide file tree
Showing 29 changed files with 346 additions and 150 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ hugo_stats.json
exampleSite/public/
exampleSite/resources/_gen/
TODO
.hugo_build.lock
4 changes: 1 addition & 3 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
title: {{ replace .Name "-" " " | title }}
date: {{ .Date }}
draft: true
description: ""
slug: "{{ .File.BaseFileName }}"
topics: []
---
1 change: 1 addition & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enableRobotsTXT = true
[author]
# name = "Your name here"
# image = "img/author.jpg"
# bio = "A little bit about you"
# links = [
# { email = "mailto:hello@your_domain.com" },
# { link = "https://link-to-some-website.com/" },
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -- Main Menu --
# The main menu is displayed at the top of the theme.
# The main menu is displayed in the header at the top of the page.
# Acceptable parameters are name, pageRef, page, url, title, weight.
#
# The simplest menu configuration is to provide:
Expand Down
2 changes: 1 addition & 1 deletion config/_default/module.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[hugoVersion]
extended = false
min = "0.88.1"
min = "0.89.2"
3 changes: 2 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ logo = "logo-192.png"
showHeadingAnchors = true
showPagination = true
showReadingTime = true
# sharingLinks = ["facebook", "twitter", "reddit", "linkedin", "email"]
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
showTOC = true

[list]
showBreadcrumbs = false
showSummary = true
groupByYear = true

[taxonomy]
Expand Down
5 changes: 5 additions & 0 deletions data/sharing.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"title": "sharing.linkedin",
"url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s"
},
"pinterest": {
"icon": "pinterest",
"title": "sharing.pinterest",
"url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s"
},
"reddit": {
"icon": "reddit",
"title": "sharing.reddit",
Expand Down
8 changes: 2 additions & 6 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ defaultContentLanguage = "en"
title = "Compost"
enableEmoji = true

# [build]
# # Used by PurgeCSS
# writeStats = true

[module]
[[module.imports]]
# We include the theme by "../.." above, but we need one module import for Hugo to detect us as a Hugo Module.
Expand All @@ -39,10 +35,10 @@ path="github.com/bep/empty-hugo-module"

[params.homepage]
layout = "page"
showRecent = false
showRecent = true

[params.list]
groupByYear = false
groupByYear = true
showBreadcrumbs = true

[params.article]
Expand Down
80 changes: 42 additions & 38 deletions exampleSite/content/posts/markdown-syntax.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
---
title: "Markdown Syntax Guide"
date: 2019-03-11
description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags: ["markdown", "css", "html", "sample"]
author: Hugo Authors
title: Markdown Syntax Guide
date: '2019-03-11'
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
tags:
- markdown
- css
- html
categories:
- themes
- syntax
series:
- Themes Guide
aliases:
- migrate-from-jekyl
draft: false
---

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.

<!--more-->

## Headings

The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.

# H1

## H2

### H3

#### H4

##### H5

###### H6

## Paragraph
Expand All @@ -38,7 +44,7 @@ The blockquote element represents content that is quoted from another source, op
#### Blockquote without attribution

> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution

Expand All @@ -51,31 +57,31 @@ The blockquote element represents content that is quoted from another source, op

Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.

| Name | Age |
| ----- | --- |
| Bob | 27 |
| Alice | 23 |
Name | Age
--------|------
Bob | 27
Alice | 23

#### Inline Markdown within tables

| Italics | Bold | Code |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |

## Code Blocks

#### Code block with backticks

```html
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```

Expand All @@ -93,9 +99,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
</html>

#### Code block with Hugo's internal highlight shortcode

{{< highlight html >}}

<!doctype html>
<html lang="en">
<head>
Expand All @@ -118,19 +122,19 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou

#### Unordered List

- List item
- Another item
- And another item
* List item
* Another item
* And another item

#### Nested list

- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese

## Other Elements — abbr, sub, sup, kbd, mark

Expand All @@ -140,6 +144,6 @@ H<sub>2</sub>O

X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>

Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.

Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
12 changes: 2 additions & 10 deletions exampleSite/content/posts/placeholder-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,16 @@ Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silen
4. Arcanaque montibus omnes
5. Quidem et

# Vagus elidunt
## Vagus elidunt

<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>

[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)

## Mane refeci capiebant unda mulcebat
### Mane refeci capiebant unda mulcebat

Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.

Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.

Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, _oculos nomen_ non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.

{{< css.inline >}}

<style>
.canon { background: white; width: 100%; height: auto; }
</style>

{{< /css.inline >}}
27 changes: 16 additions & 11 deletions exampleSite/content/posts/rich-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,34 @@
title: "Rich Content"
date: 2019-03-10
description: "A brief description of Hugo Shortcodes"
tags: ["shortcodes", "privacy", "sample"]
summary: "This is an _example_ of a **rich** content summary."
tags: ["shortcodes", "privacy", "sample", "gist", "twitter", "youtube", "vimeo"]
---

Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
Hugo ships with several [built-in shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [privacy config](https://gohugo.io/about/hugo-and-gdpr/) and a set of _simple shortcodes_ that enable static and no-JS versions of various social media embeds.

## <!--more-->
## YouTube

## YouTube Privacy Enhanced Shortcode
Below is an example using the built-in `youtube` shortcode.

{{< youtube ZJthWmvUzzc >}}

<br>
## Twitter

---
This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`.

## Twitter Simple Shortcode
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}

{{< twitter_simple 1085870671291310081 >}}
Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card.

<br>
## Gist

---
The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist.

{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}

## Vimeo

## Vimeo Simple Shortcode
The `vimeo_simple` shortcode will embed a Vimeo video.

{{< vimeo_simple 48912912 >}}
Loading

0 comments on commit 48cab1f

Please sign in to comment.