From 248fec2bc9e9ec219d142be9e2b6fb6a7304207a Mon Sep 17 00:00:00 2001 From: georgeas <george.a.stoica@ntnu.no> Date: Mon, 31 Aug 2020 15:11:06 +0200 Subject: [PATCH] Replace inline template chunks with include Move to single point of definition for the template parts by using include instead of the inline content --- ...course-intro.adoc => 01-course-intro.adoc} | 46 +++---------------- .../revealjs/02-software-development.adoc | 46 +++---------------- ... old-03-build-tools-and-some-testing.adoc} | 0 3 files changed, 14 insertions(+), 78 deletions(-) rename lectures/revealjs/{course-intro.adoc => 01-course-intro.adoc} (76%) rename lectures/revealjs/{03-build-tools-and-some-testing.adoc => old-03-build-tools-and-some-testing.adoc} (100%) diff --git a/lectures/revealjs/course-intro.adoc b/lectures/revealjs/01-course-intro.adoc similarity index 76% rename from lectures/revealjs/course-intro.adoc rename to lectures/revealjs/01-course-intro.adoc index bdcad0d..7fc373f 100644 --- a/lectures/revealjs/course-intro.adoc +++ b/lectures/revealjs/01-course-intro.adoc @@ -1,10 +1,12 @@ = IT1901 :customcss: slides.css :icons: font +:includedir: revealjs/includes/ +:LECTURE_TOPIC: Course Introduction +:LECTURE_NO: 1st lecture + +include::{includedir}header.adoc[] -++++ - <img id="main-logo" class="main-logo" src="images/template/main_logo_eng_no_text.png" width="300" alt="ntnu logo"/> -++++ [.smaller-80] - Velkommen til IT1901 Informatikk prosjektarbeid 1 @@ -140,39 +142,5 @@ Gruppekontrakt skal godkjennes av studentassistent, signeres av alle gruppemedle image::../images/lecture01/teamwork.png[canvas, size=contain] -++++ - <div id="footer" class="footer"> - <div style="display:table-row;"> - <span class="element" style="width:150px;"> - <a href="https://www.ntnu.no" target="_blank"> - <img id="footer-logo" class="footer-logo" - src="images/template/logo_ntnu.png" - alt="ntnu logo" height="28"/> - </a> - </span> - <span class="element" style="width:300px;">| IT1901 </span> - <span class="element">| Course Introduction </span> - <span class="element"> </span> - </div> - </div> - - <div id="vertical-ntnu-name" class="vertical-ntnu-name"> - <span class="helper"></span> - <img src="images/template/vertical-ntnu-name.jpg" alt="Norwegian University of Science and Technology" /> - </div> - - <script type="text/javascript"> - window.addEventListener("load", function() { - revealDiv = document.querySelector("body div.reveal") - footer = document.getElementById("footer"); - revealDiv.appendChild(footer); - - titleSlideDiv = document.querySelector("div.slides section.title") - mainLogo = document.getElementById("main-logo"); - titleSlideDiv.prepend(mainLogo); - - vertName = document.getElementById("vertical-ntnu-name"); - revealDiv.appendChild(vertName); - } ); - </script> -++++ \ No newline at end of file + +include::{includedir}footer.adoc[] \ No newline at end of file diff --git a/lectures/revealjs/02-software-development.adoc b/lectures/revealjs/02-software-development.adoc index 6bb093f..255d803 100644 --- a/lectures/revealjs/02-software-development.adoc +++ b/lectures/revealjs/02-software-development.adoc @@ -1,10 +1,12 @@ = Software Development :customcss: slides.css :icons: font +:includedir: revealjs/includes/ +:LECTURE_TOPIC: Software Development +:LECTURE_NO: 3rd Lecture + +include::{includedir}header.adoc[] -++++ - <img id="main-logo" class="main-logo" src="images/template/main_logo_eng_no_text.png" width="300" alt="ntnu logo"/> -++++ [.smaller-80][.center-paragraph] IT1901 Fall 2020 - 3rd Lecture @@ -393,39 +395,5 @@ Automatisering av alt som fremmer kvalitet, men som tar tid, f.eks. image::../images/lecture02/doad.jpg[canvas, size=contain] -++++ - <div id="footer" class="footer"> - <div style="display:table-row;"> - <span class="element" style="width:150px;"> - <a href="https://www.ntnu.no" target="_blank"> - <img id="footer-logo" class="footer-logo" - src="images/template/logo_ntnu.png" - alt="ntnu logo" height="28"/> - </a> - </span> - <span class="element" style="width:300px;">| IT1901 - 3rd lecture </span> - <span class="element">| Software Development </span> - <span class="element"> </span> - </div> - </div> - - <div id="vertical-ntnu-name" class="vertical-ntnu-name"> - <span class="helper"></span> - <img src="images/template/vertical-ntnu-name.png" alt="Norwegian University of Science and Technology" /> - </div> - - <script type="text/javascript"> - window.addEventListener("load", function() { - revealDiv = document.querySelector("body div.reveal") - footer = document.getElementById("footer"); - revealDiv.appendChild(footer); - - titleSlideDiv = document.querySelector("div.slides section.title") - mainLogo = document.getElementById("main-logo"); - titleSlideDiv.prepend(mainLogo); - - vertName = document.getElementById("vertical-ntnu-name"); - revealDiv.appendChild(vertName); - } ); - </script> -++++ \ No newline at end of file + +include::{includedir}footer.adoc[] \ No newline at end of file diff --git a/lectures/revealjs/03-build-tools-and-some-testing.adoc b/lectures/revealjs/old-03-build-tools-and-some-testing.adoc similarity index 100% rename from lectures/revealjs/03-build-tools-and-some-testing.adoc rename to lectures/revealjs/old-03-build-tools-and-some-testing.adoc -- GitLab