Skip to content

Commit

Permalink
Performance improvent PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
x1y committed Sep 29, 2024
1 parent 7c3c531 commit 149ccb6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
16 changes: 8 additions & 8 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,33 +71,33 @@ enableRobotsTXT = true
[menu]
[[menu.right]]
name = "Blog"
url = "/blog/"
pageref = "/blog/"
weight = 1
[[menu.right]]
name = "Community"
url = "/community/"
pageref = "/community/"
weight = 2
[[menu.right]]
name = "Devices"
url = "/devices/"
pageref = "/devices/"
weight = 3
[[menu.right]]
name = "Documentation"
url = "/documentation/"
pageref = "/documentation/"
weight = 4
[[menu.right]]
name = "Contests"
url = "/contests/"
pageref = "/contests/"
weight = 5
[[menu.right]]
name = "Podcast"
url = "/podcast/"
pageref = "/podcast/"
weight = 6

[[menu.additional]]
name = "Store"
post = "<svg xmlns='http://www.w3.org/2000/svg' width='22' height='18' fill='none' stroke='#000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"
url = "#"
pageref = "#"
weight = 0
identifier = "store"
[menu.additional.params]
Expand All @@ -120,7 +120,7 @@ enableRobotsTXT = true
external = true
[[menu.additional]]
name = "Affiliates"
url = "/affiliates/"
pageref = "/affiliates/"
parent = "store"
weight = 3
identifier = ""
Expand Down
19 changes: 11 additions & 8 deletions content/community/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ aliases:
---

{{< box style="themewhite pad" >}}

{{< box style="pad_s blueshadow" type="image" link="/img/slider_index_1.jpg" width="350" >}}{{</ box >}}

{{< box style="pad_s blueshadow" type="image" link="/img/slider_index_1.jpg" width="380" >}}{{</ box >}}
{{< box style="pad f50 rows" title="" content="markdown" >}}

**Welcome to the PINE64 community!**

_PINE64_ has a large, diverse and active community, and offers a variety of resources for hobbyists and businesses to successfully leverage various PINE64 products.
Expand All @@ -22,13 +19,19 @@ To become connected and involved with the community, please see the channel list
{{</ box >}}


_PINE64_ is a community-driven company focused on creating high-quality, low-cost ARM devices and, more recently, RISC-V devices for individuals and businesses around the globe. PINE64 made its debut with the link:/documentation/Pine_A64[PINE A64] single-board computer, which successfully launched on Kickstarter in 2015. PINE64 has since released a multitude of other devices, including both development boards and end-user devices.

For information about PINE64 branding, including the usage of the PINE64 logo in non-commercial and other applications, please read the link:Brand_and_logo[article about our brand and logo].
{{< box style="themewhite pad" >}}
{{< box style="pad f50 rows" title="" content="markdown" >}}
_PINE64_ is a community-driven company focused on creating high-quality, low-cost ARM devices and, more recently, RISC-V devices for individuals and businesses around the globe. PINE64 made its debut with the [PINE A64](/documentation/Pine_A64) single-board computer, which successfully launched on Kickstarter in 2015. PINE64 has since released a multitude of other devices, including both development boards and end-user devices.

The most important asset we have at our disposal is our community. We foster an active, friendly and large community of developers, contributors and end-users like yourself. Across our various community-ran chats and forums there are tens of thousands of people willing to help with any issues you may encounter.
For information about PINE64 branding, including the usage of the PINE64 logo in non-commercial and other applications, please read the [article about our brand and logo](Brand_and_logo).

The most important asset we have at our disposal is our community. We foster an active, friendly and large community of developers, contributors and end-users like yourself. Across our various community-ran chats and forums there are tens of thousands of people willing to help with any issues you may encounter. There are a wide range of communication protocols to choose from.
{{</ box >}}

{{< box style="pad_s blueshadow" type="image" link="/img/philosophy.png" width="200" >}}{{</ box >}}
{{</ box >}}

There are a wide range of communication protocols to choose from.

== Chat platforms

Expand Down
2 changes: 1 addition & 1 deletion themes/pinetheme/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
{{ partial "head.html" . }}
<body>
{{- partial "header.html" . -}}
{{- partialCached "header.html" . .Section -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/pinetheme/layouts/blog/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>{{ .Title }}</h1>

<div class="box rows pad_s">
<h3>{{ .Title }}</h3>
<p>{{ .Summary }}</p>
<p>{{ .Summary | strings.Truncate 300 | plainify}}</p>
{{ partial "blog_date.html" . }}
</div>
</a>
Expand Down
3 changes: 2 additions & 1 deletion themes/pinetheme/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
<!-- Main menu -->
<div id="main_menu">
{{- $currentPage := . -}}
{{ $section := .Site.GetPage $currentPage.Section }}
{{- range .Site.Menus.right.ByWeight -}}
<a class='nav-link
{{- if or (or ($currentPage.IsMenuCurrent "right" .) ($currentPage.HasMenuCurrent "right" .)) (strings.Contains $currentPage .URL ) }} active{{end -}}
{{- if $section.IsMenuCurrent "right" .}} active{{end -}}
{{- if eq .Params.external true }} external{{end -}}
' href="{{ .URL }}"
{{- if eq .Params.external true }} target="_blank" rel="noopener noreferrer"{{ end -}}>
Expand Down
6 changes: 3 additions & 3 deletions themes/pinetheme/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

name = "Pinetheme"
license = "CC0"
licenselink = "https://github.com/???/yourtheme/blob/master/LICENSE"
licenselink = "https://creativecommons.org/publicdomain/zero/1.0/legalcode"
description = ""
homepage = "http://pine64.org/"
homepage = "https://pine64.org/"
tags = []
features = []
min_version = "0.41.0"
min_version = "0.59.1"

[author]
name = ""
Expand Down

0 comments on commit 149ccb6

Please sign in to comment.