Nice groups display, but still no group mgmt
This commit is contained in:
parent
0482e1bc65
commit
02261320cf
@ -21,7 +21,14 @@ frontmatter:
|
||||
- :fileModTime
|
||||
- :default
|
||||
|
||||
markup.goldmark.renderer.unsafe: true
|
||||
# To allow html
|
||||
markup:
|
||||
goldmark:
|
||||
renderer:
|
||||
unsafe: true
|
||||
|
||||
# Important to correctly update all related files upon modifications
|
||||
disableFastRender: true
|
||||
|
||||
taxonomies:
|
||||
group: groups
|
||||
|
@ -128,6 +128,7 @@ body.users .ac_choice input[type="radio"]:checked + label.text {
|
||||
border-radius: 0.2em;
|
||||
}
|
||||
|
||||
aside#actions input#cover,
|
||||
aside#actions input#file {
|
||||
display: none;
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<section class="pa3 pa4-ns nested-copy-line-height
|
||||
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
||||
<article class="pa3 pa4-ns nested-copy-line-height no-text">
|
||||
{{ with .Content }}
|
||||
<section id="content"
|
||||
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
@ -24,10 +23,10 @@
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
|
||||
{{ range (.Paginate .RegularPagesRecursive).Pages }}
|
||||
{{ range .RegularPagesRecursive }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -1,30 +1,30 @@
|
||||
{{ define "main" }}
|
||||
<section class="pa3 pa4-ns nested-copy-line-height
|
||||
{{ $currentPage := . }}
|
||||
|
||||
<article class="pa3 pa4-ns nested-copy-line-height no-text
|
||||
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
||||
<aside id="actions" class="w-30-l mt4-l fr tc">
|
||||
<aside class="w-third-l fr tc" id="actions">
|
||||
{{ if .Parent.IsHome }}
|
||||
<button id="create"
|
||||
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer">
|
||||
{{ T (print .Section ".create") }}
|
||||
</button>
|
||||
{{ else if .Parent.Parent.IsHome }}
|
||||
<button id="delete"
|
||||
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer"
|
||||
data-confirm="{{ T (print .Section ".delete") }}?">
|
||||
{{ T (print .Section ".delete") }}
|
||||
</button>
|
||||
{{ end }}
|
||||
</aside>
|
||||
|
||||
{{ with .Content }}
|
||||
<section id="content"
|
||||
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
class="ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{- . -}}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="flex flex-column flex-row-ns flex-wrap">
|
||||
{{ range .Pages }}
|
||||
<div class="w-100 w-third-ns">
|
||||
{{ .Render "summary-with-image" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -22,7 +22,7 @@
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="flex-ns flex-wrap justify-around">
|
||||
<section class="flex-wrap">
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ .Render "summary-with-image" }}
|
||||
{{ end }}
|
||||
|
@ -1,26 +1,21 @@
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
|
||||
<article class="relative w-100 bb b--black-10 db pv4 ph3 ph0-l no-underline dark-gray flex flex-column flex-row-ns">
|
||||
<article class="ma1 pa2 bg-light-gray flex flex-column flex-row-ns relative">
|
||||
<div class="w-100 w-40-ns pr3-ns">
|
||||
{{ if $featured_image }}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
<div class="mb4 mb0-ns w-100 w-40-ns {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }}">
|
||||
<a href="{{.RelPermalink}}" class="db grow">
|
||||
<img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}">
|
||||
<img src="{{ $featured_image }}" class="img" alt="{{ .Title }}">
|
||||
</a>
|
||||
{{ else }}
|
||||
<a class="hero-pill db h-100 bg-black no-underline" href="{{.RelPermalink}}"> </a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ else }}
|
||||
<a class="hero-pill fl w-10-ns bg-black mr3" href="{{.RelPermalink}}"></a>
|
||||
{{ end }}
|
||||
|
||||
<div class="blah w-100{{ if $featured_image }} w-60-ns{{ else }} w-90-ns{{ end }}">
|
||||
<div class="blah w-100 w-60-ns">
|
||||
<header>
|
||||
<time class="db f6 fr" datetime="{{ .Date }}">
|
||||
<time class="f7 i fr" datetime="{{ .Date }}">
|
||||
{{ .Date | time.Format .Site.Params.date_format }}
|
||||
</time>
|
||||
<ol class="breadcrumb nav navbar-nav">
|
||||
{{ partial "breadcrumb" .Parent }}
|
||||
</ol>
|
||||
</header>
|
||||
|
||||
<h1 class="f3 fw1 athelas mt0 lh-title">
|
||||
@ -31,9 +26,6 @@
|
||||
<p class="f6 f5-l lh-copy nested-copy-line-height nested-links summary">
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">
|
||||
{{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ partial "ac_notation" .Parent }}
|
||||
|
@ -1,10 +1,11 @@
|
||||
{{ define "main" }}
|
||||
{{ if .Params.groups }}
|
||||
{{ with .Site.GetPage (path.Join "groups" .Params.groups) }}
|
||||
<span class="group absolute top-1 right-1">
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
{{ if $featured_image }}
|
||||
<a href="{{.RelPermalink}}">
|
||||
<img src="{{ $featured_image }}" class="grow mw3 mw4-l" alt="{{ .Title }}">
|
||||
<img src="{{ $featured_image }}" class="grow mw3 mw4-l" alt="{{ .Title }}"/>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a class="hero-pill bg-black" href="{{.RelPermalink}}">
|
||||
@ -13,9 +14,9 @@
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<section class="pa3 pa4-ns nested-copy-line-height
|
||||
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
||||
<article class="pa3 pa4-ns nested-copy-line-height no-text">
|
||||
<aside id="actions" class="w-30-l mt4-l fr tc">
|
||||
{{ if .Parent.IsHome }}
|
||||
<button id="create"
|
||||
@ -47,19 +48,25 @@
|
||||
|
||||
{{ with .Content }}
|
||||
<section id="content"
|
||||
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
class="cf pa3 f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{- . -}}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="flex no-text">
|
||||
<section class="flex flex-column flex-row-ns flex-wrap">
|
||||
{{ if .Parent.IsHome }}
|
||||
{{ range .Pages }}
|
||||
<span class="w-third h8">
|
||||
<span class="w-100 w-third-ns">
|
||||
{{ .Render "summary-with-image" }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ range .RegularPagesRecursive }}
|
||||
<span class="w-100 w-third-ns with-breadcrumb">
|
||||
{{ .Render "summary-with-image" }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
{{- template "_internal/pagination.html" . -}}
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -4,11 +4,11 @@
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</article>
|
||||
|
||||
<dl class="links">
|
||||
<dl class="links">
|
||||
{{ range .Sections }}
|
||||
<dt class="{{ .Section }}">
|
||||
<a href="{{ .RelPermalink }}" class="link grow">{{ .Title }}</a>
|
||||
@ -22,5 +22,15 @@
|
||||
</dt>
|
||||
<dd>{{ len site.Taxonomies.groups }}</dd>
|
||||
{{ end }}
|
||||
</dl>
|
||||
</dl>
|
||||
|
||||
{{ with site.GetPage "users" }}
|
||||
<section class="flex flex-column flex-row-ns flex-wrap">
|
||||
{{ range .RegularPagesRecursive }}
|
||||
<span class="w-100 w-third-ns with-breadcrumb no-text">
|
||||
{{ .Render "summary-with-image" }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{ if gt .Params.ac_total 0 }}
|
||||
<span class="notation">
|
||||
<span class="notation f7">
|
||||
{{ sub .Params.ac_total .Params.ac_errors }} / {{ .Params.ac_total }}
|
||||
</span>
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
|
@ -1,9 +1,7 @@
|
||||
{{ if and .Parent.IsSection (not .Parent.IsHome) }}
|
||||
|
||||
{{ partial "breadcrumb.html" .Parent }}
|
||||
|
||||
<li>
|
||||
{{ range .Ancestors.Reverse }}
|
||||
{{ if and (not .IsHome) (not .Parent.IsHome) }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{- .Title -}}</a>
|
||||
</li>
|
||||
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user