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

Commit

Permalink
sites: translated /zh-hans/specs/hestiaGUI/zoralabTOC/ page
Browse files Browse the repository at this point in the history
Since the /zh-hans/specs/hestiaGUI/ page is ready, we can proceed to
port zoralabTOC spec page. Hence, let's do this.

This patch ports /zh-hans/specs/hestiaGUI/zoralabTOC/ spec page
into sites/ directory.

Co-authored-by: Shuralyov, Jean <[email protected]>
Co-authored-by: Galyna, Cory <[email protected]>
Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]>
Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
  • Loading branch information
3 people committed Jun 6, 2023
1 parent 3726dfe commit cd16d1e
Show file tree
Hide file tree
Showing 10 changed files with 433 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- /*
Page's HTML's LD+JSON Output Prime Control

This file is your LD+JSON output that will be deployed into your HTML meta page.
Hugo's and Go's template processors are available at your disposal in case of
mathematical or logical algorithms development.
*/ -}}
{{- /* prepare variables for function */ -}}
{{- $Page := . -}}
{{- $dataList := dict -}}




{{- /* execute function */ -}}
{{- $dataList = merge $dataList (partial "hestiaJSON/schemaorgLDJSON/WebPage" .) -}}




{{- /* render output */ -}}
{{- jsonify $dataList -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# PAGE-SPECIFIC CONTRIBUTORS
# ==========================
# QUICK NOTE:
# 1. Your contributor data shall be supplied in the .Data.Hestia.Creators/
# directory. Here, you only list them out using their data filename as the
# Key for this page and update their contribution.
# 2. Example entries:
# [[Contributor]]
# Key = 'Holloway'
#
# [Contributor.Contribution]
# Creation = true
# Contact = true
# Artwork = false
# Knowledge = true
# Editor = true
# Developer = false
# Maintainer = false
# Producer = false
# Provider = false
# Publisher = false
# Funder = false
# Sponsor = false
#
# [[Contributor]]
# Key = 'CoryGalyna'
#
# [Contributor.Contribution]
# Creation = false
# Contact = false
# Artwork = false
# Knowledge = false
# Editor = true
# Developer = false
# Maintainer = false
# Producer = false
# Provider = false
# Publisher = false
# Funder = true
# Sponsor = false
#
# ...
[[Contributors]]
Key = 'ZORALab'

[Contributors.Contribution]
Creation = true
Contact = true
Artwork = false
Knowledge = false
Editor = true
Developer = false
Maintainer = false
Producer = true
Provider = true
Publisher = true
Funder = false
Sponsor = true




[[Contributors]]
Key = 'HollowayKeanHo'

[Contributors.Contribution]
Creation = true
Contact = false
Artwork = false
Knowledge = true
Editor = true
Developer = false
Maintainer = false
Producer = false
Provider = false
Publisher = false
Funder = false
Sponsor = false
2 changes: 2 additions & 0 deletions sites/content/zh-hans/specs/hestiaGUI/zoralabTOC/__data.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Dataset]
Path = 'hestiaGUI.zoralabTOC'
25 changes: 25 additions & 0 deletions sites/content/zh-hans/specs/hestiaGUI/zoralabTOC/__languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# AVAILABLE TRANSLATION PAGES
# ===========================
# Data pattern:
# [{[code]}{-[Script]}{-[COUNTRY]}]
# URL = "[URL]"
# Examples:
# [en]
# URL = "/en/my-page-here/"
#
# [zh-Hans]
# URL = "/zh-hans/我的网站这儿/"
#
# NOTE:
# 1. The language code **MUST** be one of the Hestia site-level languages.
# Otherwise, error shall be thrown.
# 2. If you need to use external pages, set the internal page's settings to
# redirect immediately towards it.
# 3. If the URL is left empty (""), that translation page is disabled.
# 4. Hestia compatible URL (ONLY .Languages data structure is usable) can
# be accepted in the .Lang.URL fields (see example above).
[en]
URL = '/en/specs/hestiagui/zoralabtoc'

[zh-Hans]
URL = '/zh-hans/specs/hestiagui/zoralabtoc'
124 changes: 124 additions & 0 deletions sites/content/zh-hans/specs/hestiaGUI/zoralabTOC/__page.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# PAGE METADATA
# =============
# Date fields.
#
# NOTE:
# 1. You can generate date easily on linux using '$ date' command.
# 2. If date field is left blank, the current time shall be used instead.
# 3. Date should ONLY comply to this pattern when manually constructed:
# Thu 21 Jul 2022 14:27:39 PM +08
[Date]
Created = "Fri 09 Dec 2022 09:09:02 PM +08"
Published = "Fri 09 Dec 2022 09:09:02 PM +08"




# Content fields.
# NOTE:
# 1. For .Title, Hestia's string processing using page variables are allowed
# and only limited to .Titles sub-fields.
# 2. For .Keywords, Hestia's string processing using page variables are
# allowed but strongly discouraged.
[Content]
Title = "zoralabTOC科技规范 - ZORALab赫斯提亚"
Keywords = [
'zoralabTOC',
'hestiaGUI',
'科技规范',
'规范',
'网站',
'科技',
'PWA',
'WASM',
'代码库',
'Hugo',
'Go',
'TinyGo',
'Nim',
'ZORALab',
'ZORALab赫斯提亚',
]




# Description fields.
# NOTE:
# 1. Hestia's string processing using page variables are allowed.
# 2. The .Description.Pitch is at maximum 160 characters.
# 3. The .Description.Summary is at maximum of 250 characters.
# 4. All fields shall have their whitespace cleansed during the processing.
[Description]
Pitch = '''
当用着这份代码包时所需的科技规范。
'''
Summary = '''
随和、支持离线(通过PWA安装)和非常注重细节的。
'''




# Redirect fields.
# NOTE:
# 1. Hestia's URL processing is allowed for .URL field.
# 2. .Delay timing sets the delay time before redirect. Setting to '0' means
# an immediate redirect is requested.
# 3. Redirect is only available if .Enabled is set to 'true'.
# 4. Redirect.Language is to redirect the current page to its
# language-specific page when Javascript is made available on client side
# or fallback to default language.
[Redirect]
Delay = 0 # second
URL = ''
Enabled = false

[Redirect.Language]
Enabled = false




# Content Files' Sourcing Location
# NOTE:
# 1. To denote where are the content sources.
# 2. If you're sourcing from assets directory, prefix 'assets/'.
# 3. If you're sourcing from layouts directory, prefix 'layouts/'.
# 2. If you're sourcing from static directory, prefix 'static/'.
# 3. If you're sourcing from partial directory, prefix 'layouts/partials/'.
[Sources]
HTML = 'layouts/content/specs/zoralab/index.html'
JSON = 'layouts/content/specs/zoralab/index.json'
CSS = 'layouts/content/specs/zoralab/index.css'
JS = 'layouts/content/specs/zoralab/index.js'
LDJSON = '__content.hestiaLDJSON'
Contributors = '__contributors.toml'
Thumbnails = '__thumbnails.toml'
Languages = '__languages.toml'
Assets = 'layouts/content/specs/zoralab/assets.toml'
Components = 'layouts/content/specs/zoralab/components.toml'




# Data fields.
# NOTE:
# 1. List only the page-level data files. It can be in any of the following
# formats: '.json', '.toml', or '.yaml'.
# 2. Hestia string processing is available and shall be processed prior to
# dataset transformation.
# 3. Sequences of the .Data array dictates sequences of loading and overriding
# (the latter shall overwrite the former for the same data fields).
# 4. The final processed dataset shall be served as main data content in
# supported output format (e.g. index.json).
# 5. Missing data file shall be ignored.
# 6. To add more data files, simply duplicate and add more .Data array entry.
# Example:
# [[data]]
# Filename = 'file1.json'
#
# [[data]]
# Filename = 'file2.toml'
[[Data]]
Filename = '__data.toml'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# PAGE SPECIFIC ROBOTS INSTRUCTIONS LIST
# ======================================
#
# Example:
# [[Meta]]
# Name = "googleBot"
# Content = "noindex, nofollow"
91 changes: 91 additions & 0 deletions sites/content/zh-hans/specs/hestiaGUI/zoralabTOC/__thumbnails.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Hestia PAGE-LEVEL thumbnails configurations
# -------------------------------------------
[Contents.0]
Name = '{{- .Titles.Page -}}'
Decorative = false
Loading = 'lazy'
Width = '1200'
Height = '630'
CORS = 'anonymous'
Relationship = ''
Design = ''
Preload = ''
Control = false
Autoplay = false
Loop = false
Mute = false
Inline = false

[[Contents.0.Sources]]
URL = '/thumbnails-1200x630.jpg'
Type = 'image/jpeg'
Media = 'all'
Descriptor = '1x'

[Contents.0.Tracks.en]
URL = ''
Kind = 'subtitles'
Label = 'English'
Default = false




[Contents.1]
Name = '{{- .Titles.Page -}}'
Decorative = false
Loading = 'lazy'
Width = '1200'
Height = '1200'
CORS = 'anonymous'
Relationship = ''
Design = ''
Preload = ''
Control = false
Autoplay = false
Loop = false
Mute = false
Inline = false

[[Contents.1.Sources]]
URL = '/thumbnails-1200x1200.jpg'
Type = 'image/jpeg'
Media = 'all'
Descriptor = '1x'

[Contents.1.Tracks.en]
URL = ''
Kind = 'subtitles'
Label = 'English'
Default = false




[Contents.2]
Name = '{{- .Titles.Page -}}'
Decorative = false
Loading = 'lazy'
Width = '480'
Height = '480'
CORS = 'anonymous'
Relationship = ''
Design = ''
Preload = ''
Control = false
Autoplay = false
Loop = false
Mute = false
Inline = false

[[Contents.2.Sources]]
URL = '/thumbnails-480x480.jpg'
Type = 'image/jpeg'
Media = 'all'
Descriptor = '1x'

[Contents.2.Tracks.en]
URL = ''
Kind = 'subtitles'
Label = 'English'
Default = false
28 changes: 28 additions & 0 deletions sites/content/zh-hans/specs/hestiaGUI/zoralabTOC/__twitter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# PAGE CONTENT CREATOR (OPTIONAL)
[Creator]
Handle = 'zoralab_team' # twitter handle (e.g. 'hollowaykeanho')




# APPLE APP STORE & GOOGLE PLAY STORE
# NOTE:
# 1) For .ID field, provide the App ID showcase in the public store; NOT the
# development app ID (e.g. NOT Apple Store Bundle ID).
# 2) Leave the fields empty to disable unused ones.
[Stores.iphone]
ID = ''
Name = ''
URL = ''


[Stores.ipad]
ID = ''
Name = ''
URL = ''


[Stores.googleplay]
ID = ''
Name = ''
URL = ''
Loading

0 comments on commit cd16d1e

Please sign in to comment.