Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext.org
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext.org
Commits
7c4371df
Commit
7c4371df
authored
Aug 13, 2024
by
Fabien Maniere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve tile tpl
parent
fe9fe6da
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
101 deletions
+30
-101
index.html
gargantext-org-website/index.html
+5
-95
site.hs
gargantext-org-website/site.hs
+6
-6
tile.html
gargantext-org-website/templates/tile.html
+19
-0
No files found.
gargantext-org-website/index.html
View file @
7c4371df
This diff is collapsed.
Click to expand it.
gargantext-org-website/site.hs
View file @
7c4371df
...
...
@@ -89,16 +89,16 @@ main = hakyllWith config $ do
postCtx
::
Context
String
postCtx
=
dateField
"date"
"%B %e, %Y"
`
mappend
`
short
UrlField
`
mappend
`
domain
UrlField
`
mappend
`
defaultContext
short
UrlField
::
Context
String
shortUrlField
=
field
"short
_url"
$
\
item
->
do
domain
UrlField
::
Context
String
domainUrlField
=
field
"domain
_url"
$
\
item
->
do
url
<-
getMetadataField'
(
itemIdentifier
item
)
"url"
return
$
get
Short
Url
url
return
$
get
Domain
Url
url
get
Short
Url
::
String
->
String
get
Short
Url
url
=
case
parseURI
url
>>=
uriAuthority
of
get
Domain
Url
::
String
->
String
get
Domain
Url
url
=
case
parseURI
url
>>=
uriAuthority
of
Just
auth
->
uriRegName
auth
Nothing
->
url
...
...
gargantext-org-website/templates/tile.html
0 → 100644
View file @
7c4371df
<div
class=
"col"
>
<div
class=
"card h-100 border-0 bg-transparent"
style=
""
>
<div
class=
"row g-0"
>
$if(image)$
<div
class=
"img-wrapper col-md-5"
>
<img
src=
"$image$"
class=
"img-fluid rounded-start"
alt=
"..."
>
</div>
$endif$
<div
class=
"col-md-7"
>
<div
class=
"card-body pt-0"
>
<h5
class=
"card-title"
>
$title$
</h5>
<p
class=
"card-text"
>
$description$
</p>
<p
class=
"card-text"
><small
class=
"text-muted"
>
$domain_url$
<i
class=
"fa fa-external-link "
aria-hidden=
"true"
></i></small></p>
<a
href=
"$url$"
target=
"_blank"
class=
"btn btn-primary"
>
Voir
<i
class=
"fa fa-external-link "
aria-hidden=
"true"
></i></a>
</div>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment