Comments (2)
Same problem. Any method to change the order?
from gohugo-theme-ananke.
Here's the way I do it (switchable vie site parameter):
diff --git a/layouts/index.html b/layouts/index.html
index 4b826a1..84a5caf 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,6 +11,12 @@
{{ $section_name := . }}
{{/* Create a variable with that section to use in multiple places. */}}
{{ $section := where $.Site.RegularPages "Section" "in" $section_name }}
+
+ {{ if $.Site.Params.order_by_date | default false }}
+ {{ $section = $section.ByDate }}
+ {{ end }}
+
+
{{ $section_count := len $section }}
{{ if ge $section_count 1 }}
<div class="pa3 pa4-ns w-100 w-70-ns center">
from gohugo-theme-ananke.
Related Issues (20)
- Contribution: fix hard-coded link to section HOT 2
- Images not rendered in alternative language
- Custom CSS - Width of text rendered on Desktop Browser HOT 1
- Cannot display icon for custom social HOT 1
- Title color HOT 1
- Hugo extended edition required by default?
- Page is just blank. Missing images HOT 1
- Pages now appear listed in the Home page along Posts HOT 1
- Extra {{end}} index.html HOT 3
- Bad link to demo site HOT 1
- github social link adds breaks when hosted on github.io
- Demo doesn't work HOT 3
- Building site locally returns ERROR on google_analytics_async.html HOT 9
- Make header opacity configurable HOT 2
- How to configure a contact form to use a larger font on PC ? HOT 1
- Error when trying to build on Netlify
- readme.md:PART Change the hero background use = instead :
- Using Language names instead of language keys in languange switcher
- How to get rid from noindex, nofollow on the production website? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gohugo-theme-ananke.