chore: updated page description partial

This commit is contained in:
Xin 2023-08-27 23:44:43 +01:00
parent 259b050dfb
commit a1f2859944
9 changed files with 25 additions and 6 deletions

View File

@ -5,6 +5,8 @@ title: Hextraへようこそ
👋 こんにちはHextraドキュメンテーションへようこそ
<!--more-->
## Hextraとは
Hextraは、[Hugo][hugo]テーマの一つで、[Tailwind CSS][tailwind-css]を使用して作られた、現代的で高速なバッテリー内蔵のテーマです。

View File

@ -5,6 +5,8 @@ title: Introduction
👋 Hello! Welcome to the Hextra documentation!
<!--more-->
## What is Hextra?
Hextra is a modern, fast and batteries-included [Hugo][hugo] theme built with [Tailwind CSS][tailwind-css].

View File

@ -8,6 +8,8 @@ sidebar:
Explore the following sections to learn to compose content using Hextra:
<!--more-->
{{< cards >}}
{{< card link="organize-files" title="Organize Files" icon="document-duplicate" >}}
{{< card link="configuration" title="Configuration" icon="adjustments" >}}

View File

@ -7,6 +7,8 @@ Hugo reads its configuration from `hugo.yaml` in the root of your Hugo site.
The config file is where you can configure all aspects of your site.
You can find the config file for this site in `exampleSite/hugo.yaml` as a good starting point.
<!--more-->
## Navigation
### Menu

View File

@ -6,6 +6,8 @@ math: true
$\KaTeX$ is used for rendering LaTeX math expressions. It can be enabled per page by setting `math` to `true` in the page front matter.
<!--more-->
```yaml {filename="Markdown"}
---
title: "My Page with LaTeX"

View File

@ -8,6 +8,8 @@ weight: 1
By default, Hugo searches for Markdown files in the `content` directory, and the structure of the directory determines the final output structure of your website.
Take the example site as an example:
<!--more-->
{{< filetree/container >}}
{{< filetree/folder name="content" >}}
{{< filetree/file name="_index.md" >}}

View File

@ -6,6 +6,8 @@ weight: 3
Hugo uses [Chroma](https://github.com/alecthomas/chroma), a general purpose syntax highlighter in pure Go, for syntax highlighting.
It is recommended to use backticks for code blocks in Markdown content. For example:
<!--more-->
````markdown {filename="Markdown"}
```python
def say_hello():

View File

@ -66,18 +66,23 @@ menu:
icon: github
sidebar:
- name: More
- identifier: more
name: More
params:
type: separator
weight: 1
- name: "About"
- identifier: about
name: "About"
pageRef: "/about"
weight: 2
- name: "Hugo Docs ↗"
- identifier: hugoDocs
name: "Hugo Docs ↗"
url: "https://gohugo.io/documentation/"
weight: 3
params:
description: Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
navbar:
displayTitle: true
displayLogo: true

View File

@ -1,11 +1,11 @@
{{ with .Description | plainify -}}
{{ . -}}
{{ else -}}
{{ if .IsPage -}}
{{ .Summary | plainify | chomp -}}
{{ else -}}
{{ if .IsHome -}}
{{ with .Site.Params.description | plainify -}}
{{ . -}}
{{ end -}}
{{ else -}}
{{ .Summary | plainify | chomp -}}
{{ end -}}
{{ end -}}