From e30097f4a9ffc42d57df2c463ae4770b61ff8769 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 16 Mar 2020 19:15:01 +0100 Subject: rename *.mdwn to */index.md, except index/topbar/farbar/sidebar files command: ``` perl -MPath::Tiny -WE 'use strict; path(".")->visit(sub{return unless -f && /\.mdwn$/; my $stem=$_->basename(".mdwn"); my $new=$_->sibling($stem,"index.md"); return if $stem =~ /^index|topbar|sidebar|farbar|footer$/ || $new->exists; $new->parent->mkpath; system("git","mv", $_, $new)},{recurse=>1})' ``` --- tours/turlisten/index.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tours/turlisten/index.md (limited to 'tours/turlisten') diff --git a/tours/turlisten/index.md b/tours/turlisten/index.md new file mode 100644 index 00000000..8b3c0e00 --- /dev/null +++ b/tours/turlisten/index.md @@ -0,0 +1,14 @@ +[[!if test="included() and !(destpage(index) or destpage(test))" then=""" +[[!template id="deco" text=" +[[!img tours/vindue_turliste.jpg class="deco" link="/tours" ]] +"]] +"""]] +[[!if test="included()" then=""" +[[!img tours/vindue_turliste.jpg link="/tours" class="solo" ]] +"""]] +[[!if test="!included()" then=""" +[[!inline pages=tours raw=yes]] +"""]] +[[!tag forside test cover top]] +[[!meta title=Turlisten]] +[[!meta redir=/tours]] -- cgit v1.2.3