ausblick
This commit is contained in:
		
							
								
								
									
										16
									
								
								data/de/ausblick.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								data/de/ausblick.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| enable: true | ||||
| title: Ausblick auf die Woche | ||||
| author: Frau Felke | ||||
| image: /media/ausblick.webp | ||||
| content: > | ||||
|   In dieser Woche begrüßen wir in der 10. Klasse sechs französische | ||||
|   Schüler aus dem Lycée „Aristide Briand“  Saint-Nazaire an unserer Schule. | ||||
|  | ||||
|  | ||||
|   Am Dienstag, dem 7. März 2023 wird der Mannschaftswettbewerb Mathematik Klasse 9 in Magdeburg durchgeführt. | ||||
|  | ||||
|  | ||||
|   Am Mittwoch, dem 8. März 2023, folgt der Mannschaftswettbewerb Chemie der Sekundarstufe II in Jena. | ||||
|  | ||||
|  | ||||
|   Am Donnerstag, dem 9. März 2023, finden die Landesphysikolympiade in Magdeburg und der Regionalwettbewerb „Jugend forscht“ in Greppin statt. | ||||
| @@ -118,7 +118,7 @@ about: | ||||
|     link: https://vr.cantorgymnasium.de/tour/ | ||||
| blog: | ||||
|   enable: true | ||||
|   title: Aktuelle Beiträge | ||||
|   title: Aktuelles | ||||
| success_banner: | ||||
|   enable: true | ||||
|   image: media/home/success_banner.webp | ||||
| @@ -192,6 +192,8 @@ info: | ||||
|     produktives Gymnasium mit mathematisch-naturwissenschaftlichem Schwerpunkt | ||||
|     und dem Gütesiegel \"Begabungsfördernde Schule\" vom Landesinstitut für | ||||
|     Schulqualität und Lehrerbildung. | ||||
|  | ||||
|     {{< card link="/schulchronik/" title="Schulchronik" >}} | ||||
|   video_link: https://www.youtube.com/watch?v=v2ovvOmv-xw | ||||
| termine: | ||||
|   enable: true | ||||
|   | ||||
| @@ -95,6 +95,12 @@ | ||||
| {{ end }} | ||||
| {{ end }} | ||||
|  | ||||
| {{ if $data.ausblick.enable }} | ||||
| {{ with $data.ausblick }} | ||||
|   {{ partial "chronik-modal" (dict "id" (md5 .title) "title" .title "content" .content) }} | ||||
| {{ end }} | ||||
| {{ end }} | ||||
|  | ||||
| {{ if $data.homepage.blog.enable }} | ||||
| <section class="mb-4"> | ||||
|   <div class="container"> | ||||
| @@ -104,7 +110,22 @@ | ||||
|       </div> | ||||
|     </div> | ||||
|     <div class="row justify-content-center"> | ||||
|       {{ range first 3 (where .Site.RegularPages "Type" "post")}} | ||||
|       <div class="col-lg-4 col-sm-6 mb-5 mb-lg-0"> | ||||
|         <div class="card rounded-0 border-primary hover-shadow"> | ||||
|           <img class="card-img-top rounded-0" src="{{ $data.ausblick.image | relURL }}" alt="{{ $data.ausblick.title }}"> | ||||
|           <div class="card-body"> | ||||
|             <ul class="list-inline mb-3"> | ||||
|               <li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-fountain-pen-tip"></i> <a | ||||
|                 href="{{ `author` | relLangURL }}/{{ $data.ausblick.author | urlize }}">{{ $data.ausblick.author | title }}</a></li> | ||||
|             </ul> | ||||
|               <h4 class="card-title"><a href="{{ .Permalink }}">{{ $data.ausblick.title }}</a></h4> | ||||
|             <p class="card-text">{{ $data.ausblick.content | truncate 100 }}</p> | ||||
|             <button type="button" class="btn btn-primary btn-sm" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">{{ | ||||
|               i18n "show_more"}}</button> | ||||
|           </div> | ||||
|         </div> | ||||
|       </div> | ||||
|       {{ range first 2 (where .Site.RegularPages "Type" "post")}} | ||||
|       <article class="col-lg-4 col-sm-6 mb-5 mb-lg-0"> | ||||
|         {{ .Render "post" }} | ||||
|       </article> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <div class="container mb-0"> | ||||
|   <div class="card border-primary rounded-0 hover-shadow mb-5"> | ||||
|   <div class="card border-primary rounded-0 hover-shadow mb-2"> | ||||
|     <div class="card-body mb-0"> | ||||
|       <h4 class="card-title"><a class="text-decoration-none" href='{{ .Get "link" }}'>{{ .Get "title" }}</a></h4> | ||||
|       <a href='{{ .Get "link" }}' class="mb-0 btn btn-primary btn-sm text-decoration-none">{{ i18n "show_more"}}</a> | ||||
|   | ||||
| @@ -389,6 +389,22 @@ collections: | ||||
|             required: true | ||||
|             fields: | ||||
|               - {label: "Kategorie", name: "category", widget: "string", required: true} | ||||
|       - name: "ausblick-config" | ||||
|         label: "Ausblick auf die Woche" | ||||
|         file: "data/de/ausblick.yml" | ||||
|         format: yml | ||||
|         fields: | ||||
|           - {label: "Aktivieren", name: "enable", widget: "boolean", required: false} | ||||
|           - {label: "Titel", name: "title", widget: "string", required: false} | ||||
|           - label: "Autor" | ||||
|             name: "author" | ||||
|             widget: "relation" | ||||
|             collection: "author" | ||||
|             search_fields: ["title"] | ||||
|             value_field: "title" | ||||
|             required: false | ||||
|           - {label: "Titelbild", name: "image", widget: "image", required: false, media_library: { config: { max_file_size: 2048000 } } } | ||||
|           - {label: "Inhalt", name: "content", widget: "markdown", required: false} | ||||
|   - name: "index-pages" | ||||
|     icon: "page" | ||||
|     label: "Hauptseiten" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user