浏览代码

custom twig'

kevin tessier 5 年之前
父节点
当前提交
2d89ab8faf
共有 37 个文件被更改,包括 324 次插入220 次删除
  1. 5 0
      system/blueprints/config/site.yaml
  2. 7 0
      system/blueprints/user/account.yaml
  3. 0 0
      user/config/media.yaml
  4. 16 5
      user/config/site.yaml
  5. 0 0
      user/config/streams.yaml
  6. 113 18
      user/config/system.yaml
  7. 二进制
      user/pages/01.home/RectoHD.jpg
  8. 6 0
      user/pages/01.home/_pourquoi-le-style-de-lours/modular.md
  9. 0 42
      user/pages/01.home/default.md
  10. 13 0
      user/pages/01.home/modular.md
  11. 7 0
      user/pages/02.metier/_img1/text.md
  12. 5 0
      user/pages/02.metier/_img2/text.md
  13. 二进制
      user/pages/02.metier/_img3/etape_1.jpg
  14. 12 0
      user/pages/02.metier/_img3/text.md
  15. 二进制
      user/pages/02.metier/_img4/etape_2.jpg
  16. 12 0
      user/pages/02.metier/_img4/text.md
  17. 二进制
      user/pages/02.metier/_test1/etape_3.jpg
  18. 12 0
      user/pages/02.metier/_test1/text.md
  19. 二进制
      user/pages/02.metier/_text1/etape_4.jpg
  20. 12 0
      user/pages/02.metier/_text1/text.md
  21. 8 0
      user/pages/02.metier/modular.md
  22. 0 155
      user/pages/02.typography/default.md
  23. 二进制
      user/pages/03.reference/_01.travaux_realises/_projet1/etape_4.jpg
  24. 9 0
      user/pages/03.reference/_01.travaux_realises/_projet1/text.md
  25. 二进制
      user/pages/03.reference/_01.travaux_realises/_secours-cat/46446946_252836978923795_7087389658438434816_n.jpg
  26. 8 0
      user/pages/03.reference/_01.travaux_realises/_secours-cat/text.md
  27. 6 0
      user/pages/03.reference/_01.travaux_realises/modular.md
  28. 二进制
      user/pages/03.reference/_02.recommandations/_reco1/etape_4.jpg
  29. 9 0
      user/pages/03.reference/_02.recommandations/_reco1/text.md
  30. 6 0
      user/pages/03.reference/_02.recommandations/modular.md
  31. 二进制
      user/pages/03.reference/_03.clients/_reco1/etape_4.jpg
  32. 5 0
      user/pages/03.reference/_03.clients/_reco1/text.md
  33. 6 0
      user/pages/03.reference/_03.clients/modular.md
  34. 6 0
      user/pages/03.reference/modular.md
  35. 7 0
      user/pages/04.contact/_condition-general/text.md
  36. 7 0
      user/pages/04.contact/_mentions-legales/text.md
  37. 27 0
      user/pages/04.contact/modular.md

+ 5 - 0
system/blueprints/config/site.yaml

@@ -29,6 +29,11 @@ form:
                     label: PLUGIN_ADMIN.DEFAULT_AUTHOR
                     help: PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP
 
+                author.profession:
+                  type: text
+                  size: large
+                  label: Profession
+
                 author.email:
                     type: text
                     size: large

+ 7 - 0
system/blueprints/user/account.yaml

@@ -53,11 +53,18 @@ form:
                 validate:
                   required: true
 
+            profession:
+                type: text
+                size: large
+                label: Profession
+
+
             title:
                 type: text
                 size: large
                 label: PLUGIN_ADMIN.TITLE
 
+
             language:
                 type: select
                 label: PLUGIN_ADMIN.LANGUAGE

+ 0 - 0
user/config/media.yaml


+ 16 - 5
user/config/site.yaml

@@ -1,7 +1,18 @@
-title: Grav
+title: 'Le style de l’ours'
+default_lang: fr
 author:
-  name: Joe Bloggs
-  email: 'joe@example.com'
+  name: 'Emmanuel Cauchois'
+  email: joe@example.com
+  profession: 'Secretaire d''édition et de rédaction chef de projet " print "'
+taxonomies:
+  - category
+  - tag
 metadata:
-    description: 'Grav is an easy to use, yet powerful, open source flat-file CMS'
-
+  description: 'Grav is an easy to use, yet powerful, open source flat-file CMS'
+summary:
+  enabled: true
+  format: short
+  size: 300
+  delimiter: '==='
+blog:
+  route: /blog

+ 0 - 0
user/config/streams.yaml


+ 113 - 18
user/config/system.yaml

@@ -1,45 +1,140 @@
 absolute_urls: false
-
+param_sep: ':'
+wrapped_site: false
+reverse_proxy_setup: false
+force_ssl: false
+force_lowercase_urls: true
+username_regex: '^[a-z0-9_-]{3,16}$'
+pwd_regex: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'
+intl_enabled: true
+languages:
+  include_default_lang: true
+  translations: true
+  translations_fallback: true
+  session_store_active: false
+  http_accept_language: false
+  override_locale: false
 home:
-  alias: '/home'
-
+  alias: /home
+  hide_in_urls: false
 pages:
-  theme: quark
-  markdown:
-    extra: false
+  theme: le_style_de_lours
+  order:
+    by: default
+    dir: asc
+  list:
+    count: 20
+  dateformat:
+    short: 'd-m-y G:i'
+    long: 'F jS \a\t g:ia'
+  publish_dates: true
   process:
     markdown: true
     twig: false
-
+  twig_first: false
+  never_cache_twig: false
+  events:
+    page: true
+    twig: true
+  markdown:
+    extra: false
+    auto_line_breaks: false
+    auto_url_links: false
+    escape_markup: false
+    special_chars:
+      '>': gt
+      '<': lt
+  types:
+    - txt
+    - xml
+    - html
+    - htm
+    - json
+    - rss
+    - atom
+  expires: 604800
+  last_modified: false
+  etag: false
+  vary_accept_encoding: false
+  redirect_default_route: false
+  redirect_default_code: '302'
+  redirect_trailing_slash: true
+  ignore_files:
+    - .DS_Store
+  ignore_folders:
+    - .git
+    - .idea
+  ignore_hidden: true
+  url_taxonomy_filters: true
+  frontmatter:
+    process_twig: false
+    ignore_fields:
+      - form
+      - forms
 cache:
-  enabled: true
+  enabled: false
   check:
     method: file
   driver: auto
-  prefix: 'g'
-
+  prefix: g
+  clear_images_by_default: false
+  cli_compatibility: false
+  lifetime: 604800
+  gzip: false
+  allow_webserver_gzip: false
 twig:
-  cache: true
-  debug: true
-  auto_reload: true
+  cache: false
+  debug: false
+  auto_reload: false
   autoescape: false
-
+  undefined_functions: true
+  undefined_filters: true
+  umask_fix: false
 assets:
   css_pipeline: false
+  css_pipeline_include_externals: true
+  css_pipeline_before_excludes: true
   css_minify: true
+  css_minify_windows: false
   css_rewrite: true
   js_pipeline: false
+  js_pipeline_include_externals: true
+  js_pipeline_before_excludes: true
   js_minify: true
-
+  enable_asset_timestamp: false
+  collections:
+    jquery: 'system://assets/jquery/jquery-2.x.min.js'
 errors:
-  display: true
+  display: 1
   log: true
-
 debugger:
   enabled: false
-  twig: true
   shutdown:
     close_connection: true
+  twig: true
+images:
+  default_image_quality: 85
+  cache_all: false
+  cache_perms: '0755'
+  debug: false
+  auto_fix_orientation: false
+media:
+  enable_media_timestamp: false
+  auto_metadata_exif: false
+  upload_limit: 2097152
+session:
+  enabled: true
+  initialize: true
+  timeout: 1800
+  name: grav-site
+  secure: false
+  httponly: true
+  split: false
 gpm:
   releases: stable
+  method: auto
   verify_peer: true
+  official_gpm_only: true
+strict_mode:
+  yaml_compat: true
+  twig_compat: true

二进制
user/pages/01.home/RectoHD.jpg


文件差异内容过多而无法显示
+ 6 - 0
user/pages/01.home/_pourquoi-le-style-de-lours/modular.md


+ 0 - 42
user/pages/01.home/default.md

@@ -1,42 +0,0 @@
----
-title: Home
-body_classes: title-center title-h1h2
----
-
-# Say Hello to Grav!
-## installation successful...
-
-Congratulations! You have installed the **Base Grav Package** that provides a **simple page** and the default **Quark** theme to get you started.
-
-!! If you see a **404 Error** when you click `Typography` in the menu, please refer to the [troubleshooting guide](http://learn.getgrav.org/troubleshooting/page-not-found).
-
-### Find out all about Grav
-
-* Learn about **Grav** by checking out our dedicated [Learn Grav](http://learn.getgrav.org) site.
-* Download **plugins**, **themes**, as well as other Grav **skeleton** packages from the [Grav Downloads](http://getgrav.org/downloads) page.
-* Check out our [Grav Development Blog](http://getgrav.org/blog) to find out the latest goings on in the Grav-verse.
-
-!!! If you want a more **full-featured** base install, you should check out [**Skeleton** packages available in the downloads](http://getgrav.org/downloads).
-
-### Edit this Page
-
-To edit this page, simply navigate to the folder you installed **Grav** into, and then browse to the `user/pages/01.home` folder and open the `default.md` file in your [editor of choice](http://learn.getgrav.org/basics/requirements).  You will see the content of this page in [Markdown format](http://learn.getgrav.org/content/markdown).
-
-### Create a New Page
-
-Creating a new page is a simple affair in **Grav**.  Simply follow these simple steps:
-
-1. Navigate to your pages folder: `user/pages/` and create a new folder.  In this example, we will use [explicit default ordering](http://learn.getgrav.org/content/content-pages) and call the folder `02.mypage`.
-2. Launch your text editor and paste in the following sample code:
-
-        ---
-        title: My New Page
-        ---
-        # My New Page!
-
-        This is the body of **my new page** and I can easily use _Markdown_ syntax here.
-
-3. Save this file in the `user/pages/02.mypage/` folder as `default.md`. This will tell **Grav** to render the page using the **default** template.
-4. That is it! Reload your browser to see your new page in the menu.
-
-! NOTE: The page will automatically show up in the Menu after the "Home" menu item. If you wish to change the name that shows up in the Menu, simple add: `menu: My Page` between the dashes in the page content. This is called the YAML front matter, and it is where you configure page-specific options.

+ 13 - 0
user/pages/01.home/modular.md

@@ -0,0 +1,13 @@
+---
+title: Home
+media_order: RectoHD.jpg
+content:
+    items: '@self.siblings'
+---
+
+Vous êtes une petite ou moyenne structure,
+vous souhaitez produire un document imprimé,
+vous n’avez pas le temps de corriger les fautes,  n’avez pas d’amis graphistes ne connaissez pas d’imprimeurs compétitifs, et désirez un rendu professionnel ?
+qui respecte vos besoins et vos délais ?
+
+![](RectoHD.jpg)

+ 7 - 0
user/pages/02.metier/_img1/text.md

@@ -0,0 +1,7 @@
+---
+title: 'Secrétaire d’édition et de rédaction'
+image_align: left
+---
+
+Quelques soit l’avancée de votre projet, je vous accompagne de la rédaction à la livraison. Secrétaire de rédaction, je prends en charge les corrections et si besoin la réécriture de votre document, dans le respect des normes ortho-typographiques en vigueur. Formé au droit à l’image,  je vérifie leur bonne conformité, leur résolution, vous oriente dans les choix iconographiques. 
+

文件差异内容过多而无法显示
+ 5 - 0
user/pages/02.metier/_img2/text.md


二进制
user/pages/02.metier/_img3/etape_1.jpg


+ 12 - 0
user/pages/02.metier/_img3/text.md

@@ -0,0 +1,12 @@
+---
+title: 'Étape 1'
+media_order: etape_1.jpg
+image_align: left
+---
+
+Je prends connaissance du projet. Je vous conseille.On définit ensemble le cahier des charges technique :
+- style graphique,
+- caractéristiques techniques (format, nombre de pages, nombre de plis, type de papier, nature du 
+support, nombre de couleurs, mode d’impression, finition…),
+- nombre d’exemplaires,
+- date et mode de livraison.

二进制
user/pages/02.metier/_img4/etape_2.jpg


+ 12 - 0
user/pages/02.metier/_img4/text.md

@@ -0,0 +1,12 @@
+---
+title: 'Étape 2'
+media_order: etape_2.jpg
+image_align: left
+---
+
+Je prends connaissance du projet. Je vous conseille.On définit ensemble le cahier des charges technique :
+- style graphique,
+- caractéristiques techniques (format, nombre de pages, nombre de plis, type de papier, nature du 
+support, nombre de couleurs, mode d’impression, finition…),
+- nombre d’exemplaires,
+- date et mode de livraison.

二进制
user/pages/02.metier/_test1/etape_3.jpg


+ 12 - 0
user/pages/02.metier/_test1/text.md

@@ -0,0 +1,12 @@
+---
+title: 'Étape 3'
+media_order: etape_3.jpg
+image_align: left
+---
+
+Je prends connaissance du projet. Je vous conseille.On définit ensemble le cahier des charges technique :
+- style graphique,
+- caractéristiques techniques (format, nombre de pages, nombre de plis, type de papier, nature du 
+support, nombre de couleurs, mode d’impression, finition…),
+- nombre d’exemplaires,
+- date et mode de livraison.

二进制
user/pages/02.metier/_text1/etape_4.jpg


+ 12 - 0
user/pages/02.metier/_text1/text.md

@@ -0,0 +1,12 @@
+---
+title: 'Étape 4'
+media_order: etape_4.jpg
+image_align: left
+---
+
+Je prends connaissance du projet. Je vous conseille.On définit ensemble le cahier des charges technique :
+- style graphique,
+- caractéristiques techniques (format, nombre de pages, nombre de plis, type de papier, nature du 
+support, nombre de couleurs, mode d’impression, finition…),
+- nombre d’exemplaires,
+- date et mode de livraison.

+ 8 - 0
user/pages/02.metier/modular.md

@@ -0,0 +1,8 @@
+---
+title: Metier
+content:
+    items: '@self.modular'
+
+---
+
+FIABILITÉ - ÉCOUTE - ENGAGEMENT

+ 0 - 155
user/pages/02.typography/default.md

@@ -1,155 +0,0 @@
----
-title: Typography
----
-
-! Details on the full capabilities of Spectre.css can be found in the [Official Spectre Documentation](https://picturepan2.github.io/spectre/elements.html)
-
-The [Quark theme](https://github.com/getgrav/grav-theme-quark) is the new default theme for Grav built with [Spectre.css](https://picturepan2.github.io/spectre/) the lightweight, responsive and modern CSS framework. Spectre provides  basic styles for typography, elements, and a responsive layout system that utilizes best practices and consistent language design.
-
-### Headings
-
-# H1 Heading `40px`
-
-## H2 Heading `32px`
-
-### H3 Heading `28px`
-
-#### H4 Heading `24px`
-
-##### H5 Heading `20px`
-
-###### H6 Heading `16px`
-
-```html
-# H1 Heading
-# H1 Heading `40px`</small>`
-
-<span class="h1">H1 Heading</span>
-```
-
-### Paragraphs
-
-Lorem ipsum dolor sit amet, consectetur [adipiscing elit. Praesent risus leo, dictum in vehicula sit amet](#), feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.
-
-Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs.
-
-### Markdown Semantic Text Elements
-
-**Bold** `**Bold**`
-
-_Italic_ `_Italic_`
-
-~~Deleted~~ `~~Deleted~~`
-
-`Inline Code` `` `Inline Code` ``
-
-### HTML Semantic Text Elements
-
-<abbr>I18N</abbr> `<abbr>`
-
-<cite>Citation</cite> `<cite>`
-
-<kbd>Ctrl + S</kbd> `<kbd>`
-
-Text<sup>Superscripted</sup> `<sup>`
-
-Text<sub>Subscripted</sub> `<sub>`
-
-<u>Underlined</u> `<u>`
-
-<mark>Highlighted</mark> `<mark>`
-
-<time>20:14</time> `<time>`
-
-<var>x = y + 2</var> `<var>`
-
-### Blockquote
-
-> The advance of technology is based on making it fit in so that you don't really even notice it,
-> so it's part of everyday life.
->
-> <cite>- Bill Gates</cite>
-
-```markdown
-> The advance of technology is based on making it fit in so that you don't really even notice it,
-> so it's part of everyday life.
->
-> <cite>- Bill Gates</cite>
-```
-
-### Unordered List
-
-* list item 1
-* list item 2
-    * list item 2.1
-    * list item 2.2
-    * list item 2.3
-* list item 3
-
-```markdown
-* list item 1
-* list item 2
-    * list item 2.1
-    * list item 2.2
-    * list item 2.3
-* list item 3
-```
-
-### Ordered List
-
-1. list item 1
-1. list item 2
-    1. list item 2.1
-    1. list item 2.2
-    1. list item 2.3
-1. list item 3
-
-```markdown
-1. list item 1
-1. list item 2
-    1. list item 2.1
-    1. list item 2.2
-    1. list item 2.3
-1. list item 3
-```
-
-### Table
-
-| Name                        | Genre                         | Release date         |
-| :-------------------------- | :---------------------------: | -------------------: |
-| The Shawshank Redemption    | Crime, Drama                  | 14 October 1994      |
-| The Godfather               | Crime, Drama                  | 24 March 1972        |
-| Schindler's List            | Biography, Drama, History     | 4 February 1994      |
-| Se7en                       | Crime, Drama, Mystery         | 22 September 1995    |
-
-```markdown
-| Name                        | Genre                         | Release date         |
-| :-------------------------- | :---------------------------: | -------------------: |
-| The Shawshank Redemption    | Crime, Drama                  | 14 October 1994      |
-| The Godfather               | Crime, Drama                  | 24 March 1972        |
-| Schindler's List            | Biography, Drama, History     | 4 February 1994      |
-| Se7en                       | Crime, Drama, Mystery         | 22 September 1995    |
-```
-
-### Notices
-
-The notices styles are actually provided by the `markdown-notices` plugin but are useful enough to include here:
-
-! This is a warning notification
-
-!! This is a error notification
-
-!!! This is a default notification
-
-!!!! This is a success notification
-
-```markdown
-! This is a warning notification
-
-!! This is a error notification
-
-!!! This is a default notification
-
-!!!! This is a success notification
-```
-

二进制
user/pages/03.reference/_01.travaux_realises/_projet1/etape_4.jpg


+ 9 - 0
user/pages/03.reference/_01.travaux_realises/_projet1/text.md

@@ -0,0 +1,9 @@
+---
+title: 'projet 1'
+media_order: etape_4.jpg
+image_align: left
+---
+
+Dépliant 4 pages A4 réalisé pour le Secours Catholique Paris
+Secrétariat d'édition
+et de rédaction + fabrication

二进制
user/pages/03.reference/_01.travaux_realises/_secours-cat/46446946_252836978923795_7087389658438434816_n.jpg


+ 8 - 0
user/pages/03.reference/_01.travaux_realises/_secours-cat/text.md

@@ -0,0 +1,8 @@
+---
+title: 'Secours cat'
+media_order: 46446946_252836978923795_7087389658438434816_n.jpg
+image_align: left
+---
+
+Dépliant 4 pages A4 réalisé pour le Secours Catholique Paris
+Secrétariat d'édition et de rédactio, + fabrication

+ 6 - 0
user/pages/03.reference/_01.travaux_realises/modular.md

@@ -0,0 +1,6 @@
+---
+title: Travaux réalisés
+image_align: left
+content:
+    items: '@self.modular'
+---

二进制
user/pages/03.reference/_02.recommandations/_reco1/etape_4.jpg


+ 9 - 0
user/pages/03.reference/_02.recommandations/_reco1/text.md

@@ -0,0 +1,9 @@
+---
+title: 'reco1'
+media_order: etape_4.jpg
+image_align: left
+---
+
+Dépliant 4 pages A4 réalisé pour le Secours Catholique Paris
+Secrétariat d'édition
+et de rédaction + fabrication

+ 6 - 0
user/pages/03.reference/_02.recommandations/modular.md

@@ -0,0 +1,6 @@
+---
+title: Recommandation
+image_align: left
+content:
+    items: '@self.modular'
+---

二进制
user/pages/03.reference/_03.clients/_reco1/etape_4.jpg


+ 5 - 0
user/pages/03.reference/_03.clients/_reco1/text.md

@@ -0,0 +1,5 @@
+---
+title: 'logo1'
+media_order: etape_4.jpg
+image_align: left
+---

+ 6 - 0
user/pages/03.reference/_03.clients/modular.md

@@ -0,0 +1,6 @@
+---
+title: Clients
+image_align: left
+content:
+    items: '@self.modular'
+---

文件差异内容过多而无法显示
+ 6 - 0
user/pages/03.reference/modular.md


文件差异内容过多而无法显示
+ 7 - 0
user/pages/04.contact/_condition-general/text.md


文件差异内容过多而无法显示
+ 7 - 0
user/pages/04.contact/_mentions-legales/text.md


+ 27 - 0
user/pages/04.contact/modular.md

@@ -0,0 +1,27 @@
+---
+title: Contact
+image_align: left
+content:
+    items: '@self.modular'  
+---
+
+NOM DU FICHIER : 
+Emmanuel Cauchois
+FORMAT : 
+à la française (47 ans x 182 cm)
+ASSEMBLAGE : 
+marié / papa d’un petit garçon de 9 ans
+NOMBRE DE PAGES : 
+Rouen / Evreux / Lille / Poissy
+FAÇONNAGE : 
+BTS Industries graphiques
+NATIFS : 
+photograveur / opérateur PAO / animation / éducation / édition / fabrication
+FILIGRANE : 
+scoutisme+++ / théâtre+ / photo++
+PELLICULAGE : 
+emmanuelcauchois.fr
+RÉSOLUTION : 
+mettre mon expérience au service de la qualité de vos projets.
+DÉPÔT LÉGAL : 
+Mai 2018

部分文件因为文件数量过多而无法显示