Marcelo Alves Fávaro

Daniel Ditz

Jin Yang

Ashta C Ghosh

Chantal Lorentz

Jérôme Roeser

] Elsje

Alessandra Quadrelli

Arne Thomas

Regina Palkovits

Jérôme Canivet

Florian M Wisser

Finding the Sweet Spot of Photocatalysis -A Case Study using Bipyridine-based CTFs

Keywords: Covalent Triazine Framework, photocatalysis, hydrogen evolution reaction, molecular control, bipyridine

Covalent Triazine Frameworks (CTFs) are a class of Porous Organic Polymers which attracts continuously growing interest because of their outstanding chemical and physical properties. However, the control of extended porous organic frameworks' structures at the molecular scale for a precise adjustment of their properties has hardly been achieved so far.

Here, we present a series of bipyridine-based CTFs synthesized through polycondensation, in which the sequence of specific building blocks is well controlled. The reported synthetic strategy allows to tailor the physicochemical features of the CTF materials, including nitrogen content, apparent specific surface area and opto-electronic properties. Based on a comprehensive analytic investigation, we demonstrate a direct correlation of the CTF bipyridine content with the material features such as specific surface area, bandgap, charge separation and surface wettability with water. The entirety of those parameters dictates the catalytic activity as demonstrated for the photocatalytic hydrogen evolution reaction (HER).

The material with the necessary balance between opto-electronic properties and highest hydrophilicity enables HER production rates of up to 7.2 mmol•h -1 •g -1 under visible light irradiation and in the presence of a platinum co-catalyst.

INTRODUCTION

A current challenge in material sciences is to keep rigorous control over increasingly complex assembly of active building blocks in extended porous frameworks, while retaining predictive insight in their ultimate performance. [START_REF] Hassan | Assembly of Molecular Building Blocks into Integrated Complex Functional Molecular Systems: Structuring Matter Made to Order[END_REF] The ability to introduce various active building blocks into one porous framework has already allowed the modulation and prediction of physical and chemical properties, improving the capacity to tune fundamental properties including hydrophobicity, 2 porosity, [START_REF] Kim | Insights into the Low Surface Area of Conjugated Microporous Polymers and Methodological Suggestion for the Enhancement of Porosity[END_REF][START_REF] Mollart | Rationalising the Influence of Solvent Choice on the Porosity of Conjugated Microporous Polymers[END_REF] optical response, [START_REF] Meier | Structure-Property Relationships for Covalent Triazine-Based Frameworks: The Effect of Spacer Length on Photocatalytic Hydrogen Evolution from Water[END_REF][START_REF] Sprick | Tunable Organic Photocatalysts for Visible-Light-Driven Hydrogen Evolution[END_REF][START_REF] Kochergin | Exploring the "Goldilocks Zone" of Semiconducting Polymer Photocatalysts by Donor-Acceptor Interactions[END_REF][START_REF] Schwarz | Fluorescent Sulphur-and Nitrogen-Containing Porous Polymers with Tuneable Donor-Acceptor Domains for Light-Driven Hydrogen Evolution[END_REF] and catalytic activity. [START_REF] Sprick | Tunable Organic Photocatalysts for Visible-Light-Driven Hydrogen Evolution[END_REF][START_REF] Beine | Selective Production of Glycols from Xylitol over Ru on Covalent Triazine Frameworks -Suppressing Decarbonylation Reactions[END_REF][START_REF] Tuci | Unraveling Surface Basicity and Bulk Morphology Relationship on Covalent Triazine Frameworks with Unique Catalytic and Gas Adsorption Properties[END_REF][START_REF] Wisser | Hammett Parameter in Microporous Solids as Macroligands for Heterogenized Photocatalysts[END_REF] The capacity to extend the control over opto-electronic properties to the molecular-level, while retaining the control over other physico-chemical and structural properties, becomes key in the context of materials applications to renewable energy utilization; the capacity to control opto-electronic properties will in turn drive the materials photocatalytic performances.

While some interesting results have been achieved in photocatalysis, [START_REF] Chakraborty | Porous Organic Polymer Composites as Surging Catalysts for Visible-Light-Driven Chemical Transformations and Pollutant Degradation[END_REF][START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF][START_REF] Wisser | Molecular Porous Photosystems Tailored for Long-Term Photocatalytic CO 2 Reduction[END_REF][START_REF] Chaoui | Trends and Challenges for Microporous Polymers[END_REF][START_REF] Banerjee | H 2 Evolution with Covalent Organic Framework Photocatalysts[END_REF] typically by adding electron acceptor (p-doping) or electron donor atoms or moieties (n-doping) in the final composition of the material, [START_REF] Sprick | Tunable Organic Photocatalysts for Visible-Light-Driven Hydrogen Evolution[END_REF][START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF][START_REF] Wang | Current Understanding and Challenges of Solar-Driven Hydrogen Generation Using Polymeric Photocatalysts[END_REF][START_REF] Li | Sulfur-Doped Covalent Triazine-Based Frameworks for Enhanced Photocatalytic Hydrogen Evolution from Water under Visible Light[END_REF] the correlation of material's structure with the observed catalytic performance remains phenomenological, [START_REF] Wang | Current Understanding and Challenges of Solar-Driven Hydrogen Generation Using Polymeric Photocatalysts[END_REF][START_REF] Sachs | Understanding Structure-Activity Relationships in Linear Polymer Photocatalysts for Hydrogen Evolution[END_REF][START_REF] Zhang | Conjugated Polymers: Catalysts for Photocatalytic Hydrogen Evolution[END_REF] as the observed changes in electronic properties, geometry and morphology seemed too intertwined to rationalize the changes in catalytic activity. [START_REF] Vyas | A Tunable Azine Covalent Organic Framework Platform for Visible Light-Induced Hydrogen Generation[END_REF][START_REF] Haase | Structure-Property-Activity Relationships in a Pyridine Containing Azine-Linked Covalent Organic Framework for Photocatalytic Hydrogen Evolution[END_REF] One frontier in preparing photoactive multifunctional materials by modular design thus lies in the control and comprehension from the material's molecular structure up to the macroscopic scale, understanding material's performances in its entirety, beyond the description of its molecular units. To address these challenges, a regular, alternating assembly between building blocks containing different functional groups is a route to yield a periodic, sequential copolymer [START_REF] Jenkins | Union of Pure Glossary of Basic Terms in Polymer[END_REF] with a uniform integration of the dopant.

Here, we report (i) a synthetic strategy for the structural control at the molecular level for a series of periodic co-polymers, namely bipyridine-containing covalent triazine frameworks (CTFs), (ii) a general protocol for the consistent measurement of their resulting electronic properties, e.g. frontier orbital position allignement, a feat not described yet, and (iii) their correlation with the obtained catalytic performances in photochemical hydrogen evolution reaction (HER) which reaches 7.2 mmol/h/g cat .

RESULTS AND DISCUSSION.

Synthesis and charactrization of the materials. Four CTFs were synthesized via condensation of aromatic diamidine bromides and aromatic dialdehydes. The series of periodic co-polymers with the desired quantity and positioning of dopant in the material were adjusted by the stoichiometric ratio of di-amidine and di-aldehyde in a 2:1 ratio for in situ polycondensation of the triazine linkage (Figure 1a). This polycondensation approach, recently reported by Cooper, Tan and co-workers, [START_REF] Wang | Covalent Triazine Frameworks via a Low-Temperature Polycondensation Approach[END_REF] provides superior control compared with the wellestablished ionothermal CTF synthesis, [START_REF] Kuhn | Covalent Triazine-Based Frameworks Prepared by Ionothermal Synthesis[END_REF] paving the way to master the desired building block sequence in the bipyridine-containing CTFs family, by applying the principle of orthogonal chemistry. [START_REF] Liu | Modular and Orthogonal Synthesis of Hybrid Polymers and Networks[END_REF][START_REF] Li | Periodic Copolymers by Step-Growth Polymerization[END_REF] However, so far, only few CTFs obtained by polycondensation are reported, mostly limited to functionalized aromatic aldehydes and non-functionalised terephthalamidine or [1,1'-biphenyl]-4,4'-bis(carboximidamide). [START_REF] Guo | Engineering Heteroatoms with Atomic Precision in Donor-Acceptor Covalent Triazine Frameworks to Boost Photocatalytic Hydrogen Production[END_REF][START_REF] Jiang | Organic Radical-Linked Covalent Triazine Framework with Paramagnetic Behavior[END_REF][START_REF] Liao | Efficient Photocatalytic Oxidation of Aromatic Alcohols over Thiophene-based Covalent Triazine Frameworks with A Narrow Band Gap[END_REF][START_REF] Hao | Triazine-Based Conjugated Microporous Polymers for Efficient Hydrogen Production[END_REF][START_REF] Guo | Crystallization of Covalent Triazine Frameworks via a Heterogeneous Nucleation Approach for Efficient Photocatalytic Applications[END_REF] Here, we employed bipyridine and biphenyl aromatic cores as n-doping and non-doping moieties, respectively (Figure 1). Since the aromatic dialdehydes are commercially available, the synthesis of CTFs started with preparing 5,5'-diamidine-2,2'-bipyridine dihalide and 4,4'-biphenyldiamidine dihalide, adapting the previously established procedure. As the synthesis of the amidine chloride produces a large excess of NH 4 Cl, its purification is a crucial step. While non-functionalised terephthalamidine dichloride could be obtained in good purity following the procedure established by Shu et al., [START_REF] Shu | Tuning the Electronic Coupling in Mo 2 -Mo 2 Systems by Variation of the Coordinating Atoms of the Bridging Ligands[END_REF] all attempts to obtain sufficiently pure 5,5'-diamidine-2,2'-bipyridine by washing or recrystallisation from ethanol/acetone mixtures were unsucessful. Thus, we applied a counter ion exchange strategy to transfer the amidine first into the tetraphenylborate, which is soluble in acetone, and then into the corresponding bromide (for details see SI, section 2.1). Note that using terephthalamidine dibromide in the synthesis of CTF-1 did not affect porosity, band-gap or crystallinity with respect to the synthesis procedure described by Cooper and co-workers applying terephthalamidine dichloride (see SI section 3). [START_REF] Wang | Covalent Triazine Frameworks via a Low-Temperature Polycondensation Approach[END_REF] Since two molecules of amidine bromide and one of aldehyde are needed for the synthesis of a triazine core, a series of materials containing 0, 33, 66 and 100% of bipyridine building units was synthesized (Figure 1b). The materials were named CTF-02, [START_REF] Osadchii | Revisiting Nitrogen Species in Covalent Triazine Frameworks[END_REF] CTF-02-Bpy 0.33 , CTF-02-Bpy 0.66 and CTF-02-Bpy, following the increase in bipyridine content within the CTF structure.

The successful co-polymerization was assessed by IR spectroscopy, elemental analysis and quantitative [START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF] C composite-pulse multiple cross polarization (ComPmultiCP) MAS NMR spectroscopy.

In IR spectra, co-polymerization can be followed qualitatively, as characteristic bands of biphenyl moieties at 1416 cm -1 and 1000 cm -1 decrease in intensity when going from CTF-02 to CTF-02-Bpy (Figure S9). At the same time, the characteristic bands of bipyridine moieties at 1467, 1050 and 1030 cm -1 appear.

To obtain a detailed and quantitative insight into the composition of the CTFs, [START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF] C ComPmultiCP MAS NMR spectra were recorded. [START_REF] Wisser | Molecular Porous Photosystems Tailored for Long-Term Photocatalytic CO 2 Reduction[END_REF][START_REF] Johnson | Quantitative Solid-State 13C NMR with Signal Enhancement by Multiple Cross Polarization[END_REF][START_REF] Brownbill | Structural Elucidation of Amorphous Photocatalytic Polymers from Dynamic Nuclear Polarization Enhanced Solid State NMR[END_REF] The signal around 170 ppm can be attributed to the triazine core carbon atom, confirming the successful condensation and oxidation of amidine and aldehydes to the triazine core in all materials (Figure 2a). The absence of any signal in the [START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF] C NMR spectra at about 190 ppm and 163 ppm highlights the complete transformation of aldehyde and amidine moieties in all materials (see Figure S13). In the spectrum of the biphenyl based material CTF-02, signals at 143.0, 135.1 and 128.0 ppm in an integrated ratio of 1 : 1 : 4 of the biphenyl moiety occur, while in the spectrum of CTF-02-Bpy, five different resonances at 156.9, 149.6, 136.9, 130.5 and 121.6 ppm appear with equal intensities (Figure 2a). In the spectra of the mixed CTFs, containing both biphenyl and bipyridine based monomers, all those signals are present, their integrated ratio in line with a 1to-2 and 2-to-1 composition (see Table 1 and SI section 4.3 for further discussion). This perfect stoichiometric control is further evidenced by elemental analysis. The nitrogen content of these materials increases linearly from 12.8% for CTF-02 to 22.1% for CTF-02-Bpy, while the molar ratio of carbon to nitrogen is in line with the theoretical composition (Table S1). The signal of the triazine carbon atom shifts from 170.6 ppm in CTF-02 to 169.1 ppm in CTF-02-Bpy 0.66 and CTF-Bpy. This shielding effect reflects the increase in electron density on the triazine moiety with increasing number of bipyridine ligands, reflecting the enhanced donor capability of the n-doped building block. A further increase from 66% bipyridine to 100% bipyridine did not result in a further shielding effect on the triazine moiety acting as electron acceptor. All materials show a permanent porosity towards nitrogen at 77 K, together with the characteristic swelling behavior for CTFs prepared by this methodology (Figure 2b). [START_REF] Wang | Covalent Triazine Frameworks via a Low-Temperature Polycondensation Approach[END_REF][START_REF] Zhang | Strong-Base-Assisted Synthesis of a Crystalline Covalent Triazine Framework with High Hydrophilicity via Benzylamine Monomer for Photocatalytic Water Splitting[END_REF] The hysteresis between absorption and desorption branch of the isotherms increases with increasing bipyridine content, indicative for a more pronounced swelling of the flexible network structure in the CTF-02-Bpy series. [START_REF] Tsyurupa | Porous Structure of Hypercrosslinked Polystyrene: State-of-the-Art Mini-Review[END_REF][START_REF] Ghanem | A Triptycene-Based Polymer of Intrinsic Microposity That Displays Enhanced Surface Area and Hydrogen Adsorption[END_REF][START_REF] Rose | Element-Organic Frameworks with High Permanent Porosity[END_REF] The purely biphenyl-based CTF-02 has the highest apparent surface area within the series, achieving 570 m 2 /g. As for other CTFs prepared by the condensation approach, [START_REF] Wang | Covalent Triazine Frameworks via a Low-Temperature Polycondensation Approach[END_REF] the apparent surface area of CTF-02 is significantly lower than the apparent surface areas obtained under ionothermal conditions (1880 -2480 m 2 /g), [START_REF] Kuhn | Covalent Triazine-Based Frameworks Prepared by Ionothermal Synthesis[END_REF][START_REF] Osadchii | Revisiting Nitrogen Species in Covalent Triazine Frameworks[END_REF] but comparable to the apparent surface area of materials prepared by trifluoromethanesulfonic acid (TfOH) mediated polycondensation (560 m 2 /g). [START_REF] Meier | Structure-Property Relationships for Covalent Triazine-Based Frameworks: The Effect of Spacer Length on Photocatalytic Hydrogen Evolution from Water[END_REF][START_REF] Sun | Ordered Polymerization of Crystalline Semiconducting Covalent Triazine Frameworks[END_REF] The observed lower surface area might be explained by avoiding the partial carbonization that occurs during ionothermal synthesis in molten ZnCl 2 , which may increase the surface area. The ZnCl 2 may also act as a porogene. [START_REF] Artz | Covalent Triazine-Based Frameworks-Tailor-Made Catalysts and Catalyst Supports for Molecular and Nanoparticulate Species[END_REF][START_REF] Qian | Covalent Triazine Frameworks as Emerging Heterogeneous Photocatalysts[END_REF] With increasing bipyridine content, and thus with increasing surface polarity (vide infra), the apparent surface area decreases to approx. 400, 370 and 240 m 2 /g, for CTF-02-Bpy 0.33 , CTF-02-Bpy 0.66 and CTF-02-Bpy, respectively (Table 2). A possible explanation for the decrease in apparent surface area might include a non-favorable interaction of N 2 with the more polar surface of the bipyridine containing materials or a denser state of the flexible bipyridinecontaining CTFs after activation and cooling to 77 K. [START_REF] Troschke | Integration of an N-Heterocyclic Carbene Precursor into a Covalent Triazine Framework for Organocatalysis[END_REF] Especially in heterogeneous catalysis, a high specific surface area in an open material is a key feature to assure accessibility of the active sites. As we aim for aqueous liquid phase catalysis, not only the apparent surface area, but also the interaction and porosity towards a given solvent has to be considered. Water vapor physisorption isotherms revealed a high water vapor uptake at high partial pressure for all materials (Figure 2c). The solid-solvent interaction and thus the wettability of the surface, reflected by the material's Henry constant (K H ), [START_REF] Canivet | Structure-Property Relationships of Water Adsorption in Metal-Organic Frameworks[END_REF] depends on the amount of bipyridine moieties. With increasing amount of bipyridine, K H increases linearly from 1.5•10 -6 mol/g/Pa for CTF-02, providing the weakest solid-solvent interaction, to 5.2•10 -6 mol/g/Pa for CTF-02-Bpy (Table 2, Figure 2d). In the same way, the degree of pore filling (Ξ), [START_REF] Wisser | Tailoring Pore Structure and Properties of Functionalized Porous Polymers by Cyclotrimerization[END_REF] increases from 0.7 to 3.1 (Figure S14). Thus, in all bipyridine-CTFs, the pores are completely filled with water, a beneficial characteristic for the intended application in aqueous HER. In case of CTF-02-Bpy 0.66 and CTF-02-Bpy, the H 2 O-accessible pore volume even strongly increased compared to N 2 accessible pore volume, highlighting the pronounced swelling of the material and therefore good accessibility of active sites even in the center of the material. An important number to evaluate the hydrophilicity is the relative partial pressure α at which the capacity for water uptake is reached to 50 %; the lower α is, the more hydrophilic is the material. [START_REF] Canivet | Structure-Property Relationships of Water Adsorption in Metal-Organic Frameworks[END_REF] In this series, the highest hydrophilicity is observed for CTF-02-Bpy 0.66 (α = 0.63), the highest hydrophobicity for CTF-02 (α = 0.85, Table 2, Figure 2d). S10).

Optical properties of the materials.

The optical properties of the CTF series were investigated by diffuse reflectance UV-Vis spectroscopy (Figure 3a). Following the increase in the bipyridine content within the series, and consequently increased n-doping, the light absorbance shifts towards higher wavelengths, in line with predictions obtained from DFT calculations by Van Speybroeck and co-workers. [START_REF] De Vos | Electronic Properties of Heterogenized Ru( <scp>ii</Scp> ) Polypyridyl Photoredox Complexes on Covalent Triazine Frameworks[END_REF] In the series, the direct band-gap depends on the molecular composition, e.g. CTF-02 without any bipyridine moieties holds the largest direct bandgap with 3.05 eV, while CTF-02-Bpy possesses the narrowest direct bandgap with 2.87 eV (Table 2).

For the indirect bandgap, a similar but more pronounced trend is observed ranging from 2.86 eV to 2.37 eV. Both the direct and indirect band gap depend linearly on the amount of bipyridine doping (Figure S11). However, with increasing bipyridine content a more obvious Urbach tail is visible in the Tauc plots, indicating the formation of localized or mid-band gap states from CTF-02 to CTF-02-Bpy (Figure S10), in line with the increasing n-doping in the series. Electron paramagnetic resonance (EPR) experiments in a water-triethanolamine mixture confirm the assumption of localized states. Upon illumination, the photo excited CTFs are reductively quenched by reaction with TEOA to yield the reduced CTF radical anion, highlighted by a sharp signal in the EPR spectrum at 337 mT (g ≈ 1.995 -1.999) characteristic for unpaired electrons on aromatic rings with most likely odd numbers of carbon atoms. [START_REF] Wisser | Tailoring Pore Structure and Properties of Functionalized Porous Polymers by Cyclotrimerization[END_REF][START_REF] Tabbal | Correlation between the Sp2-Phase Nanostructure and the Physical Properties of Unhydrogenated Carbon Nitride[END_REF][START_REF] Li | Intramolecular π-Conjugated Channel Expansion Achieved by Doping Cross-Linked Dopants into Carbon Nitride Frameworks for Propelling Photocatalytic Hydrogen Evolution and Mechanism Insight[END_REF][START_REF] Li | Conjugated Polyene-Functionalized Graphitic Carbon Nitride with Enhanced Photocatalytic Water-Splitting Efficiency[END_REF] The EPR signal intensity increases in the same order as the Urbach tail, showing the strongest signal intensity for CTF-02-Bpy (Figure S18). As expected, bipyridine not only brings additional electrons into the system, but also acts as a donor moiety to the triazine acceptor function, resulting in the observed increase in signal intensity and thus available unpaired electrons. Although this should reduce electron hole recombination, it does not automatically lead to a higher number of available charge carriers, as transient photocurrent measurements depict a different result (Figure 3b).

All CTF materials respond to light and generate a photo current under light illumination (Figure 3b, all samples were illuminated with 360 nm UV light in order to minimize the effect of different light absorption capability and to shift the focus to the charge transport phenomena).

The negative photo-response after light illumination indicates a n-type semiconducting behavior for all materials, 51 in line with results from Mott-Schottky analyses (vide infra). The increased current results from a better conductivity due to additional charge carriers generated via light absorption and consequent charge separation, as already mentioned. Therefore, photocurrent measurements allow a qualitative comparison of the available charges for surface reactions. Depending on the materials' molecular composition, two different dynamic responses are observed. For the CTF-02-Bpy material, a fast rise within 0.6 s occurs followed by a slow rise to the steady-state current. In contrast, CTF-02, CTF-02-Bpy 0.33 and CTF-02-Bpy 0.66 are characterized by a photo response curve showing an overshoot of the response signal directly after illumination, which subsequently declines to the steady state. Such a behavior has been explained by the formation of (deeply) trapped states for which the dynamics to reach equilibrium are significantly slower than the time necessary for extraction of free charges from the active material. [START_REF] Mcneill | Photocurrent Transients in All-Polymer Solar Cells: Trapping and Detrapping Effects[END_REF][START_REF] Gao | Trap-Induced Losses in Hybrid Photovoltaics[END_REF] Interestingly, the material with the strongest overshoot, CTF-02 shows the longest decay time at turn-off. Such a long photocurrent tail is associated with continuous extraction of charges, even more than 10 s after turning off the illumination. In case of CTF-02, not all photo-generated charges are extracted from the material even after 60 s in the dark, which may serve as a reservoir of trapped charges. Beneficial for photocatalysis, this long decay-time demonstrates that those trapped charges can be extracted from the material, [START_REF] Gao | Trap-Induced Losses in Hybrid Photovoltaics[END_REF] and should be accessible for photochemical reactions. [START_REF] Xu | Visible-Light Photoreduction of CO2 in a Metal-Organic Framework: Boosting Electron-Hole Separation via Electron Trap States[END_REF][START_REF] Kasap | Solar-Driven Reduction of Aqueous Protons Coupled to Selective Alcohol Oxidation with a Carbon Nitride-Molecular Ni Catalyst System[END_REF][START_REF] Vattikuti | Visible-Light-Driven Photocatalytic Activity of SnO 2 -ZnO Quantum Dots Anchored on g-C 3 N 4 Nanosheets for Photocatalytic Pollutant Degradation and H 2 Production[END_REF] Thus trap-mediated recombination, which would result in a short decay-time, is not the dominating pathway over carrier extraction in these CTFs.

The measured photocurrent decreases in the order CTF-02 > CTF-02-Bpy 0.66 > CTF-02-Bpy ≈ CTF-02-Bpy 0.33 . Although the introduction of both donor and acceptor moieties in the CTF improves charge generation, it reduces charge separation and charge transport. It has been suggested that all-carbon aromatic moieties (here biphenyl) facilitate charge separation and transfer in comparison to heteroatom-containing aromatic moieties. [START_REF] Zhang | Co-Monomer Control of Carbon Nitride Semiconductors to Optimize Hydrogen Evolution with Visible Light[END_REF] This could explain the observed highest charge transport in CTF-02, but does not explain the non-monotonous order within the series of bipyridine-containing materials (CTF-02-Bpy 0.66 > CTF-02-Bpy ≈ CTF-02-Bpy 0.33 ). Here, other factors must be at play to counteract the advantage of biphenyl moieties for charge separation and charge transfer. Especially the distance and the time it takes for a charge carrier to diffuse to the particle-substrate-interface, has a significant influence on the charge recombination probability. For example, a high specific surface area, porosity and wettability of the surface should shorten the average diffusion length to the interface. Since CTF-02-Bpy 0.66 shows a greater photocurrent than CTF-02-Bpy 0.33 , while displaying comparable apparent surface area and similar particle sizes (below 200 nm, Figure S23), the increased photocurrent of CTF-02-Bpy 0.66 suggests that in this case, the positive effect of higher hydrophilicity overcomes the detrimental effect of lower biphenyl content in the overall photocurrent production. The drop of photocurrent observed when further increasing the bpy content (viz. increased photocurrent of CTF-02-Bpy 0.66 with respect to CTF-02-Bpy) is in line with the beneficial hydrophilicity effect, which is larger for CTF-02-Bpy 0.66 than for CTF-02-Bpy; in this case, though, the adverse effect of lower biphenyl content and/or lower surface area could also concur to this drop in photocurrent (see Table 2).

Last, for the application in photocatalysis, precise knowledge of the frontier orbital positions is indispensable to assess the thermodynamic driving forces of the half-reactions; here, the proton reduction into H 2 and the oxidation of the electron donor triethanolamine (TEOA).

Electrochemical impedance spectroscopy (EIS) was performed at the material-electrolyte interface, to determine the flat band potential using Mott-Schottky analyses (Figure 3c). The positive slope observed in the Mott-Schottky plots confirms that all material are n-type conductors. The flat band potential corresponds to the extrapolated potential for C -2 = 0 F -2 , independent of the applied potential perturbation frequency. In first approximation, the flat band potential can be associated with the conduction band (CB, electron affinity) position. [START_REF] Beranek | Electrochemical Methods for the Determination of the Band Edge Positions of TiO 2 -Based Nanomaterials[END_REF][START_REF] Xie | Efficient Visible Light-Driven Water Oxidation and Proton Reduction by an Ordered Covalent Triazine-Based Framework[END_REF][START_REF] Chen | Synthesis of Bipyridine-Based Covalent Organic Frameworks for Visible-Light-Driven Photocatalytic Water Oxidation[END_REF][START_REF] Bai | Accelerated Discovery of Organic Polymer Photocatalysts for Hydrogen Evolution from Water through the Integration of Experiment and Theory[END_REF] Here we want to stress that prior to flat band potential measurements, knowledge of the isoelectric point (pH IEP ) of the material is required for rigorous determination of its flat band position. [START_REF] Beranek | Electrochemical Methods for the Determination of the Band Edge Positions of TiO 2 -Based Nanomaterials[END_REF] This is at odds with some practices in the literature, where a pH IEP close to pH 7 is assumed for CTF materials, which may cause an incorrect alignment of the frontier orbital positions of several tenths of eV, due to the neglected influence of charged surface states (see below). For example for CTF-1 a broad range of pH IEP has been reported (pH 5 -7.2). [START_REF] Liu | Adsorption of Aromatic Compounds on Porous Covalent Triazine-Based Framework[END_REF][START_REF] An | Efficient Removal of Three Dyes Using Porous Covalent Triazine Frameworks: Adsorption Mechanism and Role of Pore Distribution[END_REF][START_REF] Li | Rapid Water Disinfection over a Ag/AgBr/Covalent Triazine-Based Framework Composite under Visible Light[END_REF][START_REF] Yin | Single-Layered Nanosheets of Covalent Triazine Frameworks (CTFs) by Mild Oxidation for Molecular-Sieving Membranes[END_REF] For the bipyridine based materials, we found a pH IEP around pH 4 ± 0.5, while for CTF-02 the pH IEP is at around pH 8, in line with literature data for CTF-02 material prepared by the ionothermal method (SI, section 4.9, Figure S20). [START_REF] An | Efficient Removal of Three Dyes Using Porous Covalent Triazine Frameworks: Adsorption Mechanism and Role of Pore Distribution[END_REF] The lowest flat band potential at pH IEP in the series is achieved for CTF-02 at approx. -3.72 eV (-1.33 V vs Ag/Ag + ), while CTF-02-Bpy 0.33 to CTF-02-Bpy hold similar flat band potentials around -4.1 eV (~-0.95 V vs Ag/Ag + ). As the flat band potential is associated with the conduction band position, taking the pH dependency of the conduction band edge into account, [START_REF] Beranek | Electrochemical Methods for the Determination of the Band Edge Positions of TiO 2 -Based Nanomaterials[END_REF] we expect the highest driving force for HER of ~650 meV for CTF-02 and the lowest for CTF-02-Bpy 0.66 (>460 meV, Figure 3d). To align the valence band (VB, minus ionization energy) positions, we assumed that the indirect optical band gap is close to the true band gap. [START_REF] Xie | Efficient Visible Light-Driven Water Oxidation and Proton Reduction by an Ordered Covalent Triazine-Based Framework[END_REF] Here, we note that the VB position is similar for CTF-02 to CTF-02-Bpy 0.66 and increases sharply in energy for CTF-02-Bpy. Thus, for all materials but CTF-02-Bpy, the VB position is sufficient low in energy to ensure efficient reductive quenching of the corresponding photo-excited states of the CTF by TEOA. In case of CTF-02-Bpy, hardly any thermodynamic driving force is observed (<<100 meV, Figure 3d). In addition, we note that a completely different picture will arise, if EIS was performed at pH different from pH IEP , and observed differences for the VB position as large as 0.5 eV. In particular, hardly any (<<100 meV, CTF-02-Bpy 0.66 ) or even no driving force for the reductive quenching would be expected for CTF-02-Bpy when the EIS measurements were conducted at pH 7 or pH 10.5 (see also Figure S21,22). These results highlight the importance to perform Mott Schottky analysis at the isoelectric point in order to align frontier orbitals positions precisely and to rationalize catalytic activities by calculating thermodynamic driving forces (vide infra).

We have seen so far that especially the ends of the series, namely CTF-02-Bpy and CTF-02 possess features that should boost their performance in photocatalysis. On the one side, CTF-02-Bpy shows improved light absorption in the visible region and efficient charge generation, but very low thermodynamic driving force for TEOA oxidation. On the other hand, CTF-02 possesses high thermodynamic driving forces and good visible light induced charge separation and transport, [START_REF] Guo | Engineering Heteroatoms with Atomic Precision in Donor-Acceptor Covalent Triazine Frameworks to Boost Photocatalytic Hydrogen Production[END_REF][START_REF] Zhang | Strong-Base-Assisted Synthesis of a Crystalline Covalent Triazine Framework with High Hydrophilicity via Benzylamine Monomer for Photocatalytic Water Splitting[END_REF] but the highest hydrophobicity. We thus suppose that by the rational design and precise control of the material properties, we should find the material with optimum composition and thus properties, resulting in a maximum in performance of the catalysts in photocatalytic HER.

Photcatalytic HER perfomances of the materials. The series of CTFs synthesized in this work was employed as photocatalysts in sacrificial water splitting under visible light irradiation (>395 nm) using Pt as co-catalyst. The deposition of Pt is generally considered not to affect the photophysical properties of the organic photocatalyst, but to facilitate H 2 elimination from the materials surface. [START_REF] Wang | A Metal-Free Polymeric Photocatalyst for Hydrogen Production from Water under Visible Light[END_REF][START_REF] Bi | Two-Dimensional Semiconducting Covalent Organic Frameworks via Condensation at Arylmethyl Carbon Atoms[END_REF] Within the series, CTF-02-Bpy 0.66 showed the highest activity, reaching 7.2 mmol/h/g cat , while all other catalysts show activities between 3.2 and 4.7 mmol/h/g cat (Figure 4). The trend of the HER activity cannot be pinpointed to one property alone, but rather to the sum of all optical and photo physical properties. For example, the performance of CTF-02-Bpy is rather low, despite its small band gap and excellent charge separation ability. This is most likely caused by the positioning of the valence band, making the reductive quenching kinetically least favored (Figure 3d). Also, the rather high HER activity (4.3 mmol/h/g cat ) for the biphenyl-based CTF-02 cannot be explained by its optical and photo physical properties alone. As CTF-02 is the pure biphenylbased polymer in the series, it possesses the weakest water wettability, as confirmed by water vapor physisorption experiments, with a degree of pore filling well below 1 (Table 2).

Nonetheless, the high driving forces for both half reactions as well as the pronounced charge trapping observed for CTF-02 boosts its photocatalytic activity. Overall, the properties of the interface between catalyst and reaction media (wettability, degree of pore filling, Figure S14) as well as charge generation improve in the series from CTF-02 and CTF-02-Bpy, while the apparent surface area (Table 2) and the band-gap (Figure S11) evolve for the worse. These contrasting trends explain why they result in an optimum performance for CTF-02-Bpy 0.66 . This optimum material composition for HER is connected, albeit not exclusively, to the materials' highest hydrophilicity in the series (Figure 4); the levelling off of the electron doping towards the triazine moiety at this material composition is a further indicator for its optimal composition.

Comparison with state of the art. Compared to other classes of porous organic polymers, like

CMPs [START_REF] Bai | Accelerated Discovery of Organic Polymer Photocatalysts for Hydrogen Evolution from Water through the Integration of Experiment and Theory[END_REF] and COFs, [START_REF] Sheng | Effect of Different Functional Groups on Photocatalytic Hydrogen Evolution in Covalent-Organic Frameworks[END_REF] the CTFs reported in this work, are among the materials with the highest activity in HER under comparable conditions, e.g. basic conditions and TEOA as sacrificial electron donor (see Table S6). [START_REF] Wu | Crystalline Covalent Organic Frameworks with Tailored Linkages for Photocatalytic H 2 Evolution[END_REF] Comparing to the only bipyridine-containing CTF reported up to date, CTF-HUST-C6, a crystalline material synthesized from condensation between terephthalamidine chloride and 5,5'-di(hydroxymethyl)-2,2'-bipyridine, similar catalytic activities are obtained (~6.5 mmol/g cat /h, Table S6, entry 10). [START_REF] Liu | Crystalline Covalent Triazine Frameworks by In Situ Oxidation of Alcohols to Aldehyde Monomers[END_REF] In comparison to CTF-02 materials prepared by the TfOH-mediated polycondensation approach, we observe here an HER rate of up to one order in magnitude higher, under very similar catalytic conditions (4.3 mmol/g cat /h vs. ~0.3 mmol/g cat /h, 5 ). The material possess similar surface areas around 570 m 2 /g and bandgaps (~ 2.8 eV). [START_REF] Meier | Structure-Property Relationships for Covalent Triazine-Based Frameworks: The Effect of Spacer Length on Photocatalytic Hydrogen Evolution from Water[END_REF] We note however, that a direct comparison between different materials, even with very similar structure as in the case of the CTF-02 materials, is complex, as not only the band-gap and surface area affect the catalytic activity. As demonstrated above, in particular the precise positioning of the absolute frontier orbitals, the dynamics of photo response and the solvent-solid interactions (wettability, hydrophilicity) have a marked influence on a material's performance, and yet these parameters are scarcely reported CONCLUSION.

In summary, we have demonstrated that, by using polycondensation reaction, it is possible to systematically change the molecular composition of covalent triazine-based frameworks. The sequence of the molecular building blocks, and thus the level of doping of the pristine CTF with electron-rich bipyridine moieties (n-doping), correlate directly with the material features such as specific surface area, bandgap and surface wettability with water, which are crucial for the photocatalytic activity of the CTFs in hydrogen evolution reaction. In the series, we showed that doping CTFs with bipyridine moieties results in an increase in the solvent-solid interactions and in more efficient charge separation, beneficial for HER reaction. In contrast, it results also in reduced bandgap and surface, potentially detrimental to the HER reaction. Altogether, those properties drastically influence the photocatalytic activity thus leading to a sweet spot in HER activity with 66% of bipyridine building units in the framework. This local maximum was both anticipated based on physico-chemical properties of the material and experimentally observed.

By carefully adjusting those properties, the best material, CTF-02-Bpy 0.66 , reaches the highest hydrogen evolution rate, achieving 7.24 mmol h -1 g -1 under visible light irradiation in the presence of a sacrificial compound. Importantly, these investigations show that the balance between all properties that might affect (photo)catalytic activity is crucial to accurately describe the materials performance and to understand the parameter that affects most its performance.

The unprecedented control over the building block sequence at a molecular level allows for the modulation of chemical, optoelectronic, and textural properties in CTFs and thus opens a new avenue into the design and synthesis of highly performing materials.

24

 24

Figure 1 .

 1 Figure 1. a) Schematic representation of triazine formation in the CTF-02 series (X, Y = CH / N) synthesized via polycondensation. b) Repeating units of the four different CTFs: CTF-02 (X, Y = CH), CTF-02-Bpy 0.33 (X = N, Y = CH), CTF-02-Bpy 0.66 (X = CH, Y = N) and CTF-02-Bpy (X, Y = N). Color code: blue: triazine, green: pyridine, gray: phenyl moieties. c) Idealized structural model of CTF-02 stacking along the crystallographic c-direction. Color code: gray: carbon, blue: nitrogen, white: hydrogen atoms. All materials are partially ordered, characteristic for materials prepared by the polycondensation approach (Figure S16, S17).

Figure 2 .

 2 Figure 2. a) 13 C ComPmulti-CP MAS NMR spectra and corresponding deconvolution for CTF-02, CTF-02-Bpy 0.33 , CTF-02-Bpy 0.66 and CTF-02-Bpy, from bottom to top. In all spectra, a line broadening of 100 Hz was applied. Color code for deconvoluted signals: blue: triazine, green: bipyridine and gray: biphenyl carbon atoms (see also Figure 1). Complete NMR spectra are provided in the SI (Figure S13). b) N 2 physisorption isotherms measured at 77 K and c) water vapor physisorption isotherms measured at 298 K of CTF-02 (black), CTF-02-Bpy 0.33 (blue), CTF-02-Bpy 0.66 (green) and CTF-02-Bpy (red). d) Experimentally observed evolution of composition from 13 C ComPmulti-CP MAS NMR spectroscopy (black), wettability (K H , blue) and hydrophobicity (α, gray) as a function of monomer ratio. Dashed lines are guidelines for the eyes.

Figure 3 .

 3 Figure 3. a) Solid-state UV Vis spectra of CTF-02 (black), CTF-02-Bpy 0.33 (blue), CTF-02-Bpy 0.66 (green) and CTF-02-Bpy (red). b) Transient photocurrent measurements CTF-02 (black), CTF-02-Bpy 0.33 (blue), CTF-02-Bpy 0.66 (green) and CTF-02-Bpy (red). The shadowed areas around each curve represent errors for several independent experiments. c) Mott-Schottky plot for CTF-02 (black), CTF-02-Bpy 0.33 (blue), CTF-02-Bpy 0.66 (green) and CTF-02-Bpy (red) The data were acquired at the isoelectric point and at a potential perturbation frequency of 700 Hz (for details see SI, section 4.9). d) Bandgap position for CTF series and potential of proton reduction and TEOA oxidation both at pH 10.5.

Figure 4 .

 4 Figure 4. Overview of production rate in HER (black) and surface hydrophobicity (gray) for the four different catalysts. Dashed lines are guidelines for the eyes. HER conditions: 10 mg catalyst, 3 h, λ > 395 nm, 18 ml H 2 O/TEOA (8 : 1, V : V), 5 wt% Pt.

Table 1 .

 1 Monomer feed ratios and[START_REF] Lee | Advances in Conjugated Microporous Polymers[END_REF] C ComPmultiCP integrals of repeating units. Ratios are calculated from the sum of the integrals of all resonances for each repeating unit, normalized to the triazine resonance (3 carbon atoms) and divided by the number of carbon atoms per repeating unit.[START_REF] Brownbill | Structural Elucidation of Amorphous Photocatalytic Polymers from Dynamic Nuclear Polarization Enhanced Solid State NMR[END_REF]

		monomer feed	monomer ratio from NMR
	polymer	Biphenyl	bipyridine	biphenyl	bipyridine
	CTF-02	3	0	2.9 ± 0.2	0
	CTF-02-Bpy 0.33	2	1	1.9 ± 0.2	1.0 ± 0.1
	CTF-02-Bpy 0.66	1	2	1.0 ± 0.1	1.9 ± 0.2
	CTF-02-Bpy	0	3	0	2.8 ± 0.3

Table 2 .

 2 Porosity and optical properties in the series of CTFs. Vtot a / cm 3 /g Vtot b / cm 3 /g KH / mol/g/Pa α / 1 Edir c / eV Eindir d / eV determined at 0.95 p/p 0 from N 2 physisorption isotherms measured at 77 K, b determined at 0.95 p/p 0 from H 2 O vapour physisorption isotherms measured at 298 K, c direct and d indirect optical band gaps determined via the Tauc plot method (Figure

	Polymer SBET / m 2 /g CTF-02 570	0.71	0.47	1.5•10 -6	0.85	3.05	2.86
	CTF-02-Bpy0.33	400	0.40	0.39	2.5•10 -6	0.77	2.98	2.73
	CTF-02-Bpy0.66	370	0.25	0.39	4.0•10 -6	0.63	2.90	2.64
	CTF-02-Bpy	240	0.18	0.56	5.2•10 -6	0.69	2.87	2.37

a

ASSOCIATED CONTENT

Supporting Information. Detailed experimental procedures, materials and instruments used as well as addition material characterization and overview are provided in the Supporting Information.

AUTHOR INFORMATION

Corresponding Author E-mail: florian.wisser@ur.de E-mail: jerome.canivet@ircelyon.univ-lyon1.fr E-mail: palkovits@itmc.rwth-aachen.de

Author Contributions

The manuscript was written through contributions of all authors. All authors have given approval to the final version of the manuscript. ‡These authors contributed equally. ). We would also like to thank Amitava Acharjya for his help during the photocatalytic experiments and Ulrike Schießl for recording SEM images.