\documentclass[12pt,a5paper,titlepage,oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[
    type={CC},
    modifier={by-sa},
    version={4.0},
    hyphenation={RaggedRight},
]{doclicense}
\setcounter{secnumdepth}{0}
\renewcommand*\rmdefault{ptm}

\begingroup
\makeatletter
\catcode13\active%
\gdef\verseinput#1#2{%
{%
\interlinepenalty\@M%
\def^^M{\@ifnextchar^^M\par{\ifhmode\break\fi}}%
\rightskip\fill%
\parindent\z@%
\parskip\baselineskip%
\raggedbottom%
\section{#2}%
\catcode13\active\input{#1}%
\par%
\newpage%
}}%
\endgroup%
\begin{document}

\frontmatter

\title{Varige mén, ingen smerte}}
\author{Harald Eilertsen}
\date{September, 2017}
\maketitle

\doclicenseThis
\newpage

\mainmatter
\verseinput{skapet.txt}{Hvor skal skapet stå?}
\verseinput{himmelskipet.txt}{Himmelskipet}
\verseinput{autokorrekt.txt}{Autokorrekt}
\verseinput{dommedag.txt}{Dommedag}
\verseinput{vingeslag.txt}{På kunstens øredøvende vingeslag}
\verseinput{zombier.txt}{Zombier}
\verseinput{erotisk.txt}{Rotgrønnsakserotikkpoesi}

\end{document}
